The KINETIC_OUTPUT_BOX will never stop even if the machine was broken down
iamSmallY opened this issue ยท 0 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
directly source code
Recipe Viewer Installed
None
Environment
directly source code
Cross-Mod Interaction
Yes
Other Installed Mods
directly source code
Expected Behavior
The KINETIC_OUTPUT_BOX should stop output stress when the machine is paused or broken.
Actual Behavior
It never stop output stress once it is started, even if the entire machine except it is destroyed.
Steps to Reproduce
GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
event.create('cocat_steam_turbine')
.category('example')
.setEUIO('out')
.setMaxIOSize(0, 0, 1, 1)
.setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
.setSteamProgressBar(GuiTextures.DISPLAY_STEAM, FillDirection.LEFT_TO_RIGHT)
.setSound(GTSoundEntries.ARC)
.setMaxTooltips(6)
})
GTCEuStartupEvents.registry("gtceu:machine", event => {
const LargeTurbineMachine = Java.loadClass("com.gregtechceu.gtceu.common.machine.multiblock.generator.LargeTurbineMachine")
event.create("cocat_steam_turbine", "multiblock", (holder, trie) => new LargeTurbineMachine(holder, trie), 4)
.rotationState(RotationState.NON_Y_AXIS)
.appearanceBlock(GTBlocks.CASING_STAINLESS_TURBINE)
.recipeType("cocat_steam_turbine")
.recipeModifier((machine, recipe) => LargeTurbineMachine.recipeModifier(machine, recipe))
.pattern(definition => FactoryBlockPattern.start()
.aisle("CCCC", "CHHC", "CCCC")
.aisle("CHHC", "RAAR", "CHHC")
.aisle("CCCC", "CSHC", "CCCC")
.where("S", Predicates.controller(Predicates.blocks(definition.get())))
.where("A", Predicates.blocks('create:flywheel'))
.where("H", Predicates.blocks('gtceu:stainless_steel_turbine_casing')
.or(Predicates.abilities(PartAbility.MAINTENANCE).setExactLimit(1))
.or(Predicates.abilities(PartAbility.MUFFLER).setExactLimit(1))
.or(Predicates.abilities(PartAbility.IMPORT_FLUIDS))
.or(Predicates.abilities(PartAbility.EXPORT_FLUIDS))
.or(Predicates.abilities(PartAbility.OUTPUT_KINETIC).setExactLimit(1)))
.where("R", Predicates.abilities(PartAbility.OUTPUT_ENERGY).setExactLimit(1)
.or(Predicates.abilities(PartAbility.ROTOR_HOLDER).setExactLimit(1)))
.where("C", Predicates.blocks("gtceu:stainless_steel_turbine_casing"))
.build())
.workableCasingRenderer(
"gtceu:block/casings/mechanic/machine_casing_turbine_stainless_steel",
"gtceu:block/multiblock/generator/large_steam_turbine", false)
});
ServerEvents.recipes(event => {
event.recipes.gtceu.cocat_steam_turbine('steam')
.inputFluids(Fluid.of('gtceu:steam',640))
.outputFluids(Fluid.of('gtceu:distilled_water',4))
.outputStress(32768)
.duration(10)
.EUt(-32)
})
Additional Information
No response