#falling block breaking when placed on its self

1 messages · Page 1 of 1 (latest)

civic thicket
#

I made a custom falling block and it breaks when I place it on its self

StartupEvents.registry('block', event => {

    event.create('pulp_3', 'falling').displayName('Pulp 3').material('snow').hardness(1.0).textureAll('cot:block/pulp_3')

})```
did I do something wrong?
hearty hollowBOT
#

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

atomic mulch
#

its the snow material

#

when you place blocks on 1 layer snow the snow dissapears

#

this is doing that but with your block

#

if you want it to have the snow sound do this

#
const MaterialJS = java("dev.latvian.mods.kubejs.block.MaterialJS")
const Material = java('net.minecraft.world.level.material.Material')
const SoundType = java('net.minecraft.world.level.block.SoundType')
let fakeSnow = new MaterialJS('snow', Material.STONE, SoundType.SNOW)
StartupEvents.registry('block', event => {

    event.create('pulp_3', 'falling').displayName('Pulp 3').material(fakeSnow).hardness(1.0).textureAll('cot:block/pulp_3')

})```
#

prolly will work

civic thicket
#

I don't need the snow sounds

#

thanks for the help