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

Mechanical Traps (Bear trap, spike trap, fire trap, etc...)

moongaming

New member
Mechanical Traps


Adds some non-electrical traps and explosives (VERSION 4 A18)



nHzUfk7.jpg



Hey everyone !





This mod adds 4 mechanical traps and 3 explosive traps to the game.



it includes
Bear Trap, Fire Trap, Pierce Trap, Acid Trap and the classic Spike Trap.


Version 3 adds Proximity Mine, Claymore and remote-controlled C4.

Here's a quick video showing these in action (except the newest acid trap):

You can craft them in the Workbench using basic resources.

You can also pick up every traps as long as you repaired them with the hammer before.

This is still a work-in-progress and some of the traps (like the piercing one) can be buggy.

Special thanks to: Haird'Gna and Mdf25 for great tips


Download Link (A18): Click Here !




 
Last edited by a moderator:
Did a quick update:

-Added Acid Trap : you need to dig a hole first then place the trap in it. deals a lot of damage but doesn't last very long and zombies won't fall if the trap is opened. you can repair with acid using the hammer.

-Fixed most traps not being repairable and having 5 HP

-Removed useless xpath that gave a warning

-Changed some recipes

modacid.jpg

 
Last edited by a moderator:
All traps only 1 hit can't repeat traps, & spikes trap short life & pierce trap only 1 hit then stopped work & bear trap 1 hit is wasted of resources. need fix it

 
Last edited by a moderator:
it's normal Wolves you can repair them with the hammer and some resources.

(molotov for fire trap, forged iron for most other traps, only iron for bear trap)

once repaired you can also pick them up to place them somewhere else.

bear trap does gets destroyed if you don't kill the zombie stuck inside yourself, so just kill it and repair/pick up the trap.

i'll add it to the traps descriptions in the next update

 
Last edited by a moderator:
All traps only 1 hit can't repeat traps, & spikes trap short life & pierce trap only 1 hit then stopped work & bear trap 1 hit is wasted of resources. need fix it
Isn't that how real traps work though? They fire, then you have to repair/reset them?

 
Greetings :D Can I add this (with some alterations) to the Dead Rising modpack? This looks awesome and would love to be able to showcase it in more places :)

 
Last edited by a moderator:
Just had a dig in the XMLs - I have a suggestion for a compatibility issue the items.xml could cause with other mods :)

In your claw hammer entry you delete the entire Action1 class and re-add it again with 2 new attributes for repairing. But, if another mod also adds their attributes you may end up overwriting them if your mod loads after another one.

So, instead, swap the whole XML in the file for this:

Code:
<append xpath="/items/item[@name='meleeToolClawHammer']/property[@class='Action1']/property[@name='Allowed_upgrade_items']/@value">,resourceAcid,thrownAmmoMolotovCocktail</append>
You could also make it accessible for all other upgrade tools as well, like the wrench, stone axe and nailgun. I can see issues where players might not know why their nailgun can't repair traps :)

Code:
<!-- Allow all construction  tools to upgrade the traps -->
<append xpath="/items/item[@name='meleeToolStoneAxe' or @name='meleeToolClawHammer' or @name='meleeToolWrench' or @name='gunToolNailgun']/property[@class='Action1']/property[@name='Allowed_upgrade_items']/@value">,resourceAcid,thrownAmmoMolotovCocktail</append>
 
Last edited by a moderator:
this is a much proper way of putting it thanks i'm setting this up for every tools
You're welcome :D Glad to help :)

This mod is now incorporated into Dead Rising :D I will be testing and releasing shortly but here's what I did:

- All recipes set to tags='learnable' so they can be unlocked rather than known right away

- Added schematic for all 5 traps to unlock the recipes.

Once I've tested that I'll put it live and announce in new version 1.1.0 :D

 
Back
Top