nightmarepv
New member
Hello I would like to create a mod allowing me to create a special seed which would transform into a special tree with 2000 hp and which would bring in 6000 wood, to make this tree you would need 1000 wood.
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/items">
<item name="customSpecialTreeSeed" category="Resources">
<property name="Extends" value="plantSeeds"/>
<property name="PlantGrowingBlock" value="customSpecialTree"/>
<effect_group>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="PlantGrowing"/>
</effect_group>
</item>
</append>
</configs>
Files Recipes.xml
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/recipes">
<recipe name="customSpecialTreeSeed">
<ingredient name="resourceWood" count="1000"/>
<craft_area name="workbench"/>
<craft_time value="10"/>
<count value="1"/>
</recipe>
</append>
</configs>
But it doesn't work. I obviously created a mod info folder in the previous folder here just in case
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<Name value="Special Tree Mod"/>
<Description value="Adds a custom tree and seed that can be crafted and harvested for wood."/>
<Author value="YourName"/>
<Version value="1.0"/>
<GameVersion value="Alpha 20.0"/>
</xml>
Code:
Currently I did this but it doesn't work.
Files : Blocks.xml
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/blocks">
<block name="customSpecialTree" shape="TreeShape">
<property name="Class" value="Tree"/>
<property name="Extends" value="blockTree"/>
<drop event="Harvest" name="resourceWood" count="6000"/>
<property name="MaxDamage" value="2000"/>
<property name="Material" value="Wood"/>
<property name="HarvestTool" value="Axe"/>
<property name="GrowthStages" value="3"/>
</block>
</append>
</configs>
Files : Items.xml
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/items">
<item name="customSpecialTreeSeed" category="Resources">
<property name="Extends" value="plantSeeds"/>
<property name="PlantGrowingBlock" value="customSpecialTree"/>
<effect_group>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="PlantGrowing"/>
</effect_group>
</item>
</append>
</configs>
Files Recipes.xml
<?xml version="1.0" encoding="UTF-8"?>
<configs>
<append xpath="/recipes">
<recipe name="customSpecialTreeSeed">
<ingredient name="resourceWood" count="1000"/>
<craft_area name="workbench"/>
<craft_time value="10"/>
<count value="1"/>
</recipe>
</append>
</configs>
But it doesn't work. I obviously created a mod info folder in the previous folder here just in case
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<Name value="Special Tree Mod"/>
<Description value="Adds a custom tree and seed that can be crafted and harvested for wood."/>
<Author value="YourName"/>
<Version value="1.0"/>
<GameVersion value="Alpha 20.0"/>
</xml>
Code:
Thank you very much for your help in advance.