Box O' Utils - Control what each blocks/mobs loots, right-click to harvest; more to come

A new version has been released for Box O’ Utils, it is available for download here.


0.10

+ Added a way to configure commands to execute with a CustomLoot.

* Improved CustomDrops processing: before, requirements were tested twice, this is no longer the case.

* Fixed mobs CustomDrops reuse requirements not working

A new version has been released for Box O’ Utils, it is available for download here.


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.

A new version has been released for Box O’ Utils, it is available for download here.


0.12

+ Allow to set a chance to execute commands on CustomLoots

A new version has been released for Box O’ Utils, it is available for download here.


0.13

This update disables the HOCON includer on SpongeForge.

Loading configuration was always throwing an error on SpongeForge because of a dependency relocation made to avoid conflicts with a Forge dependency.

A new version has been released for Box O’ Utils, it is available for download here.


0.14

Added a way to have multiple loots for a single block/mob.

Added the enchantments requirement.

Added the permission boxoutils.reload for the command /boxoutils reload

The integrations system has been refactored, this should make external integrations development easier.

A new version has been released for Box O’ Utils, it is available for download here.


0.15

Added a workaround to make block_data requirements work for BlockStates (TileEntities data are still inaccessible)

Added wildcards in key IDs (see the wiki page)

Added CustomLoot recipient, used to control where drops will be placed (see the wiki)

Drops behaviour is now closer to vanilla: items can’t be picked up for 10 ticks and will spawn in the middle of blocks.

Fixed an issue where the player responsible for a kill is not recognized and won’t earn its MoneyLoot on some modpacks like Life in the Village

A new version has been released for Box O’ Utils, it is available for download here.


0.16

Added FishingDrops:

  • works the same as BlocksDrops and MobsDrops
  • the configuration is located in the usual directory, in the file fishingdrops.conf and will be generated when starting the server
  • the only difference is that the root loots node takes a list instead of an object.

Added the biomes requirement (documentation)

A new version has been released for Box O’ Utils, it is available for download here.


0.17

Additions

Added the caught-fish requirement, used to determine if a fishing loot should be processed based on the type of fish that was caught.

Added support for GriefDefender claims, the requirement is named griefdefender.

Added the ability to set the “data” value of items to drop with the unsafe-damage property.

Added the command /boxoutils inspect item (permission: boxoutils.inspect.item) to get some information about the item held in the main hand (useful for getting the unsafe-damage value to use).

Added the used_item_data requirement. Works similarly to block_data and entity_data requirements, but tests against the item used by the player that caused the loots to be processed.

Added a chance parameter to loots. Works the same way every other chance parameters do, but on a whole loot level.

  • This can be used to group items to be dropped with the same chance, an all-or-nothing situation.

Try harder to find the player who killed an entity and caused loots to be processed in order to improve compatibility with some mods.

API Changes

The CustomDrops API was refactored to be more flexible

Requirement methods have been changed to take a CustomLootProcessingContext.

Hi,

Can u help me pls with this plugin

Hi,

Sure, what do you need help with?

do u know any plugin/mod (spongeforge) for stone generator, i need one so bad (your plugin Box O’ Utils is so good btw, congrats)

I don’t know any mod or plugin for that, there’s a place in the forums where you can throw plugin requests however.