tutorial:enchantments
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:enchantments [2024/08/23 13:47] – solidblock | tutorial:enchantments [2024/08/23 13:52] (current) – [Adding Translations] solidblock | ||
---|---|---|---|
Line 4: | Line 4: | ||
Since 1.21, enchantments has been data-driven, | Since 1.21, enchantments has been data-driven, | ||
- | To use the enchantments in vanilla, you should just store '' | + | To use the enchantments in code, you should just store '' |
<code java TutorialEnchantments> | <code java TutorialEnchantments> | ||
public final class TutorialEnchantments { | public final class TutorialEnchantments { | ||
Line 130: | Line 130: | ||
===== Adding Translations ===== | ===== Adding Translations ===== | ||
=) This part works both versions since 1.21 and before 1.21. | =) This part works both versions since 1.21 and before 1.21. | ||
+ | |||
You'll need to add a translation to your enchantment as well. Head over to your [[tutorial: | You'll need to add a translation to your enchantment as well. Head over to your [[tutorial: | ||
- | <code javascript> | + | <code javascript |
{ | { | ||
" | " |
tutorial/enchantments.1724420828.txt.gz · Last modified: 2024/08/23 13:47 by solidblock