Item transform
Make an item be consumed then produced while keeping its data.
Item transform requirement combines both item input and output requirements.
It is used to consume an item, then produce another (or the same if needed).
The amounts of item consumed and produced are both customizable.
The input and output slots where the recipe will consume or produce items can be customized.
By default the requirement will keep the nbt data of the input item and put it to the output item (can be disabled).
The requirement type of item transform requirement is : "custommachinery:item_transform".
Properties
The item transform requirement has 2 mandatory properties and 8 optional properties.
Mandatory properties
"type": "custommachinery:item_transform" //Mandatory to define an item transform requirement.Input
Name : input
inputDescription :
The registry name of the item you want to be consumed by the recipe.
It must be specified like namespace:item_registry_name with "namespace" being either "minecraft" if the item is from vanilla or a mod ID if the item is from a mod (ex : minecraft:diamond or mekanism:copper_ingot).
An item tag can be specified instead, by using the # prefix like #minecraft:logs.
Example :
"input": "minecraft:diamond"The item consumed by the recipe will be a vanilla Diamond.
"input": "#minecraft:logs"The recipe will consume any logs.
Optional properties
Input nbt
Name : input_nbt
input_nbtDescription :
A string that represent a nbt tag that will be required on the input item.
The machine will search for items in input slots that have AT LEAST those nbt tag, if the item have more tag it's fine as long as it have all the tags specified in this property.
The nbt tag must be defined the same way you use it in the /give command.
You can see the nbt tag of the item in your hand using /data get entity @s SelectedItem and then copy the part after tag: inside {}.
Default : empty
emptyThe input item can have any nbt tag, or nothing.
Example :
The item requirement will search for items with nbt tag "test1" with value true and tag "Amount" with value 10.
Examples
A very simple item transform requirement that will consume a diorite to produce 2 andesite :
An item transform requirement that transform a diamond pickaxe placed in a slot with id "input1" in a diamond shovel while keeping its nbt data, including damage and enchants, and place it in a slot with id "output1" :
Last updated