skapa-season-3/kubejs/startup_scripts/morepaths.js
Steve McMaster fdce87ac75
All checks were successful
continuous-integration/drone/push Build is passing
Import KubeJS and Almost Unified
2024-07-12 00:30:16 +00:00

28 lines
940 B
JavaScript

const $NoteBlockInstrument = Java.loadClass('net.minecraft.world.level.block.state.properties.NoteBlockInstrument')
function DirtPathBlock(e, id) {
return e.create(id, 'path_block')
.baseBlock('minecraft:dirt')
.mapColor('dirt')
.hardness(0.65)
.soundType('grass')
}
function NetherrackPathBlock(e, id) {
return e.create(id, 'path_block')
.baseBlock('minecraft:netherrack')
.mapColor('nether')
.instrument($NoteBlockInstrument.BASEDRUM)
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
.hardness(0.4)
.soundType('netherrack')
}
StartupEvents.registry('block', event => {
NetherrackPathBlock(event, 'morepaths:crimson_nylium_path')
NetherrackPathBlock(event, 'morepaths:warped_nylium_path')
DirtPathBlock(event, 'morepaths:mycelium_path')
DirtPathBlock(event, 'morepaths:podzol_path')
})