User Tools

Site Tools


tutorial:enchantments

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:enchantments [2022/12/11 21:30] – Registry to Registries haykamtutorial:enchantments [2023/01/04 13:52] (current) – [Registering Enchantment] In Sample Code: pass FROST variable to the 3rd param of Registry#register(). datsuns
Line 85: Line 85:
     @Override     @Override
     public void onInitialize() {     public void onInitialize() {
-        Registry.register(Registries.ENCHANTMENT, new Identifier("tutorial", "frost"))+        Registry.register(Registries.ENCHANTMENT, new Identifier("tutorial", "frost"), FROST);
     }     }
 } }
tutorial/enchantments.txt · Last modified: 2023/01/04 13:52 by datsuns