#Disable entity collision but still support blocks like signs, torches, etc.

2 messages · Page 1 of 1 (latest)

keen cradle
#

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.

last gorgeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!