ive being trying to set up a parkour map.
The kill height is 45 and that works. But if you get on a slab and you still die.
im using the command /execute @e[type=Player] ~ ~ ~ kill @p[y=HEIGHT,dy=2]
The problem is i cant use 0,5 heights.... i tried 44.5 and 44,5 but it doesnt work.
How do i change the height after ,
Try something like
execute @a ~ ~ ~ detect ~ ~-0.1 ~ minecraft:stone_slab -1 scoreboard players tag @p add OnSlab
scoreboard players tag @a[tag=OnSlab] remove OnSlab
It will kill all players at a height of HEIGHT except those that are on the slabs (except wooden)