Valmar Posted December 19, 2015 Share Posted December 19, 2015 This is a simple mod I worked up a while back. It adds some new traps to the game: Steel Fire Spikes, Fire Traps, Nail Mines, Adhesive Traps and Miner's TNT. When the firetraps run out of fuel you can "refill" them with gasoline. Nail Mines are basically mines that only cause entity damage - no damage to blocks. Adhesive Traps slow down enemies. Miner's TNT is an creative-menu tnt which is more powerful than a standard tnt. Will probably need to work out a few balance issues later down the road but for the moment the code is done and it works for anyone interested. Blocks.xml http://pastebin.com/neL9gwgm Recipes.xml http://pastebin.com/HE8SGd2i Modify the gascan to allow refilling of the firetrap: <item id="161" name="gasCan"> <property name="Meshfile" value="Items/Misc/sackPrefab" /> <property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab" /> <property name="HoldType" value="45" /> <property name="Material" value="metal" /> <property name="Stacknumber" value="1000" /> <!-- STK resource --> <property name="FuelValue" value="2" /> <property name="CraftingSkillGroup" value="Science"/> <property name="Group" value="Resources,Chemicals" /> <property name="Degradation" value="5000" param1="false" /> <property class="Action1"> <property name="Class" value="Repair" /> <property name="Delay" value="0.4" /> <property name="Repair_amount" value="125" /> <property name="Upgrade_hit_offset" value="-1" /> <property name="Sound_start" value="UseActions/repair_block" /> <property name="Allowed_upgrade_items" value="gasCan" /> </property> </item> Custom Icons: https://www.mediafire.com/folder/l7mv8oa4mk77o/Icons Optional: Add this to your Localization file in the config folder: trapFire,blocks,Traps,,Fire Trap,, trapFireDesc,blocks,Traps,,This trap sets whatever walks over it on fire. When it goes out you can refill it using gasoine.,, trapAdhesive,blocks,Traps,,Adhesive Trap,, trapAdhesiveDesc,blocks,Traps,,This trap doesn't deal damage but will slow any enemy that walks over it.,, trapAdhesiveSpike,blocks,Traps,,Adhesive Spike,, trapAdhesiveSpikeDesc,blocks,Traps,,This logspike has been coated with adhesive to make enemies move slower when the try to cross it.,, minersTNT,blocks,Traps,,Miner's TNT,, minersTNTDesc,blocks,Traps,,This TNT was specially crafted by a miner to ensure optimum block damage.,, trapSteelSpike,blocks,Traps,,Steel Spike,, trapSteelFireSpike,blocks,Traps,,Steel Fire Spike,, trapNailMine,blocks,Traps,,Nail Mine,, trapNailMineDesc,blocks,Traps,,This trap deals damage to anyone who triggers it but doesn't deal any damage to surrounding blocks.,, Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.