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>_<separator>_<x>_<y>_<z>_<world>%

<action> – may be (for some actions see more info in the hint): (MANDATORY)

  • light:<fromBlocks | fromSky | default>

  • inventory (alias: inv)

  • inventorySize (alias: invSize)

  • inventoryOwner:<uuid | type | enum | name | coords> (alias: invOwner)

  • face

  • color:<(may be empty, FRONT by default) side>

  • skullOwner:<uuid | type | enum | name | coords>

  • skullTexture

  • spawnerType

  • spawnerDelay

  • spawnerRequiredPlayerRange (alias: spawnerReqPlRng)

  • spawnerSpawnRange (alias: spawnerSpRng)

  • spawnerMaxNearbyEntities (alias: spawnerMaxNEnt)

  • spawnerMaxSpawnDelay (alias: spawnerMaxSpDel)

  • spawnerMinSpawnDelay (alias: spawnerMinSpDel)

  • spawnerSpawnCount (alias: spawnerSpCount)

<separator> – the separator to separate the elements in different cases, it is needed when more than one element is outputting, for example in "inventoryOwner" with "coords" output type; (MANDATORY)

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


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

The "inventory" is the type of the current inventory of the block.

The "inventorySize" is the size of the current inventory of the block.

The "inventoryOwner" is the owner 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).

The "skullOwner" option outputs the chosen information about the head owner (if the player is offline, the "coords" will not be available, if the player also never joined to the server, the "name" will not be available).

The "skullTexture" option outputs the texture value of the head, it requires so that some owner will be present for this head, otherwise the texture will not be obtained (you can read more about all of this in the change_item action in "skullTexture" option there).

The "spawnerType" option outputs the entity type the spawner is set to spawn.

The "spawnerDelay" option outputs the current countdown (in ticks) until the next spawn attempt.

The "spawnerRequiredPlayerRange" option outputs the activation radius (in blocks) a player must be within for the spawner to work.

The "spawnerSpawnRange" option outputs the radius (in blocks) around the spawner where mobs can appear.

The "spawnerMaxNearbyEntities" option outputs the maximum number of nearby same-type entities allowed before spawning is blocked.

The "spawnerMaxSpawnDelay" option outputs the maximum randomized delay (in ticks) between spawn attempts.

The "spawnerMinSpawnDelay" option outputs the minimum randomized delay (in ticks) between spawn attempts.

The "spawnerSpawnCount" option outputs how many entities are spawned per spawn attempt.


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