
# -> Sound
playsound block.pumpkin.carve block @a ~ ~ ~ 0.8 1

# -> Drop item
loot spawn ~ ~ ~ loot overly_realistic:blocks/bee_homes/pumpkin_shearing

# -> Replace block
execute if entity @s[y_rotation=-45..45] run \
    return run \
        setblock ~ ~ ~ carved_pumpkin[facing=north]
execute if entity @s[y_rotation=-134..-44] run \
    return run \
        setblock ~ ~ ~ carved_pumpkin[facing=west]
execute if entity @s[y_rotation=-46..134] run \
    return run \
        setblock ~ ~ ~ carved_pumpkin[facing=east]
setblock ~ ~ ~ carved_pumpkin[facing=south]
