TomokoWatamote Posted March 5, 2014 Posted March 5, 2014 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"; } }
Neowulf Posted March 5, 2014 Posted March 5, 2014 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?
Lethosos Posted March 7, 2014 Posted March 7, 2014 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now