-
Notifications
You must be signed in to change notification settings - Fork 29
Conditional Patterns
platz1de edited this page Jan 31, 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 | Description |
---|---|
block;<block>(patterns) | Executes Patterns if the block is the same as the specified block (like in //replace) |
above;<block>(patterns) | Executes Patterns if the block is above the specified block |
around;<block>(patterns) | Executes Patterns if the block is next to the specified block |
below;<block>(patterns) | Executes Patterns if the block is below the specified block |
not(condition(patterns)) | Executes Patterns of next Pattern is false (only works when nested) |
[[odd;[x];[y];[z](patterns)|Odd Pattern | 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;[x];[y];[z](patterns) | Executes Patterns if the block is at even coordinates (see odd for more info) |
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 selections |
sides;[thickness](patterns) | Executes Patterns if the block is one of the sides of the selections (walls + bottom and top) |