# --------- Sound ----------------
execute if predicate entity/hurt run playsound custom.mandragora.hurt hostile @a ~ ~ ~

# --------- Next Attack ----------------
function enemies:mandragora/scream
execute unless entity @a[distance=..6] unless block ~ ~-.1 ~ #mrcd:player_can_pass unless block ~ ~-.1 ~ #mrcd:air_like run function enemies:mandragora/plant
