skapa-season-3/kubejs/startup_scripts/zombie_extreme.js
Steve McMaster aa14e989ce
All checks were successful
continuous-integration/drone/push Build is passing
Prepare for season 3 reset. Update required! You MUST re-download
setup.exe
2024-07-17 05:42:11 +00:00

44 lines
1.4 KiB
JavaScript

StartupEvents.registry('sound_event', e => {
e.create('zombie_extreme:openvendingmachine')
})
StartupEvents.registry('block', (event) => {
// Corpse
// event.create('zombie_extreme:corpse')
// .displayName("Corpse")
// .box(0.0, 0.0, 0.0, 16.0, 32.0, 16.0)
// .fullBlock(false)
// .lightLevel(0)
// .notSolid()
// .hardness(2.6)
// .resistence(15.0)
// .tagBlock('minecraft:mineable/pickaxe')
// .tagBlock('minecraft:needs_stone_tool')
// .requiresTool(true)
// .opaque(false)
// .redstoneConductor(false)
// .defaultCutout()
// .noValidSpawns()
// .soundType('metal')
// .blockEntity((entityInfo) => {
// entityInfo.inventory(9, 3)
// entityInfo.rightClickOpensInventory()
// })
// Vending Machine
event.create('zombie_extreme:vending_machine', 'cardinal')
.displayName("Vending Machine")
.box(0.0, 0.0, 0.0, 16.0, 32.0, 16.0)
.fullBlock(false)
.lightLevel(0)
.hardness(2.6)
.tagBlock('minecraft:mineable/pickaxe')
.tagBlock('minecraft:needs_stone_tool')
.requiresTool(true)
.defaultCutout()
.soundType('metal')
.blockEntity((entityInfo) => {
entityInfo.inventory(9, 6)
entityInfo.rightClickOpensInventory()
})
})