I need help with the n.%player% part because this worked when I first tried it, but I tested it again and it didn't remove the item from the player's inventory.
on right-click with compass:
if name of tool of player is "Teleport":
if {compasscooldown::%player%} is set:
stop
set {compasscooldown::%player%} to true
add 1 to {n.%player%}
execute console command "msg SrirachaMC &e3"
wait 1 seconds
execute console command "msg SrirachaMC &c2"
wait 1 seconds
execute console command "msg SrirachaMC &41"
wait 1 seconds
make player execute command "tp SrirachaMC"
if {n.%player%} = 3:
remove compass named "Teleport" from player's inventory
delete {n.%player%}
wait 3 seconds
clear {compasscooldown::%player%}
on right-click with clock:
if name of tool of player is "Glow":
if {compasscooldown::%player%} is set:
stop
set {compasscooldown::%player%} to true
add 1 to {n.%player%}
execute console command "effect give SrirachaMC glowing 99999 5 true"
execute console command "msg SrirachaMC &6You are now glowing"
wait 30 seconds
execute console command "effect clear SrirachaMC"
if {n.%player%} = 5:
remove clock named "Glow" from player's inventory
delete {n.%player%}
wait 3 seconds
clear {compasscooldown::%player%}
on join:
give player compass named "Teleport"
give player clock named "Glow"
on respawn:
give player clock named "Glow"
give player compass named "Teleport"
on right-click with compass:
if name of tool of player is "Teleport":
if {compasscooldown::%player%} is set:
stop
set {compasscooldown::%player%} to true
add 1 to {n.%player%}
execute console command "msg SrirachaMC &e3"
wait 1 seconds
execute console command "msg SrirachaMC &c2"
wait 1 seconds
execute console command "msg SrirachaMC &41"
wait 1 seconds
make player execute command "tp SrirachaMC"
if {n.%player%} = 3:
remove compass named "Teleport" from player's inventory
delete {n.%player%}
wait 3 seconds
clear {compasscooldown::%player%}
on right-click with clock:
if name of tool of player is "Glow":
if {compasscooldown::%player%} is set:
stop
set {compasscooldown::%player%} to true
add 1 to {n.%player%}
execute console command "effect give SrirachaMC glowing 99999 5 true"
execute console command "msg SrirachaMC &6You are now glowing"
wait 30 seconds
execute console command "effect clear SrirachaMC"
if {n.%player%} = 5:
remove clock named "Glow" from player's inventory
delete {n.%player%}
wait 3 seconds
clear {compasscooldown::%player%}
on join:
give player compass named "Teleport"
give player clock named "Glow"
on respawn:
give player clock named "Glow"
give player compass named "Teleport"