Destroy Building on Pick-up/Mine
Posted: Tue Aug 18, 2015 7:27 pm
I have a building in my mod, that I feel is very OP. I was thinking that I could make it that, once placed, it could not be moved. If you did move it, it would be destroyed.
I was able to do this by changing the "minable" line
minable = {hardness = 0.2, mining_time = 0.5, result = "AlienControlStation"},
to
minable = {hardness = 0.2, mining_time = 0.5, result = "stone-brick"},
So now, when picked-up I get a brick and not the station anymore.
I was wondering, is there a way to get a warning message letting you know it's going to be destroyed?
Can I say how many items I get back? Like 50 bricks, or bricks and something else?
Any other thoughts how to handle this?
Thanks.
I was able to do this by changing the "minable" line
minable = {hardness = 0.2, mining_time = 0.5, result = "AlienControlStation"},
to
minable = {hardness = 0.2, mining_time = 0.5, result = "stone-brick"},
So now, when picked-up I get a brick and not the station anymore.
I was wondering, is there a way to get a warning message letting you know it's going to be destroyed?
Can I say how many items I get back? Like 50 bricks, or bricks and something else?
Any other thoughts how to handle this?
Thanks.