forked from Greymerk/minecraft-roguelike
-
Notifications
You must be signed in to change notification settings - Fork 1
BlockFactory
Brian Rivas edited this page Mar 6, 2017
·
2 revisions
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.
MetaBlocks are just block names 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
Random blocks, with weighted distribution. Higher weight values means more common.
- Object
- "type" : String ("WEIGHTED")
- "data" : Array
- Object - BlockFactory
- "weight" - int (in sub-object)
- Object - BlockFactory
Random blocks, with even distribution.
- Object
- "type" : String ("JUMBLE")
- "data" : Array
- Object - BlockFactory
Diagonal stripes in a 3D plain.
- Object
- "type" : String ("STRIPES")
- "data" : Array
- Object - BlockFactory
Horizontal stripes.
- Object
- "type" : String ("LAYERS")
- "data" : Array
- Object - BlockFactory
Veritcal columns of blocks based on x/z position. Will appear as checkers from the top down.
- Object
- "type" : String ("COLUMNS")
- "data" : Array
- Object - BlockFactory