Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Help with name not showing in minecraft


mysticpenguin
 Share

Recommended Posts

Hi I have tried everything I can think of and I cant get the name of my item to show up in minecraft. Any help would be great :D.

 

Main class file:

 

package com.brickepm.mymod;

 

import net.minecraft.init.Blocks;

import net.minecraft.item.Item;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.EventHandler;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.registry.GameRegistry;

import net.minecraftforge.common.util.EnumHelper;

import net.minecraft.item.Item.ToolMaterial;

 

@Mod(modid = MyMod.MODID, version = MyMod.VERSION)

public class MyMod

{

    public static final String MODID = "Boom Blade Mod";

    public static final String VERSION = "1.0";

    public static Item boomblade;

    public static Item.ToolMaterial boom = EnumHelper.addToolMaterial("mypick", 3, 1000, 9.5F, 3.5F, 10);

   

    @Mod.EventHandler

    public void preinit(FMLPreInitializationEvent event)

    {

boomblade = new ItemBoomBlade(boom, "boomblade");

GameRegistry.registerItem(boomblade, "Boomblade");

    }

}

 

 

 

boomblade file:

package com.brickepm.mymod;

 

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraft.item.Item.ToolMaterial;

import net.minecraft.item.ItemSword;

 

public class ItemBoomBlade extends ItemSword

{

  public ItemBoomBlade(Item.ToolMaterial material, String name)

  {

    super(material);

  setUnlocalizedName(MyMod.MODID + "_" + "boomblade");

  setTextureName(MyMod.MODID + ":" + "boomblade");

  setCreativeTab(CreativeTabs.tabCombat);

  }

}

 

en_US.lang file:

 

item.Boom Blade Mod_Boomblade.name=Boom Blade

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.