#How to use BlockBehaviour Java Class in KubeJS?
5 messages · Page 1 of 1 (latest)
StartupEvents.registry('block', event => {
event.create('black_wooden_planks')
.displayName('Black Wooden Planks')
.soundType('wood')
.hardness(2)
.resistance(3)
.tagBlock('minecraft:planks')
.tagBlock('minecraft:mineable/axe')
})
BlockEvents.modification(event => {
Blocks.FIRE.setFlammable("kubejs:black_wooden_planks", 5, 20)
})
As you can see, i have implemented the "setFlammable" to my custom wooden planks, but how would i add the ignitedByLava BlockBehaviour?
bump
Ticket closed!