Skip to content

Checkblock Pattern

platz1de edited this page May 17, 2022 · 7 revisions

Checks if the block at the current position is of the given type

Examples:
block;red_wool(...) - Checks if the block is red wool
block;wool(...) - Checks if the block is any type of wool (allows all colors)

Some blocks like stone or wool always are intepreted as a group (they don't have a clear differentiation), if you only want stone and not stone-like blocks (granite and diorite) to be affected add a "#" infront of the block

Example:
block;stone(...) - Allows all types of stone
block;#stone(...) - Only allows stone itself

If "solid" is used as block, only non-nature blocks are affected
(WARNING: Contrary to the name, this does not mean the block is solid).
These blocks can be configured in the config (normally everything except leaves, fluids & plants)