Don't Starve Together

Don't Starve Together

Infinite Tent Uses
How to add portable tents and to give them infinite durability
first, locate your dst's workshop directory
it should be in
C:\Steam\steamapps\common\Don't Starve Together\mods\workshop-356930882
by default

in there, there's two files you need to edit,
modinfo.lua
and
modmain.lua

modinfo.lua

this is not 100% needed, unless you want to be able to customize the amount of durability of portable tents seperate of normal tents

add
{ name = "uses3", label = "Portable Tent Uses", options = { {description = "5", data = 5}, {description = "6 (default)", data = 6}, {description = "10", data = 10}, {description = "15", data = 15}, {description = "20", data = 20}, {description = "25", data = 25}, {description = "30", data = 30}, {description = "35", data = 35}, {description = "45", data = 40}, {description = "45", data = 45}, {description = "50", data = 50}, {description = "55", data = 55}, {description = "60", data = 60}, {description = "65", data = 65}, {description = "70", data = 70}, {description = "75", data = 75}, {description = "80", data = 80}, {description = "85", data = 85}, {description = "90", data = 90}, {description = "95", data = 95}, {description = "100", data = 100}, {description = "Infinite(10M)", data = 10000000} }, default = 10000000, }

before the last "}"

modmain.lua
if you added the modinfo modification, add
TUNING.PORTABLE_TENT_USES = GetModConfigData("uses3") TUNING.PORTABLE_TENT_ITEM_USES = GetModConfigData("uses3")

if you didn't, replace the "uses3" with "uses" , it will take the normal tent's durability for the portable ones

keep in mind that all portable tents crafted before this modification will have the default uses,(so they'll be at 10/10'000'000)
Last edited by Octa Bahjan; Jul 3, 2020 @ 8:26am