Tinkers Construct

Tinkers Construct

160M Downloads

Multiple Modifiers from 1 Upgrade Enhancement

Pitti11 opened this issue ยท 4 comments

commented

Is your idea related to a problem? Please describe.
I'd like to add an upgrade modifier recipe which adds two seperate modifiers at the same time, but that doesn't seem to be possible or even intended.

Describe the solution you'd like
A way for recipes to have multiple results like the options for requirement, maybe.

Describe alternatives you've considered
Or it could be added in code with an onCraft event in Modifiers.java

Additional context
How it is
grafik
How it could look like
grafik

Versions:

  • Minecraft: 1.16.5
  • Forge: 36.1.0
  • Mantle: 1.6.95
  • Tinkers Construct: 3.0.3.144

Confirm below that this enhancement is not covered on the roadmap or "Whats New?"
Confirm

commented

Yeah, just add a modifier with both effects. If needed, you can use volatile mod data or IModifierToolStack::getModifierLevel to have them detect each other.

commented

This very much violates how modifier recipes work, it will not display well in JEI. Please explain why you need to be able to add multiple modifiers with one recipe.

commented

Well the plan was to have an upgrade from x material also add the trait of x material to tools which aren't made from x and thus don't have the trait at all. Kinda like the upgrade would count as an extra part and therefore also provide the trait.
Is that a bad idea? Another way would be to add a new modifier which combines both functions of the trait and upgrade.

commented

Well, thank you very much for answering.
I am now using the solution with 3 modifier recipes and two modifiers where i rename the upgrade modifier to "Upgrade + Trait" if the trait is not on the tool. And if the tool has the trait, they sense each other and display a correct level.