<append xpath="/blocks" >
<append xpath="/blocks/block[@name='terrOreIron']">
<configs>
<append xpath="/blocks/block[@name='terrOreIron']">
<drop event="Harvest" name="resourceIronFragment" count="1000" tag="oreWoodHarvest"/>
</append>
</configs>
<append xpath="/blocks">
<block name="terrOreIron">
<drop event="Harvest" name="resourceIronFragment" count="1000" tag="oreWoodHarvest"/>
</append>
<set xpath="/vehicles/vehicle[@name='vehicleBicycle']/property[@name='cameraDistance' and @value='3, 4.5']/@value">-0.35, -1.55</set>
<set xpath="/vehicles/vehicle[@name='vehicleBicycle']/property[@name='cameraTurnRate' and @value='.2, .35']/@value">0.09, 0.25</set>
In order to change values using append sometimes you have to first remove the block and then append it back in to change values , with set its like you are experiencing very difficult to get syntax right first time ..Yeah that's the problem I'm having, I can't figure out the syntax. I guess I'll keep trying
<configs>
<append xpath="/blocks/block[@name='terrOreIron']">
<drop event="Harvest" name="resourceIronFragment" count="1000" tag="oreWoodHarvest"/>
</append>
</configs>
This did add a new line to the block i was trying to edit, but in reality if i wanted to lower the count it wouldn't work. Thank you for trying to help.I ran the game up and used exportcurrentconfigs in the F1 console to see if this worked and it does in the blocks.xml there is this message about the modlet applying the change to the element.
<drop event="Harvest" name="resourceIronFragment" count="1000" tag="oreWoodHarvest"><!--Element appended by: "Zorecount"--></drop>
Lol that's that the trick , I hate it when it's so simple. I was doingThis is untested but should work, assuming you are trying to change the Harvest amount of iron from an iron node, its set at 100
Code:<set xpath="/blocks/block[@name='terrOreIron']/drop[@event='Harvest'][@name='resourceIronFragment']/@count">100</set>
@value">10/set>
/@count">10</set
Does work DukeW74.This is untested but should work, assuming you are trying to change the Harvest amount of iron from an iron node, its set at 100
Code:<set xpath="/blocks/block[@name='terrOreIron']/drop[@event='Harvest'][@name='resourceIronFragment']/@count">100</set>