Advertisement
Guest User

Untitled

a guest
May 12th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public class SpellCastingItems extends Item{
  2.  
  3. public static Item spellbook;
  4.  
  5.  
  6. public static void init() {
  7. spellbook = new Item().setUnlocalizedName("scm_spellbook");
  8.  
  9. }
  10.  
  11. public static void register() {
  12. spellbook.setRegistryName("spellbook");
  13. GameRegistry.register(spellbook);
  14.  
  15.  
  16. }
  17.  
  18. public static void registerRenders() {
  19. registerRender(spellbook);
  20.  
  21. }
  22.  
  23.  
  24. public static void registerRender(Item item) {
  25. ModelResourceLocation location = new ModelResourceLocation(item.getRegistryName(), "inventory");
  26. ModelLoader.setCustomModelResourceLocation(item, 0, location);
  27. }
  28. }
  29.  
  30. -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement