Code: Select all
/c game.surfaces[1].create_entity{name = "wooden-chest", position= {0, -1}, insert={name='construction-robot', count=50}, force = game.forces.player}
Code: Select all
/c game.surfaces[1].create_entity{name = "wooden-chest", position= {0, -1}, insert={name='construction-robot', count=50}, force = game.forces.player}
It worked, thanksquyxkh wrote:Add `.insert{name='construction-robot'}` on the end.