Code: Select all
/c chest = game.player.surface.create_entity{name = "wooden-chest", force = "player", position = {0, 0}}
/c chest.insert({name = "iron-plate"})
/c proxy = game.player.surface.create_entity{name = "item-request-proxy", force = "player", position = {0, 0}, target = chest, modules = {}, removal_plan = {{id = {name = "copper-plate"}, items = {in_inventory = {{inventory = defines.inventory.chest, stack = 0}}}}}}
/c game.print(serpent.line(proxy.removal_plan)) -- {{id = {name = "copper-plate"}, items = {in_inventory = {{inventory = 1, stack = 0}}}}}
/cheat all -- to get and enable personal robots
-- notice the robot took out the iron plate
