Jump to content

[1.7.10] Item Damaged On Crafted


F350s

Recommended Posts

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

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.



×
×
  • Create New...

Important Information

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