-
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 | Description |
---|---|
block;<block>(patterns) | Executes Patterns if the block is the same as the specified block (like in //replace) |
solid(patterns) | Executes Patterns if the block is not an air-like block (ignored in config) |
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 in horizontal direction |
horizontal;<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) | 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 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 |