cleanup scripts for launch
fixed syntax + unified unnecessary files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
GTCEuStartupEvents.registry('gtceu:material', event => {
|
||||
GTMaterials.HSLASteel.addFlags(GTMaterialFlags.GENERATE_SPRING) //Adds flags to pre-existing GT materials
|
||||
GTMaterials.HSLASteel.addFlags(GTMaterialFlags.GENERATE_LONG_ROD) //Adds flags to pre-existing GT materials
|
||||
GTMaterials.Iridium.addFlags(GTMaterialFlags.GENERATE_FRAME) //Adds flags to pre-existing GT materials
|
||||
GTMaterials.Cobalt.addFlags(GTMaterialFlags.GENERATE_FINE_WIRE) //Adds flags to pre-existing GT materials
|
||||
})
|
||||
GTCEuStartupEvents.registry("gtceu:material", (event) => {
|
||||
GTMaterials.HSLASteel.addFlags(GTMaterialFlags.GENERATE_SPRING);
|
||||
GTMaterials.HSLASteel.addFlags(GTMaterialFlags.GENERATE_LONG_ROD);
|
||||
GTMaterials.Iridium.addFlags(GTMaterialFlags.GENERATE_FRAME);
|
||||
GTMaterials.Cobalt.addFlags(GTMaterialFlags.GENERATE_FINE_WIRE);
|
||||
});
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
// priority: 0
|
||||
|
||||
// Visit the wiki for more info - https://kubejs.com/
|
||||
|
||||
console.info('Hello, World! (Loaded startup scripts)')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
StartupEvents.registry('item', event => {
|
||||
event.create('greg_icon')
|
||||
})
|
||||
StartupEvents.registry("item", (event) => {
|
||||
event.create("greg_icon");
|
||||
});
|
||||
|
||||
Platform.mods.kubejs.name = 'GregTech Community Pack'
|
||||
Platform.mods.kubejs.name = "GregTech Community Pack";
|
||||
|
||||
@@ -1,23 +1,36 @@
|
||||
/*let GTRecipeModifiers = Java.loadClass("com.gregtechceu.gtceu.common.data.GTRecipeModifiers")
|
||||
let OverclockingLogic = Java.loadClass("com.gregtechceu.gtceu.api.recipe.OverclockingLogic") */
|
||||
|
||||
GTCEuStartupEvents.registry('gtceu:machine', event => {
|
||||
event.create('greenhouse', 'multiblock')
|
||||
.rotationState(RotationState.NON_Y_AXIS)
|
||||
.recipeType("greenhouse")
|
||||
.appearanceBlock(GTBlocks.MACHINE_CASING_ULV )
|
||||
.recipeModifier(GTRecipeModifiers.ELECTRIC_OVERCLOCK.apply(OverclockingLogic.NON_PERFECT_OVERCLOCK))
|
||||
.pattern(definition => FactoryBlockPattern.start()
|
||||
.aisle("#BBB#", "#BBB#", "#BBB#", "#BBB#")
|
||||
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
|
||||
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
|
||||
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
|
||||
.aisle("#BBB#", "#BEB#", "#BBB#", "#BBB#")
|
||||
.where('E', Predicates.controller(Predicates.blocks(definition.get())))
|
||||
.where('D', Predicates.blocks("minecraft:dirt"))
|
||||
.where('G', Predicates.blocks("gtceu:tempered_glass"))
|
||||
.where('B', Predicates.blocks("gtceu:ulv_machine_casing").setMinGlobalLimited(5).or(Predicates.autoAbilities(definition.getRecipeTypes())))
|
||||
.where('#', Predicates.air())
|
||||
.build())
|
||||
.workableCasingRenderer("gtceu:block/casings/voltage/ulv/side","gtceu:block/multiblock/implosion_compressor", true)
|
||||
})
|
||||
GTCEuStartupEvents.registry("gtceu:machine", (event) => {
|
||||
event
|
||||
.create("greenhouse", "multiblock")
|
||||
.rotationState(RotationState.NON_Y_AXIS)
|
||||
.recipeType("greenhouse")
|
||||
.appearanceBlock(GTBlocks.MACHINE_CASING_ULV)
|
||||
.recipeModifier(
|
||||
GTRecipeModifiers.ELECTRIC_OVERCLOCK.apply(
|
||||
OverclockingLogic.NON_PERFECT_OVERCLOCK
|
||||
)
|
||||
)
|
||||
.pattern((definition) =>
|
||||
FactoryBlockPattern.start()
|
||||
.aisle("#BBB#", "#BBB#", "#BBB#", "#BBB#")
|
||||
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
|
||||
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
|
||||
.aisle("BBBBB", "BDDDB", "B###B", "BGGGB")
|
||||
.aisle("#BBB#", "#BEB#", "#BBB#", "#BBB#")
|
||||
.where("E", Predicates.controller(Predicates.blocks(definition.get())))
|
||||
.where("D", Predicates.blocks("minecraft:dirt"))
|
||||
.where("G", Predicates.blocks("gtceu:tempered_glass"))
|
||||
.where(
|
||||
"B",
|
||||
Predicates.blocks("gtceu:ulv_machine_casing")
|
||||
.setMinGlobalLimited(5)
|
||||
.or(Predicates.autoAbilities(definition.getRecipeTypes()))
|
||||
)
|
||||
.where("#", Predicates.air())
|
||||
.build()
|
||||
)
|
||||
.workableCasingRenderer(
|
||||
"gtceu:block/casings/voltage/ulv/side",
|
||||
"gtceu:block/multiblock/implosion_compressor",
|
||||
true
|
||||
);
|
||||
});
|
||||
|
||||
@@ -1,7 +1,18 @@
|
||||
GTCEuStartupEvents.registry('gtceu:material', event => {
|
||||
event.create('fluix')
|
||||
.dust()
|
||||
.components('1x nether_quartz', '1x certus_quartz', '1x redstone')
|
||||
.color(0x8F5CCB).iconSet(GTMaterialIconSet.DULL)
|
||||
.flags(GTMaterialFlags.GENERATE_PLATE, GTMaterialFlags.GENERATE_GEAR)
|
||||
})
|
||||
GTCEuStartupEvents.registry("gtceu:material", (event) => {
|
||||
event
|
||||
.create("fluix")
|
||||
.dust()
|
||||
.components("1x nether_quartz", "1x certus_quartz", "1x redstone")
|
||||
.color(0x8f5ccb)
|
||||
.iconSet(GTMaterialIconSet.DULL)
|
||||
.flags(GTMaterialFlags.GENERATE_PLATE, GTMaterialFlags.GENERATE_GEAR);
|
||||
|
||||
/*
|
||||
event
|
||||
.create("netherite")
|
||||
.components("1x gold", "1x tungsten", "1x platinum")
|
||||
.color(0x4d494d)
|
||||
.iconSet(GTMaterialIconSet.METALLIC)
|
||||
.flags(GTMaterialFlags.GENERATE_PLATE);
|
||||
*/
|
||||
});
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
GTCEuStartupEvents.registry('gtceu:recipe_type', event => {
|
||||
event.create('greenhouse')
|
||||
.category('test') //Used in the GTlib / LDlib ui editor
|
||||
.setEUIO('in')
|
||||
.setMaxIOSize(3, 4, 1, 0) //Max Item Inputs, Max Item Outputs, Max Fluid Inputs, Max Fluid Outputs
|
||||
.setSlotOverlay(false, false, GuiTextures.BOX_OVERLAY)
|
||||
.setProgressBar(GuiTextures.PROGRESS_BAR_BATH, FillDirection.LEFT_TO_RIGHT)
|
||||
GTCEuStartupEvents.registry("gtceu:recipe_type", (event) => {
|
||||
event
|
||||
.create("greenhouse")
|
||||
.category("test")
|
||||
.setEUIO("in")
|
||||
.setMaxIOSize(3, 4, 1, 0)
|
||||
.setSlotOverlay(false, false, GuiTextures.BOX_OVERLAY)
|
||||
.setProgressBar(GuiTextures.PROGRESS_BAR_BATH, FillDirection.LEFT_TO_RIGHT)
|
||||
.setSound(GTSoundEntries.COOLING);
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user