Wiki 9Minecraft Wiki 9Minecraft

Blockfactory

Java EditionModGuides 4FAQ 9Gallery 5Related mods 60
DownloadRoguelike Dungeons

Get the files on 9Minecraft

Contents (12)
  1. METABLOCK
  2. Structure
  3. WEIGHTED
  4. Structure
  5. JUMBLE
  6. Structure
  7. STRIPES
  8. Structure
  9. LAYERS
  10. Structure
  11. COLUMNS
  12. Structure

A BlockFactory is an object similar to a brush in a paint program. It's used in structure generation to supply blocks to shapes. All BlockFactory types are defined recursively, in that they may contain one or more BlockFactories.

METABLOCK

MetaBlocks are just block names with metadata. All other BlockFactory objects are some kind of collection of MetaBlocks.

Structure

  • Object
    • "type" : String ("METABLOCK")
    • "data" : Object
      • "name" : String - block name (required)
      • "meta" : int - optional

MetaBlocks also have a shorthand format

  • Object
    • "name" : String - block name (required)
    • "meta" : int - optional

WEIGHTED

Random blocks, with weighted distribution. Higher weight values means more common.

Structure

  • Object
    • "type" : String ("WEIGHTED")
    • "data" : Array
      • Object - BlockFactory
        • "weight" - int (in sub-object)

JUMBLE

Random blocks, with even distribution.

Structure

  • Object
    • "type" : String ("JUMBLE")
    • "data" : Array
      • Object - BlockFactory

STRIPES

Diagonal stripes in a 3D plain.

Structure

  • Object
    • "type" : String ("STRIPES")
    • "data" : Array
      • Object - BlockFactory

LAYERS

Horizontal stripes.

Structure

  • Object
    • "type" : String ("LAYERS")
    • "data" : Array
      • Object - BlockFactory

COLUMNS

Veritcal columns of blocks based on x/z position. Will appear as checkers from the top down.

Structure

  • Object
    • "type" : String ("COLUMNS")
    • "data" : Array
      • Object - BlockFactory