entities By Type

Selects all mobs (animals or monsters) of the type you want to target.

mobs.entitiesByType(CHICKEN);

Parameters

  • type: the type of mob to select

Example

Teleport all chickens high in the sky.

mobs.teleportToPosition(
    mobs.entitiesByType(CHICKEN),
    pos(0, 30, 0)
);

See also

||mobs:target||