-
Notifications
You must be signed in to change notification settings - Fork 0
Custom Anvil Recipes
Raik176 edited this page Apr 12, 2025
·
2 revisions
To add a custom anvil recipe to the game, create a file with any name in data/<namespace>/utils/anvil_recipe. The filename must end in .json.
Fields marked with an * are optional!
Fields:
-
costThe cost of this recipe in levels. Default is1.* -
ignoreNameWhether to ignore the name for the output item. Default istrue.* -
inputMain input of this recipe, as an Anvil Recipe Input object. -
secondaryInputSecondary input of this recipe, as an Anvil Recipe Input object. Default is none.* -
outputOutput item of this recipe, as an Item Stack
Fields marked with an * are optional!
The input items should consist of non stackable items, as crafting in an anvil always consumes the entire stack!
Fields:
-
itemThe item to use as an input. Takes precedence overtag. -
tagThe tag to use as an input.
Fields marked with an * are optional!
Fields:
-
idItem id of this item. Must not beair. -
countCount/Stack amount of this item. Must be above0. -
componentsComponents of this item. Only for 1.20.5+. Default value is none.* -
tagNBT of this item. Only for versions below 1.20.5. Default value is none.*