Custom Blocks
// This is a startup script
// Listen to block registry event
events.listen('block.registry', function (event) {
// The texture for this block will be placed in kubejs/assets/kubejs/textures/block/test_block.png
// If you want a custom block model, you can create one in Blockbench and put it in kubejs/assets/kubejs/models/block/test_block.json
event.create('test_block').material(block.material.glass).hardness(0.5).displayName('Test Block')
})
// Listen to recipe event
events.listen('recipes', function (event) {
// Add shapeless recipe for test_block
event.shapeless('test_block', [ 'minecraft:stone', 'minecraft:dirt' ])
})