Original Post — Direct link

Hi there! So I created a pvp server with my friends and I'd like to play the map as my single player map as well. But there's a huge problem. We set chests to neutral and you can't replace steel chests with logistics chests or any chest for that matter. Is there a command or mod or whatever to be able to change this setting after the fact? Otherwise I'm not sure what I'm gonna do... Thanks in advance!

External link →
about 4 years ago - /u/Klonan - Direct link

Hmm, something like:

/c global.pvp.config.game_config.neutral_chests = true

It won't affect any old chests, only newly placed chests.

Here is another command to try to set the chests to the right force (it will set to the force of the last player who interacted with it):

/c for k, chest in pairs (game.player.surface.find_entities_filtered{type = "container"}) do if chest.last_user then chest.force = chest.last_user.force end end