Unbreakable tools and armor

Started by The Sociopath on Mon, 12/12/2016 - 19:08

Topic category: Help with MCreator's application

Last seen on 21:27, 12. Dec 2016
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Unbreakable tools and armor
Mon, 12/12/2016 - 19:08

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

Last seen on 23:44, 18. Aug 2019
Joined Apr 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

Last seen on 21:27, 12. Dec 2016
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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

Last seen on 01:36, 13. Dec 2016
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
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);

 

Last seen on 21:11, 18. Aug 2019
Joined Feb 2015
User points:

Statistics:

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

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

Last seen on 21:27, 12. Dec 2016
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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?

Last seen on 00:12, 3. Feb 2017
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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