Creating Assembler Recipes
In this article we will look into how to make recipes for the Assembler using json based datapacks. The folder location for your recipes would be inĀ data/NAMESPACE_HERE/envirocore/assembler/
the NAMESPACE_HERE can be replaced with your datapack/mods id.
Lets make a recipe.
This is the base recipe structure for an Assembler recipe. "top"
, "bottom"
, "left"
, "right"
and "center"
are all input slots and "output"
is obviously the output slot for the recipe. The "duration"
is how long the recipe takes to craft in ticks. Keep in mind that this is the base recipe time and can be faster if Frequency Modifiers are used inside the Assemblers modifier slots.
{
"duration": {
"raw:int": 100
},
"top": {
},
"bottom": {
},
"left": {
},
"right": {
},
"center": {
},
"output": {
}
}
Each input can accept a variety of types including Items, Items with NBT, and Item Tags. You can find all possible input types in this article: Recipe Item Types
Merging Center Slot NBT
In assembler recipes the "center"
slot can have its nbt merged with the output Item. To do that you will need to have the following in the base recipe itself(not in any of the slots)
"merge_center_nbt": true