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
on script load:
set {_i} to "diamond block" parsed as item
register new shapeless recipe for {_i} using diamond, diamond, diamond, diamond, egg, diamond, diamond, diamond, diamond
on craft of diamond block:
set {_n} to "&6Teleporter mobow"
set name of event-item to colored {_n}
tak też nie