ApexAlphaGaming
Refugee
Code:
An exerpt from the logs and the code below
"2020-07-16T20:48:41 17.703 WRN XML patch for "blocks.xml" from mod "Apex's Survival Immersion" did not apply: <remove xpath="/blocks/block[@name='woodLogPillar']/drop[@event='Harvest']"
2020-07-16T20:48:41 17.737 ERR XML loader: Patching 'blocks.xml' from mod 'Apex's Survival Immersion' failed:
2020-07-16T20:48:41 17.738 EXC '/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood']@name' has an invalid token.
XPathException: '/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood']@name' has an invalid token."
<Apex>
<remove xpath="/blocks/block[@name='treeMaster']/drop[@event='Destroy']"/>
<remove xpath="/blocks/block[@name='treeStump']/drop[@event='Harvest']"/>
<remove xpath="/blocks/block[@name='woodLogPillar']/drop[@event='Harvest']"/>
<remove xpath="/blocks/block[@name='treePlainsTree']/drop[@event='Harvest']"/>
<remove xpath="/blocks/block[@name='treeDeadPineLeaf']/drop[@event='Harvest']"/>
<remove xpath="/blocks/block[@name='treeSnowyDeadBush']/drop[@event='Harvest']"/>
<remove xpath="/blocks/block[@name='treeAzalea']/drop[@event='Harvest']"/>
<set xpath="/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood'][@count='30']/@count">6</set>
<set xpath="/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood'][@count='70']/@count">14</set>
<set xpath="/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood'][@count='110']/@count">22</set>
<set xpath="/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood'][@count='150']/@count">30</set>
<set xpath="/blocks/block[starts-with(@name, 'tree')]/drop[@event='Harvest'][@name='resourceWood']@name">resourceSticks</set>
</Apex>
P.S. This is simply TEST code for making the getting of wood from trees more realistic and complicated, actually having a use for the table saw.