scoreboard players set @a rec 0
execute as @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Damage:2}}},scores={carrot=1..}] at @s positioned ^ ^1.5 ^ run function mctsts:game/items/teleport_rec
execute as @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Damage:1}}},scores={carrot=1..}] at @s positioned ^ ^1.5 ^ run function mctsts:game/items/teleport_rec
execute as @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{Damage:3}}},scores={carrot=1..}] at @s positioned ^ ^1.5 ^ run function mctsts:game/items/teleport_rec