Skip to content

Instantly share code, notes, and snippets.

@SirEdvin
Created February 20, 2026 22:05
Show Gist options
  • Select an option

  • Save SirEdvin/08a20043abd144fbcb43f4d2f3e4a939 to your computer and use it in GitHub Desktop.

Select an option

Save SirEdvin/08a20043abd144fbcb43f4d2f3e4a939 to your computer and use it in GitHub Desktop.
Pedestal kubejs
ItemEvents.tooltip(event => {
for (let info of global.CustomPedestals) {
event.add("kubejs:" + info.tier + "_pedestal", Text.gray("Can hold up to " + info.slots + " stacks of same item"))
}
})
ServerEvents.recipes(event => {
for (let info of global.CustomPedestals) {
event.recipes.gtceu.cutter('kubejs:cutter/' + info.tier + "_pedestal")
.itemInputs("gtceu:" + info.tier + "_machine_hull")
.itemOutputs("4x kubejs:" + info.tier + "_pedestal")
.duration(200)
.EUt(7)
}
})
global.CustomPedestals = [
{tier: "lv", slots: 4, suffix: "I"},
{tier: "mv", slots: 8, suffix: "II"},
{tier: "hv", slots: 16, suffix: "III"},
{tier: "ev", slots: 32, suffix: "IV"},
{tier: "iv", slots: 64, suffix: "V"},
{tier: "luv", slots: 128, suffix: "VI"},
{tier: "zpm", slots: 256, suffix: "VI"},
{tier: "uv", slots: 512, suffix: "VI"},
{tier: "uhv", slots: 1024, suffix: "IX"},
]
StartupEvents.registry('block', event => {
for (let info of global.CustomPedestals) {
event.create(info.tier + '_pedestal', "item_pedestal")
.displayName("Item pedestal " + info.suffix)
.stacksInside(info.slots)
.texture("particle", "gtceu:block/casings/voltage/" + info.tier + "/side")
.texture("texture", "gtceu:block/casings/voltage/" + info.tier + "/side")
.texture("top", "gtceu:block/casings/voltage/" + info.tier + "/top")
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment