code_language.skript:
command /near:
trigger:
loop mobs in radius 5 of player:
set {target} to loop-mobs
remove player from {target}
set {Place} to {target}'s location
if {target} is set:
teleport {target} 10 above {Place}
delete {target}
delete {Place}
stop
This is my code and it does work, the only problem how ever is that it can only select 1 entity at a time which is annoying since this is meant to be a command that sends playerS away for a brief amount of time.