My code:
StartupEvents.registry('block', event => {
event.create('null_block') // Create a new block
.hardness(-1) // Set hardness (affects mining time)
.resistance(1) // Set resistance (to explosions, etc)
.noCollision()
.noValidSpawns(true)
.suffocating(false)
.viewBlocking(false)
.transparent(true)
.defaultCutout()
.item(i => {
i.modelJson({
"parent": "minecraft:item/generated",
"textures": {
"layer0": "kubejs:item/null_block"
}
})
})
})
I'm actually just at a loss for which registry methods I'd need to add/remove/change to make this possible.
I understand that it's generally expected not to ask to be spoonfed code in spaces like this, but I don't consider this to be spoonfeeding considering the currently incomplete state of the wiki/docs.