Posted June 3, 201411 yr I am new to modding and the Java programing language. I have come from scripting with Javascript and PHP. I have my Item package com.nawm.butchery.items; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import com.nawm.butchery.Butchery; public class ItemCleaver extends Item { public ItemCleaver() { super(); setUnlocalizedName("Cleaver"); setTextureName(Butchery.MODID + ":" + getUnlocalizedName().substring(5)); setCreativeTab(CreativeTabs.tabTools); setNoRepair(); setMaxStackSize(1); setMaxDamage(200); } } and my Recipe it is used in GameRegistry.addRecipe(new ItemStack(ModItems.RawBacon, 4), new Object[]{ "XY", 'X', Items.porkchop, 'Y', new ItemStack(ModItems.Cleaver, 1, -1) }); I want my Cleaver Item to return to player with durability damage. Like the SAW from microblocks.
June 3, 201411 yr Author Thanks that worked, but I cannot use the new Cleaver which has durability damage to be used in the same recipe again.
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.