Item
Use the item requirement in a KubeJS recipe
Use one of these methods to add an Item Requirement to the recipe.
The
item
param must be created usingItem.of()
KubeJS method. Example :Item.of("minecraft:diamond", 42)
The
slot
param must be a string corresponding to a slot id defined in a custom machine json Item Componentslot
property.The
tag
param must be a string starting with # defining a valid tag id. Example :"#forge:stone"
The
amount
param must be a positive integer.The
nbt
param must be a map. Example:{nbt1: 1, nbt2: "something"}
.
Example
Last updated