Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2024
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. /c
  2. local surface = game.player.surface
  3. local position = game.player.position
  4.  
  5. local spidertron = surface.create_entity{
  6. name = "spidertron",
  7. position = {x = position.x + 5, y = position.y},
  8. force = game.player.force
  9. }
  10.  
  11. local inventory = spidertron.get_inventory(defines.inventory.spider_trunk)
  12. inventory.insert{name = "rocket", count = 2000}
  13.  
  14. spidertron.grid.put{name = "fusion-reactor-equipment"}
  15. spidertron.grid.put{name = "exoskeleton-equipment"}
  16. spidertron.grid.put{name = "personal-roboport-mk2-equipment"}
  17. spidertron.grid.put{name = "battery-mk2-equipment"}
  18.  
  19. game.player.print("Spidertron created with rockets!")
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement