Skip to content

Commit 97847f7

Browse files
Rename method for adding tool enchantments (#4510)
1 parent 0dfe9b9 commit 97847f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/Modpacks/Materials-and-Elements/Tool-Creation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The builder has the same arguments as the constructor, and can have chained meth
5959
- `ignoreCraftingTools()`
6060
- Disable crafting tools being made from this Material.
6161

62-
- `addEnchantmentForTools(Enchantment enchantment, int level)`
62+
- `.enchantment(Enchantment enchantment, int level)`
6363
- Enchantment is the default enchantment applied on tool creation.
6464
Level is the level of said enchantment.
6565
- `enchantability(int enchantability)`
@@ -82,7 +82,7 @@ Here is an example of using the builder in a material:
8282
]
8383
)
8484
.unbreakable()
85-
.addEnchantmentForTools(silk_touch, 1)
85+
.enchantment(SILK_TOUCH, 1)
8686
.build()
8787
)
8888
});

0 commit comments

Comments
 (0)