• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Disassemble Traps and Mines with wrench

Robeloto

Refugee
I do not want them to be able to be picked up right away cause it is too OP. Worked well with traps, but with mines they just explode as I thought. I have not much time to test it out now either, so I wonder if anyone knows how to do this?

I want to make it possible to disassemble all traps and mines without any problem.

I think this is kinda fair how I did with the wood and spikes traps. You will get wood/iron but with only a 65% possibility to recover 1 trap in the last stage.

Like this:

<append xpath="/blocks/block[@name=trapSpikesWoodDmg2]"><drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="trapSpikesWoodDmg0" prob="0.65" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesWoodDmg1]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesWoodDmg0]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesIronDmg2]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="trapSpikesIronDmg0" prob="0.65" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesIronDmg1]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceScrapIron" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesIronDmg0]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceScrapIron" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesDamage1]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="0" prob="0.01" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesDamage2]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="0" prob="0.01" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesDamage3]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="0" prob="0.01" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesDamage4]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="0" prob="0.01" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesDamage5]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="trapSpikesNew" prob="0.65" count="1" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>

<append xpath="/blocks/block[@name=trapSpikesNew]">

<drop event="Harvest" name="" count="0" tool_category="Disassemble" />

<drop event="Destroy" name="resourceWood" count="0" prob="0.01" tool_category="Disassemble" />

<drop event="Destroy" count="0"/>

</append>
I know the mines will explode on destroy, cause they are coded that way. But there must be a solution around this.

 
Last edited by a moderator:
Back
Top