Block Conditions
23 pages in this section.
- Adjacent Checks whether a specified amount of blocks adjacent to the block in question fulfills a specified Block Condition Type.
- Attachable Checks whether the block is in a place where a supported block can be attached (i.e.
- Blast Resistance Checks the blast resistance value of the block.
- Block Checks whether the block is a certain block (by ID).
- Block Entity Checks if the block has a block entity.
- Block State Checks a block state property of the block.
- Command Compares the result of the specified command to the specified value at the position of the block.
- Distance From Coordinates Compares the distance of the block's current position to the specified coordinates.
- Exposed To Sky Checks whether the block is exposed to the sky.
- Fluid Checks the fluid state of the current position with a Fluid Condition Type.
- Hardness Checks the hardness value of the block.
- Height Compares the Y position of the block to a value.
- In Tag Checks whether the block is in a specified tag.
- Light Blocking Checks whether the block is marked in code as blocking light.
- Light Level Allows checking the light level at the block's position.
- Movement Blocking Checks whether the block is marked in code as blocking movement and doesn't have an empty collision shape.
- NBT Checks the NBT of the block entity.
- Offset Checks the provided Block Condition Type at a position offset from the current position.
- Replacable Checks whether the block is a replaceable material (e.g.
- Script Passes when a script returns true for the block position.
- Slipperiness Checks the slipperiness value of the block.
- Tick Rate Checks the tick rate of the chunk the block is in, or of its dimension, and whether time is frozen there.
- Water Loggable Checks whether the block is waterloggable, meaning fluid can occupy the same block space (stairs, for example).