Results 1 to 4 of 4

Thread: help with mod pls

  1. #1
    Survivor
    Join Date
    Jul 2018
    Posts
    94
    Rep Power
    0

    help with mod pls

    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>

  2. #2
    Zombie Hunter bdubyah's Avatar
    Join Date
    Dec 2016
    Location
    Tennessee
    Posts
    423
    Rep Power
    1
    Could always try making your own material.

  3. #3
    Survivor
    Join Date
    Jul 2018
    Posts
    94
    Rep Power
    0
    Quote Originally Posted by bdubyah View Post
    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?

  4. #4
    Zombie Hunter bdubyah's Avatar
    Join Date
    Dec 2016
    Location
    Tennessee
    Posts
    423
    Rep Power
    1
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •