#What is this crash and how do I fix this

17 messages · Page 1 of 1 (latest)

lofty jewel
#

java.lang.IllegalStateException: A machine model must have a variant or multipart model!
I and GPT has been struggling hard with this, it's been like 10 attempts now and either this or java.lang.IllegalStateException: missing pattern while creating multiblock processor
GTCeU ver: 1.20.1-7.1.4 (Forge)
If you want I will give you the code

#

even GPT is saying that the kjs integration is bugged, this just proves how obscure the issue is

jade musk
#

don't use lie generators and read the wiki

lofty jewel
#

it's for 1.6.4

jade musk
#

it has been updated seems the PRs are still not merged :/

#

look at #3524

lofty jewel
#

java.lang.IllegalStateException: missing pattern while creating multiblock test_generator
This is what happens after taking example code from wiki + PR#3524
GTCEuStartupEvents.registry("gtceu:recipe_type", (event) => {
event
.create("oreproc")
.setEUIO("in")
.setMaxIOSize(1, 5, 1, 0)
.setSound(GTSoundEntries.CHEMICAL);
});
GTCEuStartupEvents.registry('gtceu:machine', event => {
event.create('processor', 'multiblock')
.tooltips(Component.translatable('your.langfile.entry.here')) //
.rotationState(RotationState.NON_Y_AXIS)
.appearanceBlock(GTBlocks.CASING_STEEL_SOLID)
.recipeTypes('oreproc')
.pattern(definition => FactoryBlockPattern.start()
.aisle('CCC', 'GGG', 'CCC')
.aisle('CCC', 'GDG', 'CSC')
.aisle('CKC', 'GGG', 'CMC')
.where('K', Predicates.controller(Predicates.blocks(definition.get())))
.where('M', Predicates.abilities(PartAbility.MAINTENANCE))
.where('S', Predicates.abilities(PartAbility.MUFFLER))
.where('D', Predicates.blocks(GTBlocks.COIL_CUPRONICKEL.get()))
.where('G', Predicates.blocks('minecraft:glass'))
.where('C', Predicates.blocks(GTBlocks.CASING_STEEL_SOLID.get())
.or(Predicates.autoAbilities(definition.getRecipeTypes())))
.build())
.workableCasingModel(
"gtceu:block/casings/solid/machine_casing_inert_ptfe",
"gtceu:block/multiblock/large_chemical_reactor",
)//just merger the prs please
})

hot citrus
stray sphinx
#
  1. .tooltips is bugged for some reason, the only thing that helped me was removing that line entirely
  2. In appearanceBlock, use a provider: () => GTBlocks.CASING_STEEL_SOLID.get()
#

Note that this has only helped me, it might not work for you

fading nacelle
#

the wiki is on 1.6.0 stuff still

#

not even 1.6.4

#

they are working on updating it thou

lofty jewel