Unbreakable tools and armor

Started by The Sociopath on

Topic category: Help with MCreator software

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unbreakable tools and armor

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

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think you can do that
Mon, 12/12/2016 - 19:13

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.

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I see... 
Mon, 12/12/2016 - 19:18

I see... 

I would very much like to be able to craft tools/armor with the unbreakble NBT tag

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could give it like 4,000
Mon, 12/12/2016 - 19:23

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.

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try something like:
Mon, 12/12/2016 - 19:39

Try something like:

ItemStack itemstack = new ItemStack(Items.diamond_pickaxe);

 if (itemstack.getTagCompound() == null)
        {
            itemstack.setTagCompound(new NBTTagCompound());
            
        }

itemstack.getTagCompound().setBoolean("Unbreakable",true);

 

Joined Feb 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
For unbreakable tools, you
Mon, 12/12/2016 - 19:50

For unbreakable tools, you can set the tool's durability to 0.

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will try this now! Thanks!
Mon, 12/12/2016 - 20:56

Will try this now! Thanks! Will I be able to use the mod in 1.11?

Joined Dec 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Try something like:
Wed, 12/14/2016 - 00:50

Hi, you know how to set durability to max, but not be unbreakable?... I mean, only repair. Ty