- : The root tag.
- predicate_type: Can be
always_true
,block_match
to test for a block,blockstate_match
to test for a specific block state,random_block_match
to test for a block with a random chance,random_blockstate_match
to test for a block state with a random chance, ortag_match
to test for a block in a block tag.- If
predicate_type
isblock_match
, additional fields are as follows:
- If
- block: A block ID.
- If
predicate_type
isblockstate_match
, additional fields are as follows:
- If
- block_state: A block state.
- Block state
- If
predicate_type
israndom_block_match
, additional fields are as follows:
- block: A block ID.
- probability: The probability of the predicate to pass if the block is found. Values below 0.0 is treated as 0.0; values above 1.0 is treated as 1.0.
- If
predicate_type
israndom_blockstate_match
, additional fields are as follows:
- If
- block_state: A block state.
- Block state
- probability: The probability of the predicate to pass if the block state is found. Values below 0.0 is treated as 0.0; values above 1.0 is treated as 1.0.
- If
predicate_type
istag_match
, additional fields are as follows:
- If
- tag: A block tag without
#
.
- predicate_type: Can be
Advertisement
Custom world generation/rule test
Advertisement