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 Creation

GTCEuStartupEvents.registry('gtceu:machine', event => {
	event.create("test", "test_recipe_type", tier => 3200, GTValues.LV, GTValues.MV, GTValues.HV, GTValues.EV, GTValues.IV);
})

Multiblock Creation

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

Clone this wiki locally