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() }) })