GregTechCE/GregTech

[Suggestion] Make GT tools respect the Unbreakable tag

BalaM314 opened this issue · 2 comments

Is your feature request related to a problem? Please describe.
There is no way to make unbreakable GT tools(for creative, or endgame or creative tier in packs)

Describe the solution you'd like
Either make GT tools respect the vanilla Unbreakable NBT tag(not take damage when this tag is set) or add some other creative type way to make unbreakable tools(set damage to -1, GTunbreakable tag, etc).

you can literally override most of the tool stats through NBT, nothing prevents you from giving a tool huge amount of durability

It wouldn't be very difficult to implement this, you just need to register your own tool item (example for GTCE axe):

AXE = addItem(3, "tool.axe").setToolStats(new ToolAxe())

But use a ToolStats that has zero damage (the current axe stats):
public int getToolDamagePerBlockBreak(ItemStack stack) {

Sadly, the Tools/Stats are not something exposed via CraftTweaker, so you will need to write your own mod to do this.

I don't think creative items are something that belongs in the base mod?
GregTech hasn't traditionally supported creative items.
In GT6 and before it uses the opposite rule, with creative/cheated tools having 1 durability.
GTCE generously gives you darmstadtium tools in the creative tabs :-)