`command /netherexit:
permission: op
trigger:
set {netherexit} to location of player
send "{@p} &7Set netherexit to %{netherexit}%"
on entering a portal:
if player is in world "spawn":
if player's inventory contains a magma cream named "&c&lNether Key":
make player execute command "/mvtp boxnether"
else:
push player backwards with speed 0.1
send "{@p} &7You need a Nether Key to enter the Nether."
stop
else:
if player is in world "boxnether":
teleport player to {netherexit}
`
i get no error but when i go through a nether portal without the key it sends like 20 messages when i only want it to send 1