Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SpellCastingItems extends Item{
- public static Item spellbook;
- public static void init() {
- spellbook = new Item().setUnlocalizedName("scm_spellbook");
- }
- public static void register() {
- spellbook.setRegistryName("spellbook");
- GameRegistry.register(spellbook);
- }
- public static void registerRenders() {
- registerRender(spellbook);
- }
- public static void registerRender(Item item) {
- ModelResourceLocation location = new ModelResourceLocation(item.getRegistryName(), "inventory");
- ModelLoader.setCustomModelResourceLocation(item, 0, location);
- }
- }
- -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement