Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i decided to compile everything into one pastebin in order to not spam the chat as much
- i am having a problem with this item. here is my preinit:
- public static Item es;
- @EventHandler
- public void preInit(FMLInitializationEvent event) {
- //Emerald sword
- es = new EmeraldSword();
- GameRegistry.registerItem(es, "emerald_sword");
- }
- and here is my item class:
- import net.minecraft.creativetab.CreativeTabs;
- import net.minecraft.item.Item;
- public class EmeraldSword extends Item
- {
- public EmeraldSword() {
- setMaxStackSize(64);
- setCreativeTab(CreativeTabs.tabMisc);
- setUnlocalizedName("emerald_sword");
- }
- }
- however, everytime i try to make a recipe for it, the item won't show up. basically, when i type ItemStacks(Items.emerald_sword) it doesn't work because emerald_sword isn't recognized. what's the problem here?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement