################################################################################################
#
# Deflect
#
################################################################################################
scoreboard players set @s[y_rotation=0] laser_rot 1
scoreboard players set @s[y_rotation=22.5] laser_rot 2
scoreboard players set @s[y_rotation=45] laser_rot 3
scoreboard players set @s[y_rotation=67.5] laser_rot 4
scoreboard players set @s[y_rotation=90] laser_rot 5
scoreboard players set @s[y_rotation=112.5] laser_rot 6
scoreboard players set @s[y_rotation=135] laser_rot 7
scoreboard players set @s[y_rotation=157.5] laser_rot 8
scoreboard players set @s[y_rotation=180] laser_rot 9
scoreboard players set @s[y_rotation=202.5] laser_rot 10
scoreboard players set @s[y_rotation=225] laser_rot 11
scoreboard players set @s[y_rotation=247.5] laser_rot 12
scoreboard players set @s[y_rotation=270] laser_rot 13
scoreboard players set @s[y_rotation=292.5] laser_rot 14
scoreboard players set @s[y_rotation=315] laser_rot 15
scoreboard players set @s[y_rotation=337.5] laser_rot 16

execute if entity @s[scores={laser_rot=15}] run function jungle_temple:def15
execute if entity @s[scores={laser_rot=13}] run function jungle_temple:def13
execute if entity @s[scores={laser_rot=11}] run function jungle_temple:def11
execute if entity @s[scores={laser_rot=9}] run function jungle_temple:def9
execute if entity @s[scores={laser_rot=7}] run function jungle_temple:def7
execute if entity @s[scores={laser_rot=5}] run function jungle_temple:def5
execute if entity @s[scores={laser_rot=3}] run function jungle_temple:def3
execute if entity @s[scores={laser_rot=1}] run function jungle_temple:def1





execute at @s align xz run tp @s ~0.5 ~ ~0.5



#
