I wrote a script in 1.20.1 but I need to downgrade it.
I already fixed some things but the block is now acting as wood and doesn't give an effect anymore when standing on it.
onEvent('block.registry', event => {
event.create("adventurous_block")
.displayName('Block of Adventurous')
.material('netherite_block')
.soundType("netherite_block")
.hardness(75)
.tagBlock('forge:needs_netherite_tool')
.tagBlock('minecraft:mineable/pickaxe')
.requiresTool(true)
.resistance(1500)
.steppedOn(ctx =>{
ctx.entity.potionEffects.add('glowing', 1200, 0, true, true)
})
.item(ctx => {
ctx.rarity("EPIC")
ctx.tooltip(Text.gold("The rarest block to exist, made from the rarest ingot to exist."))
})
.lightLevel(15)
})