Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1.  
  2. ___________
  3. I set the name in the enchant creating code :
  4.  
  5. this.setName("alb_"+name); // with name = "studying"
  6. this.setRegistryName(new ResourceLocation(AlbinosEnchants.MODID,"alb_"+name)); // AlbinosEnchants.MODID = "albinosenchants"
  7.  
  8.  
  9. ______________
  10. Various tries in the en_us.lang file located in src/main/resources/assets/lang :
  11.  
  12. enchantment.albinomc.albinosenchants:alb_studying=Studying A
  13. enchantment.albinomc.albinosenchants.alb_studying=Studying B
  14.  
  15. enchantment.albinosenchants:alb_studying=Studying C
  16. enchantment.albinosenchants.alb_studying=Studying D
  17.  
  18. enchantment.albinosenchants:alb_studying=Studying E
  19. enchantment.albinosenchants.alb_studying=Studying F
  20.  
  21.  
  22. _______________
  23. pack.mcmeta in src.main/resources (mod custom icon works) :
  24.  
  25.  
  26. {
  27. "pack": {
  28. "description": "albinosenchants resources",
  29. "pack_format": 3,
  30. "_comment": "Yay, a comment !"
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement