execute if entity @s[tag=up] run function traps:puffball/summon/facing/up
execute if entity @s[tag=down] run function traps:puffball/summon/facing/down
execute if entity @s[tag=north] run function traps:puffball/summon/facing/north
execute if entity @s[tag=south] run function traps:puffball/summon/facing/south
execute if entity @s[tag=east] run function traps:puffball/summon/facing/east
execute if entity @s[tag=west] run function traps:puffball/summon/facing/west

execute if entity @s[tag=!up,tag=!down,tag=!north,tag=!south,tag=!east,tag=!west] run function traps:puffball/summon/facing/up
