F350s Posted August 11, 2014 Posted August 11, 2014 I am trying to make an item that when crafted gives back the item but damaged (Like the handsaw or minium stone). I can't seem to find a tutorial on 1.7.10 and was wondering if someone could help me out. Item Class --- package com.f350s.swappable; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class Swapper extends Item { public Swapper() { this.setUnlocalizedName("swapper"); this.setCreativeTab(CreativeTabs.tabMisc); this.setTextureName("swappable:swapper"); this.setMaxStackSize(1); } public boolean hasContainerItem() { return true; } /* public ItemStack getContainerItemStack(ItemStack itemStack) { } */ } Thanks Quote
mickedplay Posted August 11, 2014 Posted August 11, 2014 (edited) - Edited August 29, 2022 by mickedplay Quote
Recommended Posts
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.