Jump to content

Recommended Posts

Posted

Hi, I've having trouble understanding why the output items of some of my recipes are having the "durability" attribute added to them.

Here's an example of what I mean:

2026-01-18_14-36-34.png.e5d198f8aea5418af358f97724834c9c.png

And the code for the recipe:

Spoiler

    {
        "ingredientPattern": "K__,_B_",
        "shapeless": false,
        "ingredients": {
            "B": {
                "type": "item",
                "code": "game:axe-felling-*",
        "name": "metal",
        "returnedStack": {
            "type": "item",
            "code": "game:stick",
            "quantity": 1
        }
            },
            "K": {
                "type": "item",
                "code": "game:knife-*",
        "isTool": true,
        "quantity": 1
            }
        },
    "recipeGroup": 28,
        "width": 3,
        "height": 2,
        "output": {
            "type": "item",
            "code": "somedisassemblyrequired:oldtoolhead-axe-{metal}",
            "quantity": 1
        }
    },

Also something of note, the durability attribute is only added if the item being consumed (the copper axe in this case) has the durability attribute itself. If anyone knows what causes this or knows how to remove attributes from output items please let me know! :)

Posted
8 minutes ago, Spoonail said:

The behavior averaging durability can be disabled from the recipe json.
Add "averageDurability": false to the recipe.

Thank you! Took a minute to figure out where it should go, but it worked like a charm.

  • Like 1
×
×
  • 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.