Minecraft Wiki
Advertisement
    •  type: The type of the block predicate. One of true (always true), all_of (all the specified block predicates need to matche), any_of (must matches at least one of the specified block predicates), has_sturdy_face (checks whether the block at a location has a full block supporting surface in a direction), inside_world_bounds (whether the Y level is in the world), matching_block_tag, matching_blocks, matching_fluids, not (invert the predicate), replaceable (material is replacable), solid (material is solid), or would_survive.
      If type is all_of or any_of, additional fields are as follows:
    •  predicates: (Can be empty) The child predicates. If used with all_of, all the childs need to match. If used with any_of, at least one of the childs needs to match.
      • : A block predicate.
        • Block predicate
      If type is inside_world_bounds, solid, replaceable, additional fields are as follows:
    •  offset: (optional, defaults to [0,0,0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.
      • : Value between -16 and 16 (inclusive).
      If type is has_sturdy_face, additional fields are as follows:
    •  offset: (optional, defaults to [0,0,0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.
      • : Value between -16 and 16 (inclusive).
    •  direction: The direction of the block to check if it is sturdy. With sturdy is meant that the block's block supporting box is full in the direction.
      If type is matching_block_tag
    •  offset: (optional, defaults to [0,0,0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.
      • : Value between -16 and 16 (inclusive).
    •  tag: The block tag without # to check.
      If type is matching_blocks, additional fields are as follows:
    •  offset: (optional, defaults to [0,0,0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.
      • : Value between -16 and 16 (inclusive).
    •  blocks: The blocks that will match. Cn be a block ID or a block tag, or a list of block IDs.
      If type is matching_fluids, additional fields are as follows:
    •  offset: (optional, defaults to [0,0,0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.
      • : Value between -16 and 16 (inclusive).
    •  fluids: The fluids that will match. Cn be a fluid ID or a fluid tag, or a list of fluid IDs.
      If type is not, additional fields are as follows:
    •  predicate: The block predicate to invert.
      • Block predicate
      If type is would_survive, additional fields are as follows:
    •  offset: (optional, defaults to [0,0,0]) A list of 3 integers specifying an [X, Y, Z] block position offset to check.
      • : Value between -16 and 16 (inclusive).
    •  state: Checks whether this block state can survive in the specified position.
      • Block state
Advertisement