7 Days to Die

7 Days to Die

View Stats:
xLOKIxPLx Nov 10, 2021 @ 4:05am
XML files for blocks durability
Can anybody explain to me how can I change durability of blocks in xml files?
< >
Showing 1-3 of 3 comments
Subquake Nov 10, 2021 @ 10:39am 
Block durability is based off of what material is applied to the block in blocks.xml:
<property name="Material" value="Mmetal_hard"/>
Respectively in the materials.xml, you defined how much health a block with that assigned material would have:
<property name="MaxDamage" value="100"/>
but, if you don't want to mess around with changing or adding materials in materials.xml, conveniently if you add this line to any block in xml, it would override whatever the health is set for the blocks material:
<property name="MaxDamage" value="2000"/>

This is done, for example, to the vanilla block secureDoorWooden

If you need help in understanding how to do XPath modding and actually create a mod that does this without directly modifying the xml files, then sphereii covered it pretty nicely on the official forums:
https://community.7daystodie.com/topic/7653-xpath-modding-explanation-thread

Hope that helps!
Last edited by Subquake; Nov 10, 2021 @ 10:42am
Shame on you Nov 10, 2021 @ 4:51pm 
Be aware that there is a maximum arround ?30000? you cant set the value higher without bugs
(cant remember the exact value, edited the blocks.xml last time 2-3 years ago)
Last edited by Shame on you; Nov 10, 2021 @ 4:52pm
Subquake Nov 10, 2021 @ 5:45pm 
Yes, don't go over 32000
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Nov 10, 2021 @ 4:05am
Posts: 3