/execute @a ~ ~ ~ detect ~ ~-1 ~ sandstone 0 /effect @s 3 1 0 true
