Twenty5Clocks
Refugee
I have created a new item and it is working. I have added it to the starting items to make sure.
I would like this new item to always be available to buy at all of the traders.
I have been working on this all morning and am having trouble figuring out what I am doing wrong.
Any help would be greatly appreciated.
The code I have in my traders.xml file for the mod is pasted below:
<configs>
<append xpath="//trader_item_groups">
<trader_item_group name="mushroom1Up" count="1">
<item name="food1UpMushroom" count="1,2"/>
</trader_item_group>
</append>
<insertBefore xpath="//trader_info[@id='1']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='8']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='7']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='2']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='6']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
</configs>
Thank you so much for the help.
I would like this new item to always be available to buy at all of the traders.
I have been working on this all morning and am having trouble figuring out what I am doing wrong.
Any help would be greatly appreciated.
The code I have in my traders.xml file for the mod is pasted below:
<configs>
<append xpath="//trader_item_groups">
<trader_item_group name="mushroom1Up" count="1">
<item name="food1UpMushroom" count="1,2"/>
</trader_item_group>
</append>
<insertBefore xpath="//trader_info[@id='1']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='8']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='7']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='2']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
<insertBefore xpath="//trader_info[@id='6']/trader_items/item[@name='traderAlways']">
<item group="mushroom1Up" count="1,2" />
</insertBefore>
</configs>
Thank you so much for the help.