Drop
Use the drop requirement in a KubeJS recipe
Use one of these methods to add a Drop Requirement to the recipe.
The
item
param must be an item created usingItem.of()
. Example :Item.of("minecraft:dirt")
The
amount
param must be a positive integer, it represents the amount of items checked/consumed.The
radius
param must be a positive integer, it represents the maximum distance to the machine the items will be searched.The
filter
param must be an array of items. Example :[Item.of("minecraft:diamond"), Item.of("minecraft:cobblestone")]
. It represents a whitelist of items to search.The
whitelist
param must be a boolean, if set tofalse
the filter will be a blacklist instead of a whitelist.
Example
Last updated