teleport To Position
Teleport entities to another location.
mobs.teleportToPosition(
mobs.target(ALL_ENTITIES),
pos(0, 0, 0)
);
Parameters
- target: a target selector that chooses which entities are teleported
- destination: the coordinates (position) where the selected entities are teleported to
Example
Teleport all chickens somewhere above the current player.
mobs.teleportToPosition(
mobs.entitiesByType(CHICKEN),
pos(0, 10, 0)
);