Guest User

pump lua

a guest
Sep 21st, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. })
  2.  
  3. data:extend({
  4. (function()
  5. local pump = table.deepcopy(data.raw["pump"]["pump"])
  6. pump.name = "plastic-pump"
  7. pump.icon = "__better-plastic-pipes__/graphics/icon/pump.png"
  8. pump.minable = { mining_time = 0.1, "plastic-pump" }
  9. pump.resistances =
  10. {
  11. {
  12. type = "fire",
  13. percent = -50
  14. },
  15. {
  16. type = "impact",
  17. percent = -20
  18. },
  19. {
  20. type = "physical",
  21. percent = -50
  22. },
  23. {
  24. type = "acid",
  25. percent = 95
  26. }
  27. }
  28. pump.fluid_animation = nil
  29. pump.glass_pictures = nil
  30. pump.graphics_set = {}
  31. pump.graphics_set.animation =
  32. {
  33. north =
  34. {
  35. filename = "__better-plastic-pipes__/graphics/entity/pump/pump-north.png",
  36. width = 96,
  37. height = 128,
  38. frame_count = 32,
  39. line_length = 8,
  40. animation_speed = 0.5
  41. },
  42. east =
  43. {
  44. filename = "__better-plastic-pipes__/graphics/entity/pump/pump-east.png",
  45. width = 128,
  46. height = 96,
  47. frame_count = 32,
  48. line_length = 8,
  49. animation_speed = 0.5
  50. },
  51. south =
  52. {
  53. filename = "__better-plastic-pipes__/graphics/entity/pump/pump-south.png",
  54. width = 96,
  55. height = 128,
  56. frame_count = 32,
  57. line_length = 8,
  58. animation_speed = 0.5
  59. },
  60. west =
  61. {
  62. filename = "__better-plastic-pipes__/graphics/entity/pump/pump-east.png",
  63. width = 128,
  64. height = 96,
  65. frame_count = 32,
  66. line_length = 8,
  67. animation_speed = 0.5
  68. }
  69. }
  70. return pump
  71. end)()
Tags: factorio
Advertisement
Add Comment
Please, Sign In to add comment