#Multiblock Generaton aint working
30 messages · Page 1 of 1 (latest)
might need to put
.regressWhenWaiting(false)
in the multiblock registry, does the recipe show in jei and does it start and stop at all?
ServerEvents.recipes(event => {
event.recipes.gtceu.solar_test('kubejs:solar_test/steel')
.notConsumable('#gtceu:circuits/lv')
.daytime(false)
.duration(20)
.EUt(-32)
})
GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
event.create('solar_test')
.setEUIO('out')
.setMaxIOSize(1, 0, 0, 0)
.setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
.setSound(GTSoundEntries.ELECTROLYZER)
})
GTCEuStartupEvents.registry('gtceu:machine', event => {
event.create('solar_test', 'multiblock')
.rotationState(RotationState.NON_Y_AXIS)
.recipeType('solar_test')
.noRecipeModifier()
.appearanceBlock(GTBlocks.CASING_STEEL_SOLID)
.generator(true)
.regressWhenWaiting(false)
.pattern(definition => FactoryBlockPattern.start()
.aisle('BB', 'CC', ' ')
.aisle('BB', 'CK', ' R')
.where('K', Predicates.controller(Predicates.blocks(definition.get())))
.where('B', Predicates.blocks('gtceu:steel_block'))
.where('R', Predicates.blocks('rainshield:rain_shield'))
.where('C', Predicates.blocks(GTBlocks.CASING_STEEL_SOLID.get())
.or(Predicates.blocks(PartAbility.OUTPUT_ENERGY.getBlocks(GTValues.LV).toArray()).setMaxGlobalLimited(1))
.or(Predicates.abilities(PartAbility.IMPORT_ITEMS).setMaxGlobalLimited(1).setPreviewCount(1))
)
.where(' ', Predicates.any())
.build()
)
.workableCasingModel('gtceu:block/casings/solid/machine_casing_solid_steel', 'gtceu:block/machines/wiremill')
})
that works if you want to tweak from that
mhm
do you know if i can show up the coil temperature in gui not using CoilWorkableMultiblockMachine?
because that fucks up the recipes
@strong aurora
like idk
machine.getCoils().getTemperature()
is there smth like this?
from what i know the coil info will not show in the jei recipe preview without some custom ui logic, but if you use
.where('L', Predicates.heatingCoils())
then it also needs an overclock recipeModifier as well like
.recipeModifiers([GTRecipeModifiers.PARALLEL_HATCH, (machine, recipe) => GTRecipeModifiers.crackerOverclock(machine, recipe)])
and a holder like so
.machine((holder) => new CoilWorkableElectricMultiblockMachine(holder))
and you already have the loadClass for it by the looks of it
depending on the overclock method you use, it will follow the same logic but it wont show in jei like native GT multis without a custom ui logic
ik
but .machine((holder) => new CoilWorkableElectricMultiblockMachine(holder))
blocks generation eut
@strong aurora
ive made my own multiblock machine type
but i get
[main/FATAL] [mixin/]: Mixin apply failed gtceu.mixins.json:client.GuiGraphicsMixin -> net.minecraft.client.gui.GuiGraphics: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException Critical injection failure: @WrapMethod annotation on gtceu$renderResearchItemContent.....
are you using research stuff and or a custom ui? seens to have a fatal error referencing the rendering of research items
huh