Skip to content

Instantly share code, notes, and snippets.

@justarandomgeek
Created February 14, 2017 17:13
Show Gist options
  • Save justarandomgeek/62992a88d9fc475cf493eb622347a8db to your computer and use it in GitHub Desktop.
Save justarandomgeek/62992a88d9fc475cf493eb622347a8db to your computer and use it in GitHub Desktop.
for _,jack in pairs(game.player.surface.find_entities_filtered{name="pumpjack"}) do jack.surface.create_entity{name='item-request-proxy',force=jack.force,position=jack.position,target=jack,modules={{item="speed-module-3",count=2}}} end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment