Fellies/kubejs/startup_scripts/script.js

13 lines
404 B
JavaScript
Raw Permalink Normal View History

2021-01-17 12:40:59 +00:00
// priority: 0
console.info('Hello, World! (You will only see this line once in console, during startup)')
onEvent('item.registry', event => {
// Register new items here
// event.create('example_item').displayName('Example Item')
})
onEvent('block.registry', event => {
// Register new blocks here
// event.create('example_block').material('wood').hardness(1.0).displayName('Example Block')
})