Page 1 of 1

Mark objects for Deconstruction

Posted: Mon Mar 17, 2014 12:30 am
by N3X15
It would be highly useful to have a way for Lua to mark an object for deconstruction, similar to the Deconstruction Planner.

Use Cases:
  • Automated harvesting of trees/crops (such as with a mod I am working on)
  • Automated building removal (automated expansion?)
  • Cancel deconstruction
Proposed interface:
entity.deconstruct(on=True)
  • on: Whether the entity should set or unset deconstruction flag.
entity.deconstructing = False
True if object is waiting for deconstruction.

Re: Mark objects for Deconstruction

Posted: Mon Mar 17, 2014 6:21 pm
by kovarex
It is done for 0.9.4, although little bit differently.