Skip to main content

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. 

Example Item Tag SyntaxTags

This would be the same syntax for both input slots and output slots.

"raw:item_tag": "forge:ingots/iron"
Example Item with NBT

You only need the "match_nbt": true if you are using this in an input slot. For output slots, the provided nbt will be added to the item regardless.

"raw:item": "envirocore:fe_input", "nbt": "{tier:2,energy:{capacity:8192}}", "match_nbt": true

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