- 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), orwould_survive
.- If
type
isall_of
orany_of
, additional fields are as follows:
- If
- predicates: (Can be empty) The child predicates. If used with
all_of
, all the childs need to match. If used withany_of
, at least one of the childs needs to match.- : A block predicate.
- Block predicate
- If
type
isinside_world_bounds
,solid
,replaceable
, additional fields are as follows:
- : A block predicate.
- 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
ishas_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
ismatching_block_tag
- If
- 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
ismatching_blocks
, additional fields are as follows:
- If
- 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
ismatching_fluids
, additional fields are as follows:
- If
- 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
isnot
, additional fields are as follows:
- If
- predicate: The block predicate to invert.
- Block predicate
- If
type
iswould_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
- type: The type of the block predicate. One of
Advertisement
English
Custom world generation/block predicate
Advertisement