Don't Starve Together

Don't Starve Together

46 ratings
Better Tooth Traps
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
38.625 KB
6 Feb, 2016 @ 4:16pm
6 May, 2017 @ 11:39pm
4 Change Notes ( view )

Subscribe to download
Better Tooth Traps

In 1 collection by Snowhusky5
Snowhusky5's Mods
5 items
Description
Hold down that spacebar to reset your traps AND grab your loot!

You can now use spacebar and left click to reset traps rather than having to right click them (you still can right click if you want). To prevent picking up traps by accident, traps now have to be dug up with a shovel to be moved (but how often do you have to move traps compared to resetting them?)

Note that this is a server mod, not a client mod.

Known problems: When using left mouse to reset traps, it will say 'pick' instead of 'reset', but it will still work. If you look into the code, you will see why. If you know how to change that, feel free to comment.
Additionally, Bearger (and any other mobs that can dig things, if there are any) can deactivate the traps with their attacks.

Check out my other mods!
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=617951461

UPDATE v1.1: Correctly classified mod as server-only, not all-clients.
UPDATE v1.2: Updated mod to work with new locally-hosted server changes (now checks that component exists before editing it)
UPDATE v1.3: Fixed edge case, so mod no longer crashes if a tooth trap is dug up in the 3 seconds between reaching 0% and disappearing.
21 Comments
Super Brasilis 25 Sep, 2021 @ 6:05pm 
We don't need this mod anymore because it does that without that mod. DEPRECATED
Hotklou 21 Jul, 2021 @ 5:23am 
Still working? Also, does this work with traps other than tooth traps?
Snowhusky5  [author] 6 May, 2017 @ 11:49pm 
So I finally came back to this game and fixed that bearger bug, lol.
GrandTickler 27 May, 2016 @ 4:44am 
id like to add that someone saw a bearger destroy the tooth traps and the server crashed 6 seconds later. u may want to look into this.
GrandTickler 27 May, 2016 @ 4:40am 
great mod but sadly crashed the server just now, heres the log:

[10:18:42]: [string "../mods/workshop-617944113/modmain.lua"]:6: attempt to index field 'mine' (a nil value)
LUA ERROR stack traceback:
../mods/workshop-617944113/modmain.lua:6 in (field) onfinish (Lua) <5-7>
scripts/components/workable.lua:128 in (method) WorkedBy (Lua) <114-134>
scripts/components/workable.lua:69 in (method) Destroy (Lua) <67-72>
scripts/components/groundpounder.lua:63 in (method) DestroyPoints (Lua) <48-95>
scripts/components/groundpounder.lua:103 in (field) fn (Lua) <103-103>
scripts/scheduler.lua:194 in (method) OnTick (Lua) <168-225>
scripts/scheduler.lua:406 in (global) RunScheduler (Lua) <404-412>
scripts/update.lua:166 in () ? (Lua) <150-223>
Snowhusky5  [author] 23 May, 2016 @ 2:08pm 
@Cry I knew about that when I made this, spacebar and f do not work the same way
Shame 23 May, 2016 @ 1:51pm 
@Snowhusky5 hmm, well, if you ever get back to it, perhaps this mod might help (It works with your keys and disables you from Ctrl + F attacking Abby): https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=536402022&searchtext=
Snowhusky5  [author] 23 May, 2016 @ 1:40pm 
@Cry Of The World I'm done with dont starve at this point; also, I couldn't figure out how to make it client side when I was making this mod (the best I got was making you go to the tooth trap and try to take it when you press space but continually failing). If you want, you can look at the mod and make a better version, lol
Shame 23 May, 2016 @ 1:08pm 
@Snowhusky5 how about simply making a Client mod, which makes you RESET tooth traps with spacebar instead of picking them up (or not do anything at all perhaps; make the mod configurable). That way this would be EXTREMELY useful and would save me some time instead of tooth traps being tedious. And I'm pretty sure this would be good for other players as well. Just make it Client based, cause some people don't like to have any mods activated on their server at all, even if it's for simple convenience sake and nothing game-breaking \/_\/
Snowhusky5  [author] 15 Mar, 2016 @ 2:48pm 
@Sliceofpow, do you mean 'Auto Tooth Trap Reset [BETA]'? If so, then I don't know, but it is probably compatible. Don't know if it is compatitable though.