Started by
The Sociopath
on
Topic category: Help with MCreator software
I want to create a crafting recipie that allows you to craft unbreakable tools/armor. For example, if you put a diamond pickaxe in a crafting table and put diamond blocks around it you would get
an unbreakable diamond pickaxe. I have no idea how to make this and i would very much appreciate any help.
minecraft:diamond_pickaxe 1 0 {Unbreakable:1} is the ingame ID for an unbreakable diamond pickaxe if it is to any help
I don't think you can do that with a crafting table, but you could make a new recipe and have the tool coming out be enchanted with the unbreaking enchantment at level 1000 or so. It will still break eventually, but it will take a VERY long time.
I see...
I would very much like to be able to craft tools/armor with the unbreakble NBT tag
You could give it like 4,000 uses and also give it a recipe with Unbraking X and Mending it is not 100% Unbraking but it would last for a VERY long time.
Try something like:
ItemStack itemstack = new ItemStack(Items.diamond_pickaxe);
if (itemstack.getTagCompound() == null)
{
itemstack.setTagCompound(new NBTTagCompound());
}
itemstack.getTagCompound().setBoolean("Unbreakable",true);
For unbreakable tools, you can set the tool's durability to 0.
Will try this now! Thanks! Will I be able to use the mod in 1.11?
Hi, you know how to set durability to max, but not be unbreakable?... I mean, only repair. Ty