Placeholder for the highest block at a location

A placeholder that allows you to get the highest block at the specified location.


Meaning

Allows you to get the Y coordinate or type of the highest block at the specified location.


Format
%CEP_highestBlock_<player_name|entity_uuid|world,x,z>%

<player_name | entity_uuid | world,x,z> – the target on which location get the block (you can specify ":type" at the end of any target to obtain the block type and not Y coordinate). (MANDATORY)


Targets
  • Players;

  • Entities;

  • Blocks.


Where is useful

For example, if you need to create some kind of random teleporting on your own, then you will need to get the highest block at your random chosen location to teleport the player there.


Examples
%CEP_highestBlock_8775c97f-3a4c-4906-ba63-80b950bc80c6% # Get the Y coordinate of the highest block at the specified entity location
%CEP_highestBlock_world,242,3543:type% # Get the type of the highest block at the specified coordinates

Last updated