Mod for Don’t Starve Together: Better Tooth Traps

 

This mod allows players to rearm tooth traps by holding the spacebar (the main interaction button in DST) rather than having to right-click each trap. This also makes picking up dropped items around traps much easier, since one can’t accidentally pick up the traps anymore (they now need to be dug up with a shovel first).

This mod was trickier than I was expecting. There are very few other mods that modify the ‘actions’ of the game, such as picking, chopping, or rearming, and none of them did something similar to what I was attempting here. I ultimately had to make activated traps ‘pickable,’ and set it so that picking a trap would rearm it, because ‘picking’ is a spacebar action. Then I still needed a way to pick up and move the traps, so I made them ‘diggable’ to turn the trap structure back into an item. I wasn’t really happy with it, but after hours of trying different methods, it was good enough.

Mod Link