Jump to content

Recommended Posts

Hello. First of all, I have never ever coded any mod before, I don't know anything about lua. I am just a Don't Starve player. Some time ago, together with my girlfriend we created ourselves a really easy-mode world. We tweaked world settings a little bit. We decided to put Tumbleweeds setting on "Lots". That helped as a lot in the beginning. Now, after exploring a lot of lands it became a pain in the a**. The amount of them spawned in the world is ridiculous. That's why I wanted to make this post. Is it possible to somehow, with a mod, clear those spawned tumbleweeds and change the setting to "Normal" or maybe "More"? If there is anyone who can help me with that, please, the lag created from them makes this world unplayable. Thanks in advance to everyone who will try to help us! 

You can't change the setting, it applies during world generation.

You should have around 20 or something tumbleweed spawners with normal settings.

You can check how many spawners you have by using

c_countprefabs("tumbleweedspawner")

in the game's console.

 

Copy and paste this command

for k,v in pairs(Ents) do if v.prefab == "tumbleweedspawner" and math.random() < 0.25 then v:Remove() end end
                                                                                     

to remove some spawners.

 

Then check again with countprefabs. If the number is 20 or below, stop. If not, keep using the command that deletes some of them.

If you delete too many of them you can always go to the desert and

c_spawn("tumbleweedspawner")

to put some invisible spawners under your cursor.

Okay. There were 1310 spawners before I started removing them. Now I got around 30, so it's fine. Thanks for that. But I still have a problem with already existing tumbleweeds. Is there any possible way to clear them from the world, I know there is a way to clear items from the ground with a mod but don't know if it can be done with tumbleweeds. If there is no way I will have to just manually open most of them I guess.

Actually same like said before - just replace "tumbleweedspawner" with "tumbleweed"

6 hours ago, DarkXero said:

 


for k,v in pairs(Ents) do if v.prefab == "tumbleweedspawner" and math.random() < 0.25 then v:Remove() end end
                      

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...