Jump to content

Recommended Posts

Posted

here is my code

 

main.class

package kiraki.assets;

import net.minecraft.block.Block;
import net.minecraft.item.EnumToolMaterial;
import net.minecraft.item.Item;
import net.minecraft.item.ItemFood;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.EnumHelper;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.client.renderer.texture.IconRegister;

@Mod(modid="Kiraki",name="Kill La Kill",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)

public class main {

	/*______________________________________­_____________________
	* ToolMaterial
	________________________________________­_____________________*/



	/*______________________________________­_____________________

	*Telling forge that we are creating these
	________________________________________­_____________________*/
	
	public static Item Blood;



	/*______________________________________­_____________________
	*Declaring Init
	________________________________________­_____________________*/

	@Init
	public void load(FMLInitializationEvent event){
	/*______________________________________­_____________________
	*Define Items/Blocks
	________________________________________­_____________________*/

		Blood = new ItemBlood(2010).setUnlocalizedName("blood");

	/*______________________________________­_____________________
	*Adding Names
	________________________________________­_____________________*/

		LanguageRegistry.addName(Blood, " Drop of Blood");


	/*______________________________________­_____________________
	*Crafting
	________________________________________­_____________________*/
		
		

	}
	
}

ItemBlood.class

package kiraki.assets;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;

public class ItemBlood extends Item {

	public ItemBlood(int par1) {
		super(par1);
		setCreativeTab(CreativeTabs.tabMaterials);
		
	}
	
	public String getTextureFile(){
		return "/minecraft/assets/textures/items/blood.png";
	}

}

Posted

I was a half second away from tossing a warning and deleting this. An actual modding related thread instead of people posting server crashdumps or demanding someone make them a modpack, that's nearly unheard of anymore.

 

 

I personally haven't poked around with any actual effort since 1.2.5, but are you using eclipse and is it tossing any errors at you?

Posted

Ooo, it's looking directly into the minecraft assets files, not the mod assets file. Only if you actually did that would it might be able to see it.

 

But then again, I'd suggest doing good coding practices and keep your mod assets outside the main Minecraft assets folders. Take a bash around the Forge tutorials on how best to approach this, I'm rather rusty right now.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...