2024-12-10 17:57:33|Myriagame |source:minecraft skins
Gtceu Modern comes with the function of creating a custom machine and multi -square structure with Kubejs, but the relevant WIKI related content is difficult to say, so I hope to help you from the author of the magic.
Custom formula type:
gtceustartupevents.regotion ('gtceu: recipe_type', event => {{{{// Create a new formula
Event.create ('Example_recipe')
// The classification of formula type, the temporary effect is unknown
.Category ('Example')
// Set the input and output of the formula, setmaxiosize
.Setmaxiosize (3, 3, 3, 3)
// Set the input/output mode of the power, in/out
.Seteuio ('in')
// Set the progress bar style, setprogressbar (icon, fill mode)
.Setprogressbar (Guitextures.progress_bar_arrow, FILDIRECTION.Left_TO_RIGHT)
// Set the icon of the item bar. The current measurement has no effect
// Setslotoverlay (Whether it is output, whether it is fluid, icon)
.Setslotoverlay (true, false, guitextures.crushed_ore_overly)
// Set the sound of the machine when working
.SetSound (gtsoundentries.cooling)
})
Customized steam machine:
gtceustartupevents.regization ('gtceu: machine', event => {{Let ishp = false
Event.create ('Example_steam_machine', 'Steam', TRUE) // Machine name, machine type, whether there are high -voltage versions
// Set the recipe type for the machine, the machine will automatically generate UI according to the formula type
.Recipedype ('Example_recipe')
// Set the rotation of the machine, generally NON_Y_AXIS
.RotationState (rotationState.non_y_axis) // Use WorkableSteamHullRenderer to set materials for the machine
// "Block/Machines/Sifter" is Overlay you need to use
// Due to some unknown reasons, if you want to set different materials for low -voltage and high pressure, you need to write this way
// The material is a steam machine map with bricks, and no relevant method is found to modify the sticker in the source code
// The solution comes from the discussion content of the official Discord
.AllTiers ((tier, builder) => {
// WorksteamhullRender (whether it is high -pressure, resourcelocation of the map)
// Please disassemble the package for the required stickers. You can also use a custom machine texture, which will be mentioned later
Builder.WorkableAMHULLLLLERER (ISHP, GTCEU.ID ("Block/Machines/Sifter"))
ISHP = TRUE
})
})
Custom power machine:
gtceustartupevents.regization ('gtceu: machine', event => {{Event.create ('test_electric', 'simple', gtvalues.lv, gtvalues.mv, gtvalues.hv)
.RotationState (rotationState.non_y_axis)
.Recipedype ('Test_recipe_type')
.TankScalingFunction (Tier => Tier*3200)
})
Custom kinetic machine (mechanical power linkage):
gtceustartupevents.regization ('gtceu: machine', event => {{Event.create ('test_kinetic', 'kinetic', gtvalues.lv, gtvalues.mv, gtvalues.hv) .rotationState (rotationState.non_Y_AXIS)
.RecipeType ('Test_kinetic_recipe_type')
.TankScalingFunction (Tier => Tier*3200)
})
Custom multi -square block:
gtceustartupevents.regization ('gtceu: machine', event => {{Event.create ('test_genrator', 'multiblock')
.RotationState (rotationState.non_y_axis)
.PpearanceBlock (gtblocks.casing_steel_solid)
.RecipeTypes (['test_recipe_type_1', 'test_recipe_type_2'])
.Pattern (definition => FactoryBlockpattern.start ()
.Aisle ('ccc', 'ggg', 'ccc')
.Aisle ('ccc', 'gdg', 'csc')
.Aisle ('ckc', 'ggg', 'cmc')
.Where ('k', predicates.controller (predicates.blocks (definition.get ())))
.Where ('m', predicates.abilities (partability.maintenance)) .Where ('s', predicates.abilities (partability.mufferr)))))))
.Where ('d', predicates.blocks (gtblocks.conickel.get ())))
.Where ('G', Predicates.blocks ('Minecraft: Glass'))
.Where ('c', predicates.blocks (gtblocks.casing_steel_solid.get ()))
.Or (predicates.autoabilities (definition.getRcipeTypes ()))))
.Build ())
.Shapeinfo (Controller => Multiblockshapeinfo.Builder ()
.Aisle ('Ece', 'GGG', 'CCC')
.Aisle ('ccc', 'gdg', 'csc')
.Aisle ('Iko', 'ggg', 'cmc')
.Where ('K', Controller, Direction.south)
.Where ('c', gblocks.casing_steel_solid.get ()))
.Where ('G', Block.getBlock ('Minecraft: Glass')) .where ('d', gtblocks.conickel.get ())
.Where ('s', gmachines.muffler_hatch [1], direction.up)
.Where ('m', gtmachines.maintenance_hatch [1], Direction.south)
.Where ('e', gtmachines.energy_input_hatch [1], Direction.north)
.Where ('I', gtmachines.item_import_bus [1], Direction.south)
.Where ('0', gtmachines.item_export_bus [1], Direction.south)
.Build ())
.WorkableCasingRenderer (
"Gtceu: Block/Casings/SOLID/MACHINE_CASING_ANERT_PTFE",
"Gtceu: Block/Multiblock/Large_chemical_reactor",, ",
False
Cure
})
Before you continue ...
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22