Jump to content

Broke it again! Help Please


AssassinHero

Recommended Posts

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!!!!

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

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