UbberN00ber Posted November 5, 2019 Share Posted November 5, 2019 ok i made a sticky trap mod but i cant get the movement factor to work... it only work if i make a materials "set" mod but i dont want the barbedwire to have the same movement factor.. all the other properties work but the movement factor. <config> <append xpath="/blocks"> <block name="StickyTrap"> <!-- <property name="DescriptionKey" value="trapAdhesiveDesc"/> --> <property name="Material" value="MbarbedFence" /> <property name="Shape" value="New"/> <property name="Model" value="Plate"/> <property name="Texture" value="217" /> <drop event="Destroy" count="0" /> <property name="Group" value="Building" /> <drop event="Fall" count="0"/> <property name="UnlockedBy" value="perkYeahScience"/> <property name="damage_category" value="wood" /> <property name="surface_category" value="wood" /> <property name="forge_category" value="iron" /> <property name="Hardness" type="float" value="1" /> <property name="stepsound" value="metal" /> <property name="stability_glue" value="20" /> <property name="Mass" type="int" value="5" /> <property name="MaxDamage" value="1000" /> <property name="Experience" value="15.0"/> <property name="CustomIcon" value="steelPlate"/> <property name="CustomIconTint" value="44aa00"/> <property name="movement_factor" value="0.03"/> </block> </append> </config> it will only work if i do this mod below but it changes the barbedwire also which i do not want <configs> <set xpath="/materials/material[@id=MbarbedFence]/property[@name=movement_factor]/@value">0.03</set> </configs> Link to comment Share on other sites More sharing options...
bdubyah Posted November 6, 2019 Share Posted November 6, 2019 Could always try making your own material. Link to comment Share on other sites More sharing options...
UbberN00ber Posted November 6, 2019 Author Share Posted November 6, 2019 Could always try making your own material. yes i can but i still confused as why the movement value doest take but the max damage did when they both are different in the extends from barbedfence? Link to comment Share on other sites More sharing options...
bdubyah Posted November 6, 2019 Share Posted November 6, 2019 What do you mean by the extends from barbedfence? I don't see MaxDamage on that block. But you have it on yours which is why it works. Movement_factor may only work in materials.xml, as it isn't anywhere in blocks.xml. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.