GARRthePIRATE Posted January 9, 2019 Share Posted January 9, 2019 Hi, I know how to give item on destroy. Is it possible give player an item on specific block upgrades? Would adding this to an item work: <drop event="UpgradeBlock" item="wood" count="1" /> Link to comment Share on other sites More sharing options...
Gazz Posted January 9, 2019 Share Posted January 9, 2019 Yes. You can make the steelSpike a loot container holding 1 wood. Link to comment Share on other sites More sharing options...
GARRthePIRATE Posted January 9, 2019 Author Share Posted January 9, 2019 Sorry, i need it to be given on upgrade by the players action of upgrading it, I've left an example of what i think may work I may be dead wrong and there may be another way: <block id="2032" name="exampleStage1"> <property name="CustomIcon" value="controlPanelTop06" /> <property name="Material" value="metal" /> <property name="Shape" value="Ext3dModel" /> <property name="Mesh" value="models" /> <property name="Model" value="Industrial/control_panel_top_06" param1="main_mesh" /> <property name="Place" value="TowardsPlacerInverted" /> <drop event="Destroy" count="1" /> <drop event="UpgradeBlock" item="wood" count="1" /> <property class="UpgradeBlock"> <property name="ToBlock" value="exampleStage2"/> <property name="Item" value="gasCan"/> <property name="ItemCount" value="250"/> <property name="UpgradeHitCount" value="1"/> </block> <block id="2033" name="exampleStage2"> <property name="CustomIcon" value="controlPanelTop06" /> <property name="Material" value="metal" /> <property name="Shape" value="Ext3dModel" /> <property name="Mesh" value="models" /> <property name="Model" value="Industrial/control_panel_top_06" param1="main_mesh" /> <property name="Place" value="TowardsPlacerInverted" /> <drop event="Destroy" count="1" /> </block> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.