#Startup broken

17 messages · Page 1 of 1 (latest)

zealous hazel
#

Here is code that is minish

StartupEvents.registry("block", event => {
    event.create('black_hole_stabilizer')
        .displayName("Black Hole Stabilizer")
        .soundType('metal')
        .resistance(6).hardness(5)
        .tagBlock("mineable/pickaxe").requiresTool(true)
        .textureAll('kubejs:block/black_hole_containment/casing');

    event.create("containment_casing", 'gtceu:renderer')
        .displayName("Containment Casing")
        .soundType('metal')
        .hardness(2.5)
        .resistance(2.5)
        .requiresTool(true)
        .tagBlock("mineable/pickaxe")
        .textureOverrideRenderer('minecraft:block/cube_all', { 'all': new ResourceLocation('kubejs', 'block/black_hole_containment/casing') })

})
#
GTCEuStartupEvents.registry('gtceu:recipe_type', event => {

    event.create('basic_black_hole_containment')
        .category('multiblock')
        .setEUIO('in')
        .setMaxIOSize(4, 20, 1, 0)
        .setSlotOverlay(false, false, GuiTextures.SOLIDIFIER_OVERLAY)
        .setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
        .setSound(GTSoundEntries.COOLING);


})


GTCEuStartupEvents.registry('gtceu:machine', event => {

    event.create('basic_black_hole_containment', 'multiblock')
            .rotationState(RotationState.NON_Y_AXIS)
            .recipeTypes('basic_black_hole_containmente')
            .appearanceBlock(() => Block.getBlock('kubejs:containment_casing'))
            .pattern(definition => FactoryBlockPattern.start()
                .aisle("CMC", "CVC", "CCC")
                .aisle("CCC", "GDG", "CCC")
                .aisle("CSC", "CGC", "CCC")
                .where('S', Predicates.controller(Predicates.blocks(definition.get())))
                .where('D', Predicates.blocks('kubejs:black_hole_stabilizer'))
                .where('C', Predicates.blocks("kubejs:containment_casing").setMinGlobalLimited(12)
                    .or(Predicates.autoAbilities(definition.getRecipeTypes())))
                .where('G', Predicates.blocks(GTBlocks.CASING_TEMPERED_GLASS.get()))
                .where('M', Predicates.abilities(PartAbility.MUFFLER))
                .where('V', Predicates.blocks(GTBlocks.CASING_GRATE.get()))
                .build())
            //.workableCasingRenderer("kubejs:block/black_hole_containment/casing",
              //  "gtceu:block/multiblock/implosion_compressor", false)

})
tacit dew
zealous hazel
#

(not many)

#
const Tags = Java.loadClass('dev.latvian.mods.kubejs.util.Tags')

GTCEuStartupEvents.registry('gtceu:recipe_type', event => {

    event.create('basic_black_hole_containment')
        .category('multiblock')
        .setEUIO('in')
        .setMaxIOSize(4, 20, 1, 0)
        .setSlotOverlay(false, false, GuiTextures.SOLIDIFIER_OVERLAY)
        .setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
        .setSound(GTSoundEntries.COOLING);


})


GTCEuStartupEvents.registry('gtceu:machine', event => {

    event.create('basic_black_hole_containment', 'multiblock')
            .rotationState(RotationState.NON_Y_AXIS)
            .recipeTypes('basic_black_hole_containmente')
            .appearanceBlock(() => Block.getBlock('kubejs:containment_casing'))
            .pattern(definition => FactoryBlockPattern.start()
                .aisle("CMC", "CVC", "CCC")
                .aisle("CCC", "GDG", "CCC")
                .aisle("CSC", "CGC", "CCC")
                .where('S', Predicates.controller(Predicates.blocks(definition.get())))
                .where('D', Predicates.blocks('kubejs:black_hole_stabilizer'))
                .where('C', Predicates.blocks("kubejs:containment_casing").setMinGlobalLimited(12)
                    .or(Predicates.autoAbilities(definition.getRecipeTypes())))
                .where('G', Predicates.blocks(GTBlocks.CASING_TEMPERED_GLASS.get()))
                .where('M', Predicates.abilities(PartAbility.MUFFLER))
                .where('V', Predicates.blocks(GTBlocks.CASING_GRATE.get()))
                .build())
            .workableCasingRenderer("kubejs:block/black_hole_containment/casing",
              "gtceu:block/multiblock/implosion_compressor", false);

})
#

Its this I think

#

I removed it and minecraft launched

#

THE E

#

THE FREAKING E

#
.recipeTypes('basic_black_hole_containmente')
dry trench
#

E

zealous hazel
#

YAY now to fix Textures

full pewter