Anvil
Link to anvil
Package
Link to package
ZenScript Copyimport mods.terrafirmacraft.Anvil;
Addition
Link to addition
ZenScript CopyAnvil.addRecipe(String registryName, IIngredient input, IItemStack output, int minTier, String skillType, String... forgeRules);
- Input can't be stacked. Anvils only accept one item per slot.
- input must be forgeable (please refer to ItemRegistry for registering forging capability to an item).
- Tiers are 0 = Stone, 1 = Copper, 2 = Bronze, 3 = Wrought Iron, 4 = Steel, 5 = Black Steel and 6 = Red/Blue Steel.
- Skill type is what category of skill the forging should contribute to. Valid entries are
general
,tools
,weapons
,armor
, or null. If the skill type istools
,weapons
, orarmor
then the result item will have a skill bonus applied to it. - A recipe must have 1, 2 or 3 rules. Rules consist of a type (
HIT
,DRAW
,PUNCH
,BEND
,UPSET
, orSHRINK
), followed by an order (ANY
,NOT_LAST
,LAST
,SECOND_LAST
,THIRD_LAST
), separated by an underscore. As example,HIT_ANY
,DRAW_SECOND_LAST
, andUPSET_NOT_LAST
are valid rule names.
Removal
Link to removal
ZenScript CopyAnvil.removeRecipe(IItemStack output);
Anvil.removeRecipe(String registryName);