Unbreakable tools and armor

Started by The Sociopath on

Topic category: Help with MCreator software

Active 8 years ago
Joined Dec 2016
Points:
705

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 5 years ago
Joined Apr 2016
Points:
992

User statistics:

  • Modifications: 4
  • Forum topics: 22
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 273
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.

Active 8 years ago
Joined Dec 2016
Points:
705

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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

Active 8 years ago
Joined Dec 2016
Points:
719

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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.

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
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);

 

Active 5 days ago
Joined Feb 2015
Points:
1047

User statistics:

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

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

Active 8 years ago
Joined Dec 2016
Points:
705

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?

Active 8 years ago
Joined Dec 2016
Points:
704

User statistics:

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