Jump to content

Recommended Posts

HELLO

I am here to ask if anyone would be interested in putting their precious time into developing a simple mod that makes seeds NOT spoil into rot- rather, it just disappears into nothingness. I'd like it because in late game theres just so much rot everywhere in the world, like, a stack of 8 rot every step you take (okay maybe not that much but it comes close!) and at that point in the game I always already have like 9 stacks of rot in a chest SO yeaaaaa

So if anyone knows how- and is willing to do do this, it would be greatly appreciated B]

 

Edit: Found it out, read post below

Edited by RyanandLink
title change

I'm new to modding, but this is the simplest way (kinda hackish too) I could think of:

  1. Create a new folder inside your mods folder, something like this:
    "C:\Program Files (x86)\Steam\steamapps\common\dont_starve\mods\Seeds do not rot"
  2. Inside this folder, create two files, "modinfo.lua" and modmain.lua.
  3. Inside modinfo.lua, place this:
    name = "Seed do not turn into rot"
    description = "They just disappear"
    author = "me"
    version = "1.0"
    forumthread = ""
    dont_starve_compatible = true
    reign_of_giants_compatible = true
    shipwrecked_compatible = true
    api_version = 6

    And inside modmain.lua, place this:

    local function noperish(inst)
    	inst.components.perishable.onperishreplacement = "raindrop"
    end
    
    AddPrefabPostInit("seeds", noperish)

     

That's it, you should be able to start your game and activate the mod.

The onperishplacement will swap your seeds with a raindrop. Raindrops make a small water splash animation and them get deleted.

As this is a hackish way to do it, the seeds that are on your inventory are also going to disappear.

NEVERMIND I'm smart and thought this would need more in-depth modding skills, but it's literally changing one line in seeds.lua.

 

If someone else would like this for themselves, all you gotta do is 

Spoiler

Change


	inst.components.perishable.onperishreplacement = "spoiled_food"

into


	inst.components.perishable.onperishreplacement = ""

and boom world is unlittered! (only works with seeds that still have to spoil, rot that is already lying around in your world won't disappear with this)

 

 

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...