-
Notifications
You must be signed in to change notification settings - Fork 29
Conditional Patterns
platz1de edited this page May 17, 2022
·
20 revisions
These Patterns allow control over when to set certain blocks
<argument> - required Argument
[argument] - optional Argument
patterns - children patterns, can be separated by a comma
Pattern | Usage | Description |
---|---|---|
Checkblock Pattern | block;<block>(patterns) | Executes Patterns if the block is the same as the specified block (like in //replace) |
Solid Pattern | solid(patterns) | Executes Patterns if the block is not an air-like block (ignored in config) |
Above Pattern | above;<block>(patterns) | Executes Patterns if the block is above the specified block |
Around Pattern | around;<block>(patterns) | Executes Patterns if the block is next to the specified block in horizontal direction |
Horizontal Pattern | horizontal;<block>(patterns) | Executes Patterns if the block is next to the specified block |
Below Pattern | below;<block>(patterns) | Executes Patterns if the block is below the specified block |
Not Pattern | not(condition(patterns)) | Executes Patterns of next Pattern is false (only works when nested) |
Odd Pattern | odd;[x];[y];[z](patterns) | Executes Patterns if the block is at odd coordinates at x, y and z Axis, the x, y and z can be left out (only given ones will be checked) |
Even Pattern | even;[x];[y];[z](patterns) | Executes Patterns if the block is at even coordinates (see odd for more info) |
Checkblock Pattern | divisible;<number>;[x];[y];[z](patterns) | Executes Patterns if the block is at coordinates which are divisible by the given number (see odd for more info) |
walls;[thickness](patterns) | Executes Patterns if the block is one of the walls of the selection | |
sides;[thickness](patterns) | Executes Patterns if the block is one of the sides of the selection (walls + bottom and top) | |
center(patterns) | Executes Patterns if the block is in the center of the selection | |
embed;<block>(patterns) | Executes Patterns if the block is around a higher specified block |