Skip to content
Brian Rivas edited this page Aug 6, 2014 · 14 revisions

Structures

All fields are optional

  • "numRooms" - int - number of rooms on this level
  • "range" - int - distance the level will spread
  • "rooms":
    • Array
      • Object
        • "mode" : String method for choosing "single" or "random"
        • "type" : String A Dungeon (room) type
        • "weight" : int -Only required if mode is "random"-
  • "secrets" : Array of
    • Array
      • Object
        • "type" String - Dungeon
        • "num": int - max number of occurrences
  • "theme" : Object containing two BlockSets
    • Object
      • "primary" : BlockSet used for background walls
      • "secondary" : BlockSet used for foreground walls
  • "segments":
    • Object
      • "segments":
        • Array
          • Object
            • "type": String - Segment
            • "weight": int - weight for randomization
      • "arch" : A segment type used for regular arch ways
  • "loot": Object
    • (Coming soon)

SubStructures

  • BlockSet: "primary" and "secondary" theme elements

    • Object
      • "walls" : an IBlockFactory structure
      • "pillar" : an IBlockFactory structure
      • "stair" : must be a METABLOCK type
  • IBlockFactory: Provides a block in some abstract way. (Recursive form)

    • "type" : IBlockFactory type
    • "data" : Element containing information about the IBlockFactory
  • METABLOCK: - Object - provides a single block,

    • "id" : int
    • "meta" : int - optional
    • "flag" : int - optional
  • WEIGHTED : Array of Weighted Random

    • Object
      • "type" : String - IBlockFactory type name
      • "data" : Object - IBlockFactory data
      • "weight" - int
  • CHECKERS : Array of exactly two of the following:

    • Object
      • "type" : String IBlockFactory type
      • "data" : Object - IBlockFactory data
  • JUMBLE : Array of evenly distributed but random

    • Object
      • "type" : String IBlockFactory type
      • "data" : Object - IBlockFactory data
  • STRIPES : Array of striped diagonal pattern

    • Object
      • "type" : String IBlockFactory type
      • "data" : Object - IBlockFactory data

Type Lists

  • Dungeon:
    • BRICK, CREEPER, CRYPT, ENCHANT, ENDER, FIRE, MUSIC, NETHER, NETHERFORT, PIT, PRISON,
    • SLIME, SMITH, SPIDER, CAKE, LAB, CORNER, MESS, ETHO, ENIKO, BTEAM, BAJ, OSSUARY, OBSIDIAN,
    • AVIDYA, STORAGE, NEBRIS, ASHLEA, FIREWORK, BEDROOM
  • Segment:
    • ARCH, FIREARCH, FIREPLACE, SHELF, INSET, MOSSYARCH, MUSHROOM, NETHERARCH,
    • NETHERSTRIPE, NETHERWART, NETHERLAVA, JUNGLE, BOOKS, SPAWNER,
    • WHEAT, TOMB, CHEST, SILVERFISH, SKULL, FLOWERS, DOOR
  • IBlockFactory:
    • METABLOCK, WEIGHTED, CHECKERS, JUMBLE, STRIPES
Clone this wiki locally