SevenIndex Posted January 18 Report Posted January 18 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: 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!
Solution Spoonail Posted January 18 Solution Report Posted January 18 The behavior averaging durability can be disabled from the recipe json. Add "averageDurability": false to the recipe. 1
SevenIndex Posted January 18 Author Report Posted January 18 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. 1
Recommended Posts