Making Items Unbreakable

The place to request or discuss MineTweaker features.

Making Items Unbreakable

Postby SixOnTheBeach » Fri Jan 16, 2015 5:37 am

Hi! Would it be possible when doing block modifications to also have a feature to make items unbreakable, like TiC tools or other similar items?
Posts: 2
Joined: Fri Jan 16, 2015 5:35 am

Re: Making Items Unbreakable

Postby ZeroLevels » Mon Mar 30, 2015 6:13 am

Sorry for bumping this old thing, but you could always just set the Unbreakable tag to 1 as part of the crafting result. I'll use shears as an example.

Or if you wanted to make it look at least a little different from normal shears, you could give it a blank enchantment slot to give it the glint without an actual enchantment.
<minecraft:shears>.withTag({Unbreakable:1, ench: [{id:63,lvl:0}]});

Just be aware that using these items in other recipes will not count the tags, only that they are vanilla minecraft shears.
Having trouble developing your scripts? Get NEI Integration by tonius111. Once installed, enable these 3 configuration settings:
  • B:"Fluid Registry"=true
  • B:"Ore Dictionary"=true
  • B:"Internal Name"=true
User avatar
Posts: 78
Joined: Thu Mar 12, 2015 10:59 pm

Return to Feature Discussions

Who is online

Users browsing this forum: No registered users and 1 guest