Placeholder for checking the distance between two points

A placeholder that allows you to check the distance between two points.


Meaning

Allows you to check the distance between two points, for example, between some player and some entity, or some player and some block, etc.


Format
%CEP_distance_<player_name|entity_uuid|world,x,y,z>_<player_name|entity_uuid|world,x,y,z>%

<player_name | entity_uuid | world,x,y,z> – the points between which check the distance (use "ᵕ" symbol instead of underscores everywhere). (MANDATORY)



Targets
  • Players;

  • Entities;

  • Locations.


Where is useful

For example, to fastly and easily check the distance between some player and some entity/block and decide whether the player is nearby to it or not (such variable also exists in ConditionalEvents, but only there and only for players, while this is global PlaceholderAPI placeholder and for all types: players, entities and blocks).


Examples
%CEP_distance_{player}_world,234,64,6344% # Get the distance between current player and specified location

Last updated