Modding Help Break Block Without Drop

Discussion in 'Starbound Modding' started by nickc01, Sep 16, 2016.

Tags:
  1. nickc01

    nickc01 Phantasmal Quasar

    Is there a way via scripting to break a material block in the world without dropping the item?

    I did some experimentation but could not find a way to do so.
     
  2. Errors4l

    Errors4l Spaceman Spiff

    world.damageTiles({pos}, layer, pos, "blockish", 9999, 0)

    This breaks a single block without dropping a matitem. That's what the last 0 does. You can compare it to the function found in /Starbound/docs/.

    Note that objects will still be dropped if they break due to this action. Tiles with some matmods need this function called twice. Tiles with trees on them can not be broken directly.
     
  3. nickc01

    nickc01 Phantasmal Quasar

    Thx alot, it worked well :)
     

Share This Page