options:
item: glowing grass named "&6Teleporter mobow"
block: diamond block
command /xd:
trigger:
add {@item} to player
on place:
if player's tool is {@item}:
set {_l} to location of event-block
set block at {_l} to {@block}
while type of block at {_l} is {@block}:
loop all entities in radius 15 around event-block:
if type of loop-entity is not player:
teleport loop-entity to block under {_l}
wait 2 second