Using Groups (Models)

Teleport a group

boolean respectGroupDirection = true; //If false, the group will update it's direction to the location's
activeGroup.teleport(Location, false);

Translate a group

//Translate a SpawnedDisplayEntityGroup in any direction
int translationDuration = 2; //in ticks
int delayBeforeTranslation = 5 //in ticks
activeGroup.translate(Direction, distance, translationDuration, delayBeforeTranslation);

//Translate a SpawnedDisplayEntityGroup with a Vector
activeGroup.translate(Vector, distance, translationDuration, delayBeforeTranslation);

Last updated