Advertisement
antonsavov

WIP default_settings

Jan 10th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.07 KB | None | 0 0
  1. --------------------------------------------------------------------------------------
  2. --- VARIABLES THAT AFFECT THE SPACE OF THE GAME AREA (SPAWN AREA, PLAY AREA AND CATALOGUE AREA TOGETHER)
  3. --------------------------------------------------------------------------------------
  4. --
  5. -- PLAY AREA
  6. --
  7. grid_cell_size = 5 -- the width of one grid cell in minecraft blocks. MUST BE ODD NUMBER minimum is 3 maximum is 11
  8. gridcell_count = 10 -- the number of gridcells or slots across X and Z in one game. MUST BE between 5 and 10
  9. --
  10. -- CATALOGUE AREA
  11. --
  12. catalogue_slot_count = {
  13.     x = 2, --the number of slots along the X axis
  14.     z = 3 --the number of slots along the Z axis
  15. }
  16. --
  17. --
  18. --
  19. ------------------------------
  20. ---ADVANCED SETTINGS BELOW----
  21. ------------------------------
  22. --
  23. -- ADVANCED PLAY AREA SETTINGS
  24. --
  25. play_area_offset = { --TODO make this in blocks not gridcells, make it minimal and move it as a local variable in the respective packages, users dont need to change this
  26.     x = 3, -- the number of grid cells along X the play area is offset from the edge of the spawn zone (the same is used of the CATALOGUE offset)
  27.     z = 3 -- the number of grid cells along Z the play area is offset from the edge of the spawn zone (the negtive of this is used for the catalogue offset)
  28. }
  29. trenches ={ --TODO make this minimal and move it as a local variable in the respective packages, users dont need to change this
  30.     width = 1, -- in minecraft blocks how WIDE are trenches carved around the platforms of the play area, catalogue area and spawn area (from the edge out)
  31.     depth = 5 -- in minecraft blocks how DEEP are trenches carved around the platforms of the play area, catalogue area and spawn area  (from level of computer down)
  32. }
  33. do_grid = true --this refers to the grid of detector blocks placed on the ground at the start of each new game
  34. grid_hole_chance = 0 --
  35.  
  36. --BUILDZONE_FLOOR_HEIGHT = -1 --the elevation of the floor of the play area realtive to the computer elevation (along Y axis)
  37.  
  38. --- this is the matrix or grid of play areas that are created in the world
  39. buildzone_count = {
  40.     x = 1,
  41.     z = 1
  42. }
  43. --- this is the matrix or grid of portals that are created in the world
  44. portal_count = {
  45.     x = 1, --TODO assert(PORTAL_COUNT.x <= 3, "Portal count along X must be 1, 2 or 3")
  46.     z = 1 --TODO assert(PORTAL_COUNT.z <= 3, "Portal count along Z must be 1, 2 or 3")
  47. }
  48. --the portals are the square areas in the spawn zone on which players jump to join a game in the corresponding buildzone
  49. portal_size = 5 -- in minecraft blocks, the size of the portals along X and Z, odd numbers look better
  50. portal_offset = 3 -- in minecraft blocks, the distance between the portals, odd numbers look better
  51. portal_height = 3 -- in minecraft blocks, the height of the portal zone
  52.  
  53. --[[
  54. GAME_FIELD_MAX = { --TODO move this to the package that handles buildzones ( or the one for queues?) NOTE: setGameSettings(game) refers to it and is used in Portal Package
  55.     countX = 3, --don't change this, it must stay 3
  56.     countZ = 3 --don't change this, it must stay 3
  57. }
  58. --]]
  59.  
  60. --TODO if we want to mimic a Manhattan-like grid, offset along X must be different from offset along Z
  61. buildzone_offset = 0 -- in grid cells, the number of grid cells left between the buildzones
  62. --
  63. -- ADVANCED CATALOGUE AREA SETTINGS
  64. --
  65. catalogue_slotsize = { --TODO make this in blocks not gridcells
  66.     x = 3, -- the size of the slot defined as number of grid cells along X
  67.     z = 3 -- the size of the slot defined as number of grid cells along Z
  68. }
  69. -- TODO make the offset in blocks not grid cells and move to the respective packages as local variable, users dont need to change this
  70. catalogue_slot_offset = 1 -- the number of grid cells left free between the slots, also used of the width of the edge of both catalogue and play area
  71. element_height = 29 --the maximum height of an element in the catalogue
  72. --
  73. -- ADVANCED SPAWN AREA
  74. --
  75. --the spawn area consists of one large area for the spawn of everyone, both ops and adventure players and
  76. -- a dispatching area with portals that lead to a buildzone. for each buildzone there is a dedicated portal
  77. spawnzone_size = 39 -- in minecraft blocks, the size of the spawn zone
  78.  
  79. blocks = {
  80.     AIR                 = {block='minecraft:air'                    ,variant=0},
  81.     CAMP_FLOOR          = {block='minecraft:sandstone'              ,variant=0},
  82.     WHITE_GRID          = {block='minecraft:sandstone'              ,variant=0},
  83.     DARK_GRID           = {block='minecraft:snow'                   ,variant=0},
  84.     CONSTRUCTION        = {block='minecraft:diamond_ore'            ,variant=0},
  85.     RING                = {block='minecraft:diamond_ore'            ,variant=0},
  86.     DETECT              = {block='minecraft:red_sandstone'          ,variant=0},
  87.     DETECT_DEAD         = {block='minecraft:redstone_block'         ,variant=0},
  88.     VOCAB_DETECT        = {block='minecraft:quartz_block'           ,variant=0},
  89.     VOCAB_REPLACE       = {block='minecraft:coal_block'             ,variant=0},
  90.     VICTORY_MARKER      = {block='minecraft:emerald_block'          ,variant=0},
  91.     PLUG                = {block='minecraft:lapis_ore'              ,variant=0},
  92.     PHVFLOOR            = {block='minecraft:stone_slab'             ,variant=3},
  93.     BUILDING_HOUSE      = {block='minecraft:wool'                   ,variant=0},
  94.     BUILDING_GARDEN     = {block='minecraft:wool'                   ,variant=13},
  95.     BUILDING_WATER      = {block='minecraft:wool'                   ,variant=1},
  96.     SPAWNZONE_FENCE     = {block='minecraft:stained_glass'          ,variant=0},
  97.     _matWhiteSmooth     = {block='mincreaft:stained_hardened_clay'  ,variant=0},
  98.     _matWhiteSmooth2    = {block='minecraft:brick_block'            ,variant=0},
  99.     _matYellowSmooth    = {block='minecraft:stained_hardened_clay'  ,variant=4},
  100.     _matPinkSmooth      = {block='minecraft:stained_hardened_clay'  ,variant=6},
  101.     _matBlueSmooth      = {block='minecraft:stained_hardened_clay'  ,variant=9},
  102.     _matPurpleSmooth    = {block='minecraft:stained_hardened_clay'  ,variant=10},
  103.     _matWhiteTextured   = {block='minecraft:planks'                 ,variant=4},
  104.     _matYellowTextured  = {block='minecraft:planks'                 ,variant=1},
  105.     _matPinkTextured    = {block='minecraft:planks'                 ,variant=0},
  106.     _matBlueTextured    = {block='minecraft:planks'                 ,variant=2},
  107.     _matPurpleTextured  = {block='minecraft:planks'                 ,variant=5}
  108. }
  109.  
  110. default_starting_items = {
  111.         {   block = "wool", variant = 0,    amount = 16 },
  112.         {   block = "wool", variant = 13,   amount = 16 }
  113. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement