A quick command to detect if a player is not under a ledge, or exposed to sunlight.
💡 Code: /execute as @a at @s positioned over motion_blocking if entity @s[dy=999] run effect give @s wither 1 1 true
🔵 Discord & Other Links: https://linktr.ee/CloudWolfMC
💻 Website: https://cloudwolfyt.github.io