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("mana_steel")
        .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("greenhouse_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 Creation

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

Clone this wiki locally