Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.87 KB | None | 0 0
  1. function kr_loader(data)
  2.         local name = data.name
  3.         local speed = data.speed
  4.         local icon = data.icon
  5.         local xbelt_animation_set = data.belt_animation_set
  6.         local order = data.order
  7.         local upgrade = data.upgrade
  8.  
  9.         return {
  10.             type = "loader-1x1",
  11.             name = name,
  12.             icon = icon,
  13.             icon_size = 32, icon_mipmaps = 4,
  14.             subgroup = "other",
  15.             max_health = 300,
  16.             filter_count = 5,
  17.             collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
  18.             selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
  19.             animation_speed_coefficient = 32,
  20.             belt_animation_set = xbelt_animation_set,
  21.             flags = {"placeable-neutral", "player-creation", "fast-replaceable-no-build-while-moving"},
  22.             container_distance = 1,
  23.             minable = {mining_time = 0.25, result = name},
  24.             speed = speed,
  25.             structure_render_layer = "lower-object",
  26.             structure =
  27.             {
  28.                 direction_in =
  29.                 {
  30.                     sheet =
  31.                     {
  32.                         filename = "__Krastorio-graphics__/graphics/entity/loaders/"..name..".png",
  33.                         priority = "extra-high",
  34.                         shift = {0.15625, 0.0703125},
  35.                         width = 53,
  36.                         height = 43,
  37.                         y = 43,
  38.                         hr_version =
  39.                         {
  40.                             filename = "__Krastorio-graphics__/graphics/entity/loaders/hr-"..name..".png",
  41.                             priority = "extra-high",
  42.                             shift = {0.15625, 0.0703125},
  43.                             width = 106,
  44.                             height = 85,
  45.                             y = 85,
  46.                             scale = 0.5,
  47.                         }
  48.                     }
  49.                 },
  50.                 direction_out =
  51.                 {
  52.                     sheet =
  53.                     {
  54.                         filename = "__Krastorio-graphics__/graphics/entity/loaders/"..name..".png",
  55.                         priority = "extra-high",
  56.                         shift = {0.15625, 0.0703125},
  57.                         width = 53,
  58.                         height = 43,
  59.                         hr_version =
  60.                         {
  61.                             filename = "__Krastorio-graphics__/graphics/entity/loaders/hr-"..name..".png",
  62.                             priority = "extra-high",
  63.                             shift = {0.15625, 0.0703125},
  64.                             width = 106,
  65.                             height = 85,
  66.                             scale = 0.5
  67.                         }
  68.                     }
  69.                 }
  70.             }
  71.           }
  72.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement