Control what blocks/mobs can loot (items, experience, money), right-click to harvest; more to come

0.11

PreRelease

RedNesto released this version on Aug 30, 2019

130.1 KB
Download

0.11

This update changes the FastHarvest feature, which is now only responsible of the “right click to harvest”.

A new feature called CropsControl has been extracted from FastHarvest and is now the one to use to change how much items a crop will drop when broken.

This means FastHarvest configuration changed and must be updated, you will need to:

  • move all crops to a new configuration file named cropscontrol.conf (check the default file)
  • in fastharvest.conf rename the list property to tools

New FastHarvest

Here is the new default configuration of FastHarvest:

enabled=false
drop_in_world=true
tools {
  enabled=false
  damage_on_use=true
  is_whitelist=true
  tools=[
    "minecraft:air"
    "minecraft:wooden_hoe"
    "minecraft:stone_hoe"
    "minecraft:iron_hoe"
    "minecraft:golden_hoe"
    "minecraft:diamond_hoe"
  ]
}

Note the tools property is exactly the same as the list property of the old configuration, the key was just renamed to be (more) descriptive.

There is also two new options:

  • drop_in_world, which indicates whether the crops should be dropped in the world or should be put directly in the inventory of the player.
  • tools.damage_on_use, which indicates whether the tool used to FastHarvest should be damaged by one point.

It is also aware of BlockDrops, this means that if a BlockDrop has been set for wheat crops, the BlockDrop will be used instead of the default behaviour which uses the vanilla algorithm.

CropsControl

This is the feature to use to change crops drops. You can see it as a kind of BlocksDrops specialized for crops.

The configuration is similar to the old FastHarvest one:

enabled=false
crops {
  "minecraft:wheat" {
    chance=-1
    chance_of=-1
    count=0
    fortune_factor=1
    minimum=1
  }
  // I only show one here, but any other crop block can be added.
  // You can find the whole default file on GitHub:
  // https://github.com/RedNesto/BoxOUtils/blob/master/src/main/resources/assets/box-o-utils/config/cropscontrol.conf
}

The only difference is that crops configurations are located in the crops property.

It is possible to control cocoa beans and nether wart now !

Other Changes

+ It is now possible to include other files in the plugin’s configurations, this allows to break huge configuration files into smaller ones. For example:

blocksdrops.conf

enabled=true
include "blocksdrops/crops.conf"
blocks {
  "minecraft:dirt" {
    experience=1-5
  }
}

blocksdrops/crops.conf

blocks {
  "minecraft:stone" {
    experience=10-15
  }
}

+ /boxoutils reload to reload the configuration (or /bou reload for short). It acts the same as /sponge plugins reload box-o-utils.

* Fixed features still being enabled after disabling them and reloading.