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.
Optional properties
Examples
A very simple item transform requirement that will consume a diorite to produce 2 andesite :
{
"type": "custommachinery:item_transform",
"input": "minecraft:diorite",
"output": "minecraft:andesite",
"output_amount": 2
}
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" :
{
"type": "custommachinery:item_transform",
"input": "minecraft:diamond_pickaxe",
"input_slot": "input1",
"output": "minecraft:diamond_shovel",
"output_slot": "output1"
}
Last updated