7 Days to Die

7 Days to Die

View Stats:
Torriador Apr 14, 2016 @ 6:24pm
Simple change to wood spike trap [pickup & durability]
I got a bit tired of having endless rows of fixed spikes, just to have them easily wiped out like paper sheets, in even the smallest wave. And having to replace or repair an unreasonably wide barrier.

So I present my simple change to how the wood spikes durability in the first 2 stages, when first set up, and the ability to pick them up and move them if they have taken no damage.

NOTE*
Once the spikes have taken damage they are considered committed, and cannot be moved. until fully repaired again.

This does not change the damage done to the zombies, or stop them from walking through the spikes. It just means that the spikes are more durable,you need to craft less replacements afer each wave, and can adjust your barrier position without having to craft new spikes each time.

Change the blocks.xml items 408 &409
(in the steamapps>common>7 Days to Die>Data>Config>blocks.xml)

I suggest using Notepad++

(as always, make a backup)

<block id="408" name="trapSpikesNew">
<property name="Class" value="Spikes" />
<!-- <property name="Material" value="wood_weak" /> -->
<property name="Material" value="Msteel" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="Traps/trap_spikes01" param1="main_mesh" />
<property name="Collide" value="movement,melee,bullet,rocket" />
<property name="FuelValue" value="36" />
<property name="SiblingBlock" value="trapSpikesDamage1" />
<property name="IsTerrainDecoration" value="true" />
<property name="CanPickup" value="true" /> <!-- test to pick up -->
<property class="RepairItems"> <property name="wood" value="3" /> </property>
<drop event="Destroy" count="0" />
<drop event="Fall" name="woodDebris" count="1" prob="0.75" stick_chance="1" />
<property name="Group" value="Tools/Traps" />
</block>

<block id="409" name="trapSpikesDamage1">
<property name="Class" value="Spikes" />
<!-- <property name="Material" value="wood_weak" /> -->
<property name="Material" value="Msteel" />
<property name="Shape" value="Ext3dModel" />
<property name="Mesh" value="models" />
<property name="Model" value="Traps/trap_spikes01_damage01" param1="main_mesh" />
<property name="Collide" value="movement,melee,bullet,rocket" />
<property name="FuelValue" value="30" />
<property name="SiblingBlock" value="trapSpikesDamage2" />
<property name="IsTerrainDecoration" value="true" />
<property class="RepairItems"> <property name="wood" value="3" /> </property>
<property class="UpgradeBlock">
<property name="ToBlock" value="trapSpikesNew" />
<property name="Item" value="wood" />
<property name="ItemCount" value="1" />
<property name="UpgradeHitCount" value="4" />
</property>
<drop event="Destroy" count="0" />
<drop event="Fall" name="woodDebris" count="1" prob="0.75" stick_chance="1" />
</block>


[edit; spelling]
Last edited by Torriador; Apr 14, 2016 @ 6:30pm
Date Posted: Apr 14, 2016 @ 6:24pm
Posts: 0