• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Can anyone help me?

I want to add a new item like a resources obtained by mining and trought quest to do material in changes.

The recipes an items are ready but i can't make run the block.xml and quests.xml by this error:

XmlException 'append' is expected [Coords of the error] / NullReferenceException: Object reference not set to an instance of an object.

I leet the files below (I'm new on this of modding)

CoinsToMaterials error.zip

 

Attachments

Last edited by a moderator:
Code:
<insertAfter xpath="/blocks/block[@name='paintingBen']/property[@name='CreativeMode'][@value='Player']" >
	<property name="Group" value="ALL,Living_room"/>
   </insertAfter>
try use sething like thet

 
Code:
<configs>

<insertAfter xpath="/blocks/block[@name='rockResource']/property[@name='PassThroughDamage'][@value='true']" >
	<drop event="Harvest" name="minerCoin" count="5" prob="0.8" tag="oreWoodHarvest"/>
	<drop event="Harvest" name="resourceSilverNugget" count="1,2" prob="0.08" tag="oreWoodHarvest"/>
	<drop event="Harvest" name="resourceGoldNugget" count="1,2" prob="0.06" tag="oreWoodHarvest"/>
	<drop event="Harvest" name="resourceRawDiamond" count="1,2" prob="0.03" tag="oreWoodHarvest"/>
</insertAfter>

</configs>
try like thet, sorry my inglis is very bad lol

 
That works now i will replace all the append text, thank you and don't worry just keep practice your English and you can writte it naturally.

(Main Languaje is Spanish for me xD)

 
Back
Top