Jump to content

Recommended Posts

Posted

I've been trying to make a recipe that turns Antler Mounts back into planks and leather, but I've been having some trouble getting the value in the "materials" attribute of the mount to work with the "name" function. I'd prefer not to do individual recipes for each type of wood for the sake of file size and compatibility with other mods that add more wood types. So if someone knows how to format this properly please let me know!

Here's the code I've been using:

Spoiler

[
    {
        "ingredientPattern": "B,K",
        "shapeless": true,
        "ingredients": {
            "B": {
                "type": "item",
                "code": "game:axe-*",
                "isTool": true
            },
            "K": {
                "type": "block",
                "code": "game:antlermount",
        attributes: { type: "square", materials: "birch" }, <--- (I want to use "*" here and copy that value)
        "returnedStack": {
            "type": "item",
            "code": "game:leather-normal-plain",
            "quantity": 1
        }
            }
        },
    recipeGroup: 2,
        "width": 1,
        "height": 2,
        "output": {
            "type": "item",
            "code": "game:plank-birch", <--- (And place that value here)
            "quantity": 2
        }
    }

]

 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.