scoreboard players add @s rec 1


execute if score @s rec matches ..100 run particle minecraft:portal ~ ~ ~ 0.1 0.1 0.1 0 3
execute if score @s rec matches ..100 run particle minecraft:witch ~ ~ ~ 0.1 0.1 0.1 0 1

tag @a remove temp
execute if score @s rec matches ..100 unless block ^ ^ ^0.25 #transparent run function mctsts:game/items/teleport_tp
execute if score @s rec matches 101.. if block ^ ^ ^0.25 #transparent unless entity @s[x_rotation=-90..-55] run function mctsts:game/items/_not_useable
execute if score @s rec matches 101.. if block ^ ^ ^0.25 #transparent if entity @s[x_rotation=-90..-55] run function mctsts:game/items/teleport_tp
execute if score @s rec matches ..100 if block ^ ^ ^0.25 #transparent positioned ^ ^ ^0.25 run function mctsts:game/items/teleport_rec
