Fuels accepted in various fluid fuel powered generators are hardcoded
KonSola5 opened this issue ยท 1 comments
Describe the bug
Fuels accepted in various fluid fuel powered generators are hardcoded.
That means that a pack would have to either make a custom mod with an @Inject
(for adding) or @Overwrite
(for removing recipes) mixin into the class registering the fluid generator recipes, or the pack would have to perform weird fluid conversion recipes.
TechReborn/src/main/java/techreborn/init/FluidGeneratorRecipes.java
Lines 35 to 58 in d1f7f2a
Steps to Reproduce
Steps to reproduce the behavior:
Coding issue.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information with the version):
- Minecraft: Any (present on 1.20.4)
- Mod Loader: Fabric
Logs
None, since it's a coding issue.
Additional context
Fusion Reactor recipes are already compatible with datapacks, and that's the only generator in the whole mod which inputs can be configured with a datapack.
Done, fluids are now data driven recipes, with the following format:
{
"type": "techreborn:diesel_generator",
"fluid": "techreborn:nitrofuel",
"power": 24
}
type
can be one of:
techreborn:thermal_generator
techreborn:gas_generator
techreborn:diesel_generator
techreborn:semi_fluid_generator
techreborn:plasma_generator