https://github.com/willjallen/FactorioAgent/blob/268498308c3970f88b031bb1f171a01ad987ba65/foyager/env/bridge.py#LL63C1-L66C1
Implement this in the lua mod and add an interface. It should reset all the map entities, the player's inventory, the player's position and anything else you can think of to get back to a fresh start.
https://github.com/willjallen/FactorioAgent/blob/268498308c3970f88b031bb1f171a01ad987ba65/foyager/env/bridge.py#LL63C1-L66C1
Implement this in the lua mod and add an interface. It should reset all the map entities, the player's inventory, the player's position and anything else you can think of to get back to a fresh start.