mekanism / Mekanism-Feature-Requests

All enhancements and feature requests for Mekanism (for current and future releases) should go here.
11 stars 4 forks source link

Minimum factory tier requirement for recipes for Craft-tweaker/Datapacks. #566

Open PyroFlareX opened 1 year ago

PyroFlareX commented 1 year ago

Describe the feature you'd like

I would like the ability for certain recipes to have the ability to be gated to a certain tier of factory and above. For instance, the capability to modify the recipe for elite circuits in craft-tweaker or otherwise to require an advanced tier infuser or above.

For the CT scripting, possibly have the "minimum tier" be an optional argument at the end of the line. Like:

.addRecipe("oak_leaves_to_saplings", ItemStackIngredient.from( * 20), , "advanced");``` To use one of the CT examples found here: https://github.com/mekanism/Mekanism/blob/1.16.x/src/datagen/generated/mekanism/data/mekanism/scripts/mekanism_enriching.zs ### Describe alternatives you've considered - A custom upgrade for the machine that it could check against. - Using CT to check what "block" the recipe was being executed in (which is impossible naturally in CT I have found out). - Forking the mod to change the recipe datapack thing for each machine tier, and script each tier to include the previous tier's recipes with CT. ### Additional context I wish to make a modpack that uses mekanism tiers for recipe progression, akin to how voltage tiers in Gregtech and other mods work.