Unbreakable tools and armor

Started by The Sociopath on

Topic category: Help with MCreator software

Last seen on 21:27, 12. Dec 2016
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

Last seen on 23:44, 18. Aug 2019
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.

Last seen on 21:27, 12. Dec 2016
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

Last seen on 01:36, 13. Dec 2016
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.

Last seen on 22:13, 3. Apr 2024
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);

 

Last seen on 07:13, 20. Apr 2024
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.

Last seen on 21:27, 12. Dec 2016
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?

Last seen on 00:12, 3. Feb 2017
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