Skip to content
Brian Rivas edited this page Mar 6, 2017 · 7 revisions

A BlockSet is a container for a collection of blocks used in building. Includes: Wall, Floor, Stair, Pillar, Door, LightBlock, and Liquid.

Structure

All fields are optional

  • Object
    • "walls" : BlockFactory
    • "pillar" : BlockFactory
    • "stair" : MetaBlock (Stair block that supports standard minecraft stair BlockStates)
    • "floor" : BlockFactory
    • "door" : Door
    • "lightblock" : BlockFactory
    • "liquid" : BlockFactory

BlockFactory

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. The MetaBlock is the base BlockFactory type, and the only one which may not contain another BlockFactory.

METABLOCK

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

  • 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.

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

JUMBLE

Random blocks, with even distribution.

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

STRIPES

Diagonal stripes in a 3D plain.

  • 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
Clone this wiki locally