Skip to content

Checkblock Pattern

platz1de edited this page Mar 29, 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 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

Clone this wiki locally