GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
223 stars 166 forks source link

Add Material Working Tier #2429

Open serenibyss opened 1 month ago

serenibyss commented 1 month ago

Adds a "working tier" field to all materials, which specifies the minimum voltage that any given working recipe (extruding, bending, solidifying, fluid extracting, wiremilling, etc.) should be. Currently this is just an API, as no materials specify anything above default. The field is publicly accessible and settable for existing materials by addons, groovyscript and crafttweaker, as well as for new materials in a material builder call.

Rather than blindly setting the voltage for carefully chosen EU/t recipes (like the bender being 24 EU/t) to the VA[tier] value, it attempts to scale the voltage to the appropriate adjusted amount at the provided tier. Examples:

Additionally, any material with a working tier above HV will no longer generate manual recipes for parts, such as using a Hammer to craft 2 ingots into plates or a File to craft an ingot into a rod.

Open questions on whether these should receive working tier scaling:

As an additional larger question: should this feature include polarizing to remove our special cases for Neodymium (HV polarizer) and Samarium (IV polarizer)? Or should these continue to be special cases so that they do not need to also gain higher voltage working recipes apart from polarizing?

screret commented 1 month ago

woah.