Skip to content
Drackion edited this page May 15, 2023 · 52 revisions

GTCEU Kubejs Scripts

Startup Scripts

Element Creation

GTCEuStartupEvents.registry('gtceu:element', event => {
event.create(27, 177, -1, null, 'test_element', 'test', false);
})

Material Creation

GTCEuStartupEvents.registry('gtceu:material', event => {
   event.create("test")
        .ingot(1)
        .element(GTElements.get("test_element"))
        .color(0x2176ff).iconSet(GTMaterialIconSet.METALLIC)
        .flags(GTMaterialFlags.GENERATE_PLATE, GTMaterialFlags.GENERATE_ROD, GTMaterialFlags.GENERATE_FRAME)
    .buildAndRegister();

Recipe Type Creation

GTCEuStartupEvents.registry('gtceu:recipeType', event => {
        event.create("test_recipe_type", "multiblock")
		.setEUIO("IN")
		.setMaxIOSize(3, 4, 2, 0)
		.setSlotOverlay(false, false, GuiTextures.SOLIDIFIER_OVERLAY)
		.setProgressBar(GuiTextures.PROGRESS_BAR_ARROW, FillDirection.LEFT_TO_RIGHT)
	.setSound(GTSoundEntries.COOLING);
})

Machine & Multiblock Creation

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

Server Scripts

Recipe Additions

ServerEvents.recipes(event => {
       event.recipes.gtceu.alloy_smelter('recipe_id')
            .inputItems('gtceu:wire_single.copper', 'gtceu:wire_single.nickel')
            .outputItems('2x gtceu:wire_single.cupronickel')
            .duration(120)
            .EUt(16)
})

Clone this wiki locally