Compressor
The compressor is a block which squeezes items into other items. It has one input slot and one output slot. Additional recipes can be added with data packs. The compressor requires Forge Energy to work. Energy is used at a fixed rate while the machine is working, and no energy while it is not.
Recipes can be added with data packs. The files can be anywhere in data/*/recipes/ (where * is the namespace of your data pack). The recipe type is silents_mechanisms:compressing.
-
process_time- The time (in ticks) required to process one input item. Energy used per tick is constant, so this also affects the total energy consumed. -
ingredient-
value- The ingredient. Can be an item, tag, array of items/tags, etc -
count- The number of items consumed to produce one result
-
-
result- The recipe result
{
"type": "silents_mechanisms:compressing",
"process_time": 800,
"ingredient": {
"value": {
"tag": "forge:storage_blocks/coal"
},
"count": 16
},
"result": {
"item": "minecraft:diamond",
"count": 1
}
}