Posted March 19, 201312 yr Ummm yeah, I broke it again.... View my last post to get the low down: http://www.minecraftforge.net/forum/index.php/topic,6760.0.html Basically the item isn't going into the game here is the main mod code package assassinhero.parallelworlds.common; import net.minecraft.item.Item; import assassinhero.parallelworlds.client.core.handlers.ClientPacketHandler; import assassinhero.parallelworlds.common.core.CommonProxy; import assassinhero.parallelworlds.common.core.handlers.ServerPacketHandler; import assassinhero.parallelworlds.common.item.ItemNightStone; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.Init; import cpw.mods.fml.common.Mod.Instance; import cpw.mods.fml.common.SidedProxy; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler; import cpw.mods.fml.common.network.NetworkRegistry; import cpw.mods.fml.common.registry.LanguageRegistry; @NetworkMod(clientSideRequired=true,serverSideRequired=false, clientPacketHandlerSpec = @SidedPacketHandler(channels = { "ParallelWorlds" }, packetHandler = ClientPacketHandler.class), serverPacketHandlerSpec = @SidedPacketHandler(channels = { }, packetHandler = ServerPacketHandler.class)) @Mod(modid="ParallelWorlds",name="ParallelWorlds",version="1.0.0") public class Mod_ParallelWorlds { @Instance("ParallelWorlds") public static Mod_ParallelWorlds instance = new Mod_ParallelWorlds(); @SidedProxy(clientSide = "assassinhero.parallelworlds.client.core.ClientProxy", serverSide = "assassinhero.parallelworlds.common.core.CommonProxy") public static CommonProxy proxy; @Init public void InitParallelWorlds (FMLInitializationEvent event){ public static Item NightStone = new ItemNightStone(682).setUnlocalizedName("Night Stone"); NetworkRegistry.instance().registerGuiHandler(this, proxy); LanguageRegistry.addName(Mod_ParallelWorlds.NightStone, "Night Stone"); proxy.addNames(); } } Here is the item code package assassinhero.parallelworlds.common.item; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class ItemNightStone extends Item{ public ItemNightStone(int par1){ super(par1); setCreativeTab(CreativeTabs.tabMaterials); } @SideOnly(Side.CLIENT) public int getItemIconFromDamage(int i) { return 0; } } Any help?!?! STOP CRUCIFYING NEW MODDERS!!!!
March 19, 201312 yr Good source on starting to learn Java. http://www.youtube.com/user/thenewboston Please complete his basic Java tutorials and maybe even his intermediate tutorials
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.