Guest User

Untitled

a guest
Apr 10th, 2019
670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. Mine faster (modify the number): /c game.player.force.manual_mining_speed_modifier=10
  2.  
  3. Cheat mode (true/false): /c game.player.cheat_mode=true
  4.  
  5. Reveal map (modify the local radius): /c local radius=150 game.player.force.chart(game.player.surface, {{game.player.position.x-radius, game.player.position.y-radius}, {game.player.position.x+radius, game.player.position.y+radius}})
  6.  
  7. Control Game speed (modify the number): /c game.speed=2
  8.  
  9. Remove all cliffs: /c for _, v in pairs(game.player.surface.find_entities_filtered{type="cliff"}) do v.destroy() end
  10.  
  11. Spawn new iron ore patch:
  12. /c local surface=game.player.surface local ore=nil local size=5 local density=10 for y=-size, size do for x=-size, size do a=(size+1-math.abs(x))*10 b=(size+1-math.abs(y))*10 if a<b then ore=math.random(a*density-a*(density-8), a*density+a*(density-8)) end if b<a then ore=math.random(b*density-b*(density-8), b*density+b*(density-8)) end if surface.get_tile(game.player.position.x+x, game.player.position.y+y).collides_with("ground-tile") then surface.create_entity({name="iron-ore", amount=ore, position={game.player.position.x+x, game.player.position.y+y}}) end end end
Advertisement
Add Comment
Please, Sign In to add comment