
Custom generators with Kubejs have recipe regressing when no output is available making infinite energy easy to do
Closed this issue ยท 1 comments
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
7.1.3
Minecraft Version
1.20.1 Forge
Recipe Viewer Installed
EMI
Environment
Singleplayer
Cross-Mod Interaction
No
Other Installed Mods
Within TFG Modpack
Expected Behavior
The generator should stop if there is no output possible and the recipes shouldn't regress
Actual Behavior
The recipe regress making it infinite energy
Steps to Reproduce
Make a custom generator with Kubejs, make it output for example 2A of EV Energy and put a HV Dynamo Energy Hatch. Place a battery buffer and enjoy infinite energy with a recipe never ending.
Additional Information
https://www.youtube.com/watch?v=woQOIjZXTsk
event.create('large_solar_panel') .category('generator') .setEUIO('out') .setMaxIOSize(2, 0, 0, 0) .setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT) .setSound(GTSoundEntries.COOLING)
event.create('large_solar_panel', 'multiblock') .rotationState(RotationState.NON_Y_AXIS) .generator(true) .recipeType('large_solar_panel') .noRecipeModifier() .appearanceBlock(() => Block.getBlock('tfg:casings/machine_casing_iron_desh')) .pattern(definition => FactoryBlockPattern.start()