Advertisement
Guest User

Untitled

a guest
May 14th, 2017
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.79 KB | None | 0 0
  1. {
  2.     type = "furnace",
  3.     name = "test-electric-furnace",
  4.     icon = "__base__/graphics/icons/electric-furnace.png",
  5.     flags = {"placeable-neutral", "placeable-player", "player-creation"},
  6.     minable = {mining_time = 1, result = "test-electric-furnace"},
  7.     max_health = 350,
  8.     corpse = "big-remnants",
  9.     dying_explosion = "medium-explosion",
  10.     light = {intensity = 1, size = 10},
  11.     resistances =
  12.     {
  13.       {
  14.         type = "fire",
  15.         percent = 80
  16.       }
  17.     },
  18.     fluid_boxes =
  19.     {
  20.       {
  21.         production_type = "input",
  22.         pipe_picture = assembler2pipepictures(),
  23.         pipe_covers = pipecoverspictures(),
  24.         base_area = 10,
  25.         base_level = -1,
  26.         pipe_connections = {{ type="input", position = {0, -2} }},
  27.         secondary_draw_orders = { north = -1 }
  28.       },
  29.       {
  30.         production_type = "output",
  31.         pipe_picture = assembler2pipepictures(),
  32.         pipe_covers = pipecoverspictures(),
  33.         base_area = 10,
  34.         base_level = 1,
  35.         pipe_connections = {{ type="output", position = {-1, 2} }},
  36.         secondary_draw_orders = { north = -1 }
  37.       },
  38.       {
  39.         production_type = "output",
  40.         pipe_picture = assembler2pipepictures(),
  41.         pipe_covers = pipecoverspictures(),
  42.         base_area = 10,
  43.         base_level = 1,
  44.         pipe_connections = {{ type="output", position = {1, 2} }},
  45.         secondary_draw_orders = { north = -1 }
  46.       },
  47.       off_when_no_fluid_recipe = false
  48.     },
  49.     collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
  50.     selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
  51.     module_specification =
  52.     {
  53.       module_slots = 2,
  54.       module_info_icon_shift = {0, 0.8}
  55.     },
  56.     allowed_effects = {"consumption", "speed", "productivity", "pollution"},
  57.     crafting_categories = {"smelting"},
  58.     result_inventory_size = 1,
  59.     crafting_speed = 2,
  60.     energy_usage = "180kW",
  61.     source_inventory_size = 1,
  62.     target_temperature = 350,
  63.     energy_source =
  64.     {
  65.       type = "heat",
  66.       max_temperature = 350,
  67.       specific_heat = "1MJ",
  68.       max_transfer = "2GW",
  69.       connections =
  70.       {
  71.         {
  72.           position = {0, -1},
  73.           direction = defines.direction.north
  74.         },
  75.         {
  76.           position = {1, 0},
  77.           direction = defines.direction.east
  78.         },
  79.         {
  80.           position = {0, 1},
  81.           direction = defines.direction.south
  82.         },     
  83.         {
  84.           position = {-1, 0},
  85.           direction = defines.direction.west
  86.         },
  87.       },
  88.       pipe_covers =
  89.  
  90.         make_4way_animation_from_spritesheet(
  91.         {
  92.           filename = "__base__/graphics/entity/heat-exchanger/heatex-endings.png",
  93.           line_length = 4,
  94.           width = 32,
  95.           height = 32,
  96.           direction_count = 4,
  97.           hr_version = {
  98.             filename = "__base__/graphics/entity/heat-exchanger/hr-heatex-endings.png",
  99.             line_length = 4,
  100.             width = 64,
  101.             height = 64,
  102.             direction_count = 4,
  103.             scale = 0.5
  104.           }
  105.         })
  106.  
  107.     },
  108.     vehicle_impact_sound =  { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
  109.     working_sound =
  110.     {
  111.       sound =
  112.       {
  113.         filename = "__base__/sound/electric-furnace.ogg",
  114.         volume = 0.7
  115.       },
  116.       apparent_volume = 1.5
  117.     },
  118.     animation =
  119.     {
  120.       layers = {
  121.       {
  122.         filename = "__base__/graphics/entity/electric-furnace/electric-furnace-base.png",
  123.         priority = "high",
  124.         width = 129,
  125.         height = 100,
  126.         frame_count = 1,
  127.         shift = {0.421875, 0},
  128.         hr_version = {
  129.           filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace.png",
  130.           priority = "high",
  131.           width = 239,
  132.           height = 219,
  133.           frame_count = 1,
  134.           shift = util.by_pixel(0.75, 5.75),
  135.           scale = 0.5
  136.         }
  137.       },
  138.       {
  139.         filename = "__base__/graphics/entity/electric-furnace/electric-furnace-shadow.png",
  140.         priority = "high",
  141.         width = 129,
  142.         height = 100,
  143.         frame_count = 1,
  144.         shift = {0.421875, 0},
  145.         draw_as_shadow = true,
  146.         hr_version = {
  147.           filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-shadow.png",
  148.           priority = "high",
  149.           width = 227,
  150.           height = 171,
  151.           frame_count = 1,
  152.           draw_as_shadow = true,
  153.           shift = util.by_pixel(11.25, 7.75),
  154.           scale = 0.5
  155.         }
  156.       }
  157.       }
  158.     },
  159.     working_visualisations =
  160.     {
  161.       {
  162.         animation =
  163.         {
  164.           filename = "__base__/graphics/entity/electric-furnace/electric-furnace-heater.png",
  165.           priority = "high",
  166.           width = 25,
  167.           height = 15,
  168.           frame_count = 12,
  169.           animation_speed = 0.5,
  170.           shift = {0.015625, 0.890625},
  171.           hr_version = {
  172.             filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-heater.png",
  173.             priority = "high",
  174.             width = 60,
  175.             height = 56,
  176.             frame_count = 12,
  177.             animation_speed = 0.5,
  178.             shift = util.by_pixel(1.75, 32.75),
  179.             scale = 0.5
  180.           }
  181.         },
  182.         light = {intensity = 0.4, size = 6, shift = {0.0, 1.0}, color = {r = 1.0, g = 1.0, b = 1.0}}
  183.       },
  184.       {
  185.         animation =
  186.         {
  187.           filename = "__base__/graphics/entity/electric-furnace/electric-furnace-propeller-1.png",
  188.           priority = "high",
  189.           width = 19,
  190.           height = 13,
  191.           frame_count = 4,
  192.           animation_speed = 0.5,
  193.           shift = {-0.671875, -0.640625},
  194.           hr_version = {
  195.             filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-propeller-1.png",
  196.             priority = "high",
  197.             width = 37,
  198.             height = 25,
  199.             frame_count = 4,
  200.             animation_speed = 0.5,
  201.             shift = util.by_pixel(-20.5, -18.5),
  202.             scale = 0.5
  203.           }
  204.         }
  205.       },
  206.       {
  207.         animation =
  208.         {
  209.           filename = "__base__/graphics/entity/electric-furnace/electric-furnace-propeller-2.png",
  210.           priority = "high",
  211.           width = 12,
  212.           height = 9,
  213.           frame_count = 4,
  214.           animation_speed = 0.5,
  215.           shift = {0.0625, -1.234375},
  216.           hr_version = {
  217.             filename = "__base__/graphics/entity/electric-furnace/hr-electric-furnace-propeller-2.png",
  218.             priority = "high",
  219.             width = 23,
  220.             height = 15,
  221.             frame_count = 4,
  222.             animation_speed = 0.5,
  223.             shift = util.by_pixel(3.5, -38),
  224.             scale = 0.5
  225.           }
  226.         }
  227.       }
  228.     },
  229.     fast_replaceable_group = "furnace"
  230.   },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement