Custom world generation/data types

From Minecraft Wiki
Jump to: navigation, search
  •  Blockstate Provider:[needs testing] This structure is used to define more advanced settings for generating a block state.
    •  type: The type of provider to use. Must be one of "simple_state_provider", "weighted_state_provider", "plain_flower_provider", "forest_flower_provider", or "rotated_block_provider".
    • If type is simple_state_provider or rotated_block_provider:
      •  state: A blockstate
        •  Name: The namespaced id of the block to use.
        •  Properties: Block states
          •  state: A block state key and its value.
    • If type is weighted_state_provider:
      •  entries: A list of blockstates to choose from.
        • A blockstate and its corresponding weight.
          •  weight: The weight of this blockstate to be randomly chosen; a higher weight increases the chance.
          •  data: A blockstate
            •  Name: The namespaced id of the block to use.
            •  Properties: Block states
              •  state: A block state key and its value.
  •  Uniform Int:[needs testing] This structure represents a randomly generated integer between base and base + spread, inclusive, where each number in the range has equal probability. spread must always be greater than or equal to 0. Additionally, different configuration settings often place extra restrictions on the range of these values; these restrictions are expressed as minBase, maxBase, and maxSpread. All of these restrictions are inclusive ranges. If these restrictions are not stated, then any value of base and any non-negative value of spread is allowed. Alternatively, the compound tag can be substituted for an int tag, in which case the provided value is used as base and spread is set to 0, effectively making this the same as a constant integer. In this case, minBase and maxBase still apply to this value if they are provided.
    •  base: The lowest number which can be generated.
    •  spread: The size of the inclusive range to generate numbers within.