Beard_One Posted March 24, 2019 Share Posted March 24, 2019 Hi - I'm looking to change an entire set of coding, not just an individual value. Using this code... <biome name="desert"> <spawn maxcount="2" respawndelay="4" time="Any" entitygroup="ZombiesAll" /> <spawn maxcount="1" respawndelay="7" time="Any" entitygroup="EnemyAnimalsDesert" spawnDeadChance="0" /> <spawn maxcount="1" respawndelay="7" time="Any" entitygroup="FriendlyAnimalsDesert" spawnDeadChance="0" /> </biome> Could i ask 2 questions please: 1) How do I change "ZombiesAll" in the second line to "ZombieAll2". I get how to change an individual value of one line, but not when there is no unique property in which you use to identify that line... How do i change this? 2) How do I - for example - change the ENTIRETY of what lies in between the whole of the <biome name="desert"></desert> tags? ie if i wanted the new biome code to read: <biome name="desert"> <I've got a lovely bunch of coconuts> </biome> How would I do those 2 things please? Thank you very muchly. Link to comment Share on other sites More sharing options...
DUST2DEATH Posted March 24, 2019 Share Posted March 24, 2019 Use a <remove> to pull the desert biome node entirely. Use a <insertAfter> to reinsert the entire desert biome node back to where it would be with your new changes. Link to comment Share on other sites More sharing options...
Beard_One Posted March 26, 2019 Author Share Posted March 26, 2019 Hi - thanks for the reply. So 2 questions... 1) If <set> changes properties, is there no way to use a <set> to change the entire properties with a <biome> node, or do you have to do a remove and insertafter? 2) I'm not familiar with <remove> or <insertafter>... Would there be any chance whatsoever of you explaining exactly how to use the remove and insertafter? Link to comment Share on other sites More sharing options...
Dracos99 Posted March 26, 2019 Share Posted March 26, 2019 The guides and tutorials section has some great stuff pinned. I would start with https://7daystodie.com/forums/showthread.php?93816-XPath-Modding-Explanation-Thread as sphereii has done an excellent job explaining these commands and people in that thread are super helpful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.