Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Make GT tools respect the Unbreakable tag #1734

Open
BalaM314 opened this issue Dec 25, 2021 · 2 comments
Open

[Suggestion] Make GT tools respect the Unbreakable tag #1734

BalaM314 opened this issue Dec 25, 2021 · 2 comments
Labels
type: feature New feature or request

Comments

@BalaM314
Copy link

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).

@BalaM314 BalaM314 added the type: feature New feature or request label Dec 25, 2021
@Archengius
Copy link
Member

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

@warjort
Copy link
Contributor

warjort commented Dec 25, 2021

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants