Guest User

reactor 0.28 lava things

a guest
Apr 21st, 2016
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.68 KB | None | 0 0
  1. {
  2.     type = "boiler",
  3.     name = "Lava-boiler",
  4.     icon = "__reactor__/graphics/icons/lava-boiler.png",
  5.     flags = {"placeable-player", "player-creation"},
  6.     minable = {hardness = 0.4, mining_time = 2, result = "Lava-boiler"},
  7.     max_health = 250,
  8.     corpse = "small-remnants",
  9.     resistances =
  10.     {
  11.       {
  12.         type = "fire",
  13.         percent = 100
  14.       }
  15.     },
  16.  --   fast_replaceable_group = "pipe",
  17.     collision_box = {{-0.29, -0.29}, {0.29, 0.29}},
  18.     selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
  19.     fluid_box =
  20.     {
  21.       base_area = 4,
  22.       pipe_covers = pipecoverspictures(),
  23.       pipe_connections =
  24.       {
  25.         { position = {0, -1} },
  26.         { position = {1, 0} },
  27.         { position = {0, 1} },
  28.         { position = {-1, 0} }
  29.       },
  30.     },
  31.     energy_consumption = "780kW",
  32.     burner =
  33.     {
  34.       effectivity = 1.0,
  35.       fuel_inventory_size = 1,
  36.       emissions = 0.15/6.5,
  37.     },
  38.     structure =
  39.     {
  40.       left =
  41.       {
  42.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-left.png",
  43.         priority = "extra-high",
  44.         width = 46,
  45.         height = 46,
  46.         shift = {0.03125, 0}
  47.       },
  48.       down =
  49.       {
  50.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-down.png",
  51.         priority = "extra-high",
  52.         width = 66,
  53.         height = 72 --, shift = {0.05, 0}
  54.       },
  55.       left_down =
  56.       {
  57.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-left-down.png",
  58.         priority = "extra-high",
  59.         width = 60,
  60.         height = 50 --, shift = {0, -0.02}
  61.       },
  62.       right_down =
  63.       {
  64.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-right-down.png",
  65.         priority = "extra-high",
  66.         width = 44,
  67.         height = 50
  68.       },
  69.       left_up =
  70.       {
  71.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-left-up.png",
  72.         priority = "extra-high",
  73.         width = 66,
  74.         height = 74 --, shift = {0.05, 0}
  75.       },
  76.       right_up =
  77.       {
  78.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-right-up.png",
  79.         priority = "extra-high",
  80.         width = 46,
  81.         height = 72 --, shift = {0.15, 0}
  82.       },
  83.       t_down =
  84.       {
  85.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-t-down.png",
  86.         priority = "extra-high",
  87.         width = 44,
  88.         height = 50 --, shift = {0, 0}
  89.       },
  90.       t_up =
  91.       {
  92.         filename = "__reactor__/graphics/entity/lava-boiler/Lava-boiler-t-up.png",
  93.         priority = "extra-high",
  94.         width = 46,
  95.         height = 70 --, shift = {0, 0}
  96.       }
  97.     },
  98.     fire =
  99.     {
  100.        left = boilerfires.down,
  101.        down = boilerfires.left,
  102.        left_down = boilerfires.right,
  103.        right_down = boilerfires.left,
  104.        left_up = boilerfires.down,
  105.        right_up = boilerfires.down,
  106.        t_up = boilerfires.down
  107.     },
  108.     burning_cooldown = 20,
  109.     pictures = pipepictures()
  110.   },
  111.  
  112.  
  113. ------
  114.  
  115. data:extend(
  116. {
  117.   {
  118.     type = "resource",
  119.     name = "Nature-Gas",
  120.     icon = "__reactor__/graphics/icons/Nature-Gas.png",
  121.     flags = {"placeable-neutral"},
  122.     category = "Nature-Gas",
  123.     order="r-n-g",
  124.     infinite = true,
  125.     minimum = 1000,
  126.     normal = 15000,
  127.     minable =
  128.     {
  129.       hardness = 1,
  130.       mining_time = 1,
  131.       results =
  132.       {
  133.         {
  134.           type = "fluid",
  135.           name = "Nature-Gas",
  136.           amount_min = 1,
  137.           amount_max = 10,
  138.           probability = 1
  139.         }
  140.       }
  141.     },
  142.     collision_box = {{ -1.4, -1.4}, {1.4, 1.4}},
  143.     selection_box = {{ -0.5, -0.5}, {0.5, 0.5}},
  144.     autoplace =
  145.     {
  146.       control = "Nature-Gas",
  147.       sharpness = 0.8,
  148.       max_probability = 0.03,
  149.       richness_multiplier = 19006,
  150.       richness_base = 15006,
  151.       size_control_multiplier = 0.06,
  152.       peaks =
  153.       {
  154.         {
  155.           influence = 0.1
  156.         },
  157.         {
  158.           influence = 0.075,
  159.           starting_area_weight_optimal = 0.3,
  160.           starting_area_weight_range = 0,
  161.           starting_area_weight_max_range = 2,
  162.         },
  163.         {
  164.           influence = 0.58,
  165.           noise_layer = "Nature-Gas",
  166.           noise_octaves_difference = -2.7,
  167.           noise_persistence = 0.3
  168.         },
  169.       }
  170.     },
  171.     stage_counts = {0},
  172.     stages =
  173.     {
  174. --the Folder was named Nature-gas not Nature-Gas
  175.     sheet = {
  176.       filename = "__reactor__/graphics/entity/Nature-gas/Nature-Gas.png",
  177.       priority = "extra-high",
  178.       width = 75,
  179.       height = 61,
  180.       frame_count = 4,
  181.       variation_count = 1
  182.       },
  183.     },
  184.     map_color = {r=0.8, g=0.77, b=0.77},
  185.     map_grid = false
  186.   }
  187. })
Add Comment
Please, Sign In to add comment