Structure
Use the structure requirement
.requireStructure(pattern, keys)Example
onEvent('recipes', event => {
event.recipes.custommachinery.custom_machine("custommachinery:power_crusher", 100)
.requireStructure([[
"aaa",
"a a",
"aaa",
" m "
]], {"a": "minecraft:stone"})
})Last updated