Page 1 of 1

[0.16.21] Unminable entity is deconstructible

Posted: Wed Feb 07, 2018 7:25 am
by eradicator
An entity that is modded to be unminable is infact unminable by the player but can still be deconstructed by bots.
Minimal example:

Code: Select all

data.raw["assembling-machine"]["assembling-machine-3"].minable = nil

Re: [0.16.21] Unminable entity is deconstructible

Posted: Wed Feb 07, 2018 7:36 am
by Rseding91
Thanks for the report. That's working as intended: robots can deconstruct things regardless of them having a mining result. If you don't want robots to be able to deconstruct an entity you can use the "not-deconstructable" entity prototype flag.

Re: [0.16.21] Unminable entity is deconstructible

Posted: Wed Feb 07, 2018 9:29 am
by eradicator
Rseding91 wrote:Thanks for the report. That's working as intended: robots can deconstruct things regardless of them having a mining result. If you don't want robots to be able to deconstruct an entity you can use the "not-deconstructable" entity prototype flag.
Thanks for the hint (works! :)). I rememberd the recent report about non-deconstructibility of entities without a mining result, but couldn't find the thread anymore. And i assumed that as my entity also has neither a mining_time nor hardness it would be unrelated. Using a special flag for that certainly is difficult to discover :/.