stompbox108
New member
I created a couple new seeds to add more mutant crops, everything works but now I want to add how they will be introduced into the game without using a workaround recipe just to add them.
Here is the existing lootgroup
<lootgroup name="seeds">
<item name="plantedPotato1"/>
<item name="plantedCoffee1"/>
<item name="plantedCorn1"/>
<item name="plantedBlueberry1"/>
<item name="plantedCotton1" prob="0.5"/>
<item name="plantedGoldenrod1"/>
<item name="plantedAloe1"/>
<item name="plantedMushroom1"/>
<item name="plantedYucca1"/>
<item name="plantedChrysanthemum1" prob="0.5"/>
<item name="treePlantedMountainPine1m" prob="0.3"/>
<item name="treePlantedWinterPine1m" prob="0.3"/>
</lootgroup>
I am trying to figure out how I can add two more items to the group about. Would this work as far as an xpath command. superfood is the name of my mod. Helps me stay organized.
<superfood>
<insertafter xpath="/loot/lootgroup[@name=seeds]>
<item name="Super Potato (Seed)"/>
<item name="Super Mushroom (Seed)"/>
</insertafter>
</superfood>
any and all help is appreciated.
Here is the existing lootgroup
<lootgroup name="seeds">
<item name="plantedPotato1"/>
<item name="plantedCoffee1"/>
<item name="plantedCorn1"/>
<item name="plantedBlueberry1"/>
<item name="plantedCotton1" prob="0.5"/>
<item name="plantedGoldenrod1"/>
<item name="plantedAloe1"/>
<item name="plantedMushroom1"/>
<item name="plantedYucca1"/>
<item name="plantedChrysanthemum1" prob="0.5"/>
<item name="treePlantedMountainPine1m" prob="0.3"/>
<item name="treePlantedWinterPine1m" prob="0.3"/>
</lootgroup>
I am trying to figure out how I can add two more items to the group about. Would this work as far as an xpath command. superfood is the name of my mod. Helps me stay organized.
<superfood>
<insertafter xpath="/loot/lootgroup[@name=seeds]>
<item name="Super Potato (Seed)"/>
<item name="Super Mushroom (Seed)"/>
</insertafter>
</superfood>
any and all help is appreciated.