Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function kr_loader(data)
- local name = data.name
- local speed = data.speed
- local icon = data.icon
- local xbelt_animation_set = data.belt_animation_set
- local order = data.order
- local upgrade = data.upgrade
- return {
- type = "loader-1x1",
- name = name,
- icon = icon,
- icon_size = 32, icon_mipmaps = 4,
- subgroup = "other",
- max_health = 300,
- filter_count = 5,
- collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
- selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
- animation_speed_coefficient = 32,
- belt_animation_set = xbelt_animation_set,
- flags = {"placeable-neutral", "player-creation", "fast-replaceable-no-build-while-moving"},
- container_distance = 1,
- minable = {mining_time = 0.25, result = name},
- speed = speed,
- structure_render_layer = "lower-object",
- structure =
- {
- direction_in =
- {
- sheet =
- {
- filename = "__Krastorio-graphics__/graphics/entity/loaders/"..name..".png",
- priority = "extra-high",
- shift = {0.15625, 0.0703125},
- width = 53,
- height = 43,
- y = 43,
- hr_version =
- {
- filename = "__Krastorio-graphics__/graphics/entity/loaders/hr-"..name..".png",
- priority = "extra-high",
- shift = {0.15625, 0.0703125},
- width = 106,
- height = 85,
- y = 85,
- scale = 0.5,
- }
- }
- },
- direction_out =
- {
- sheet =
- {
- filename = "__Krastorio-graphics__/graphics/entity/loaders/"..name..".png",
- priority = "extra-high",
- shift = {0.15625, 0.0703125},
- width = 53,
- height = 43,
- hr_version =
- {
- filename = "__Krastorio-graphics__/graphics/entity/loaders/hr-"..name..".png",
- priority = "extra-high",
- shift = {0.15625, 0.0703125},
- width = 106,
- height = 85,
- scale = 0.5
- }
- }
- }
- }
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement