Placeholder for different block information

A placeholder that allows you to get different blocks information.


Meaning

Allows you to get different blocks information, like lighting level, inventory type, size etc.


Format
%CEP_block_<action>_<x>_<y>_<z>_<world>%

<action> – may be light:<fromBlocks | fromSky | default>, inventory, inventorySize, face, color:<(may be empty, FRONT by default) side>; (MANDATORY)

<x>_<y>_<z>_<world> – the location of the block. (MANDATORY)


The "light" <action> is for the block light level from blocks, sky or default.

The "inventory" and "inventorySize" is the type or size of the current inventory of the block.

The "face" will return the block facing, like NORTH or WEST and so on (only for Directional or Rotatable blocks like doors, torches etc).

The "color" outputs the blocks color, for example for signs (you can specify the sign side in the <sign> option, see possible values here).


Targets
  • Different blocks (depends on the chosen action);


Where is useful

Can be useful to get different information about blocks while implementing different systems.


Examples
%CEP_block_light:fromBlocks_633_43_234_world% # Get the block lighting level from another blocks at the specified location
%CEP_block_inventorySize_1210_75_8534_world1% # Get the block inventory size at the specified location if applicable

Last updated