trupen

50 Tips and tricks [Commands]

Aug 12th, 2020 (edited)
10,898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. --- Disable biters expansion ---
  2. /c game.map_settings.enemy_expansion.enabled = false
  3.  
  4. --- Destroy clifs ---
  5. /c local mgs = game.player.surface.map_gen_settings
  6. mgs.cliff_settings.cliff_elevation_0 = 1024
  7. game.player.surface.map_gen_settings = mgs
  8.  
  9. /c for _, v in pairs(game.player.surface.find_entities_filtered{type="cliff"}) do
  10. v.destroy()
  11. end
  12.  
  13.  
  14. --- Timelapse script (its not a command) ---
  15. script.on_nth_tick(300, function(event)
  16. game.take_screenshot{
  17. surface=game.surfaces[1],
  18. position={-60,75},
  19. resolution={9120, 5130},
  20. zoom=1,
  21. path="screens/" .. string.format("%06d", event.tick/event.nth_tick) .. ".jpg",
  22. show_entity_info=true,
  23. allow_in_replay=true,
  24. daytime=1
  25. }
  26. end)
Add Comment
Please, Sign In to add comment