Minecraft Wiki
Advertisement
  • : 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, or tag_match to test for a block in a block tag.
      If predicate_type is block_match, additional fields are as follows:
    •  block: A block ID.
      If predicate_type is blockstate_match, additional fields are as follows:
    •  block_state: A block state.
      • Block state
      If predicate_type is random_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 is random_blockstate_match, additional fields are as follows:
    •  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 is tag_match, additional fields are as follows:
    •  tag: A block tag without #.
Advertisement