Passes when every predicate passes.
AllOf(predicates) predicateslist of BlockPredicate
Helpers that build a minecraft:block_predicate object, one for each of its types. Where a field takes one, write the helper's call; its
name is the type it makes. Click a type to see what it accepts.
Passes when the block has a full face on one side.
HasSturdyFace(direction, offset?) directionDirection The side to check.
offsetoptionallist of int -16..16 (exactly 3) The block offset to check.
HeightRange(min_inclusive, max_inclusive) min_inclusiveVerticalAnchor max_inclusiveVerticalAnchor Passes when the block is inside the world's height limits.
InsideWorldBounds(offset?) offsetoptionallist of int -16..16 (exactly 3) The block offset to check.
Passes when the block's biome is one of these.
MatchingBiomes(biomes) biomesbiome id | #biome tag | list of biome ids Passes when the block is in a block tag.
MatchingBlockTag(tag, offset?) tagblock id | #block tag offsetoptionallist of int -16..16 (exactly 3) The block offset to check.
Passes when the block is one of these.
MatchingBlocks(blocks, offset?) blocksblock id | #block tag | list of block ids The blocks that pass.
offsetoptionallist of int -16..16 (exactly 3) The block offset to check.
Passes when the fluid at the block is one of these.
MatchingFluids(fluids, offset?) fluidsfluid id | #fluid tag | list of fluid ids offsetoptionallist of int -16..16 (exactly 3) The block offset to check.
Passes when no entity is in the way of the block.
Unobstructed(offset?) offsetoptionallist of int (exactly 3) VolumeMatch(min, max, match) minlist of int -16..16 (exactly 3) maxlist of int -16..16 (exactly 3) matchBlockPredicate Passes when a block would stay put here, as a sapling needs dirt below.
WouldSurvive(state, offset?) stateBlockState The block to test.
offsetoptionallist of int -16..16 (exactly 3) The block offset to check.