Mods / Compost from grass

Category: #Crafting #QoL
Author: mlmartin2
Side: Both
Created: Jan 11th at 3:04 AM
Last modified: Jan 12th at 12:13 AM
Downloads: 2192
Follow Unfollow 38

Latest file for Various v1.19.x:
grasscompost.zip 1-click install


Make compost from dry grass after sealing for 20 days

You can edit the time it takes by editing grasscompost.json, within the path 'assets\survival\recipes\barrel' of the mod zip.

    {
        code: "compost",
        sealHours: 1440, << Change this (in hours!)
        ingredients: [
                { type: "item", code: "drygrass", quantity: 64 }
            ],
        output: { type: "item", code: "compost", stackSize: 16
        }
    }  
 

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v1.0.0 1169 Jan 12th at 12:13 AM Show grasscompost.zip Install now
v1.0.0 899 Jan 11th at 3:05 AM Show compost from grass.zip Install now
v1.0.0 124 Jan 11th at 3:48 PM Show compostfromgrass3x.zip Install now

23 Comments (oldest first | newest first)

💬 LadyJade90, Jun 12th at 5:29 PM

the mod info json is missing when using 1 click install. i also needed to make the changes suggested by Astrelan to make it work. an update might be helpful if possible?

💬 Kief, May 29th at 8:50 PM

Is my brain not working or does 1440 hours = 60 days?

20 days would be 480?

Astrelan

Thanks for the fix!

gamingoninsulin

Maybe you created an extra dir during extraction or something.  The modinfo is right there, in the root.

💬 Astrelan, Mar 30th at 3:11 PM

So I've had this mod enabled for some time, but it never worked. I went in and edited it a bit and I think I found the problem, because it works now:

First, you're trying to add a recipe, not modify one in the game, so your first folder in your "assets" folder needs to be under the mod's name, i.e. "grasscompost". Then it can just go into the recipes folder and so on, it doesn't need the survival folder.

Second, though I'm not entirely sure if this did anything, but sometimes the game needs to be told that codes are in the game files and not your mod files. What this looks like is as follows, and I've bolded where I added this tidbit of code in your json:

{
code: "compost",
sealHours: 1440,
ingredients: [
{ type: "item", code: "game:drygrass", quantity: 64 }
],
output: { type: "item", code: "game:compost", stackSize: 16
}
}
 
Again, not sure if this second one does anything, because I did both fixes at the same time, but it works for me now.
 
Hope this helps improve your mod!
💬 gamingoninsulin, Mar 6th at 10:03 PM

hey i just download this mod but it not enabled because jou do not have a modinsfo.json in root dir ;) just letting you know so you can if you want fix it

💬 StraiteCash, Feb 1st at 7:04 AM

Many thanks to the good Pervy_Sage for commenting a fix, though I would like to propose quick correction to the code fix provided. It does not work if you solely add "game" to the code, however it does with an added ":" character between the words. For example simply putting "gamecompost" will not work, however putting "game:compost" will cause it to work. And you will need to do this on both items, "game:drygrass" and "game:compost. It's an easy fix and again thank you very much to Pervy_Sage and Billy Galbreath for their execellent troubleshooting!

💬 Pervy_Sage, Jan 28th at 5:00 PM

After receiving help from BillyGalbreath on the discord, if "{ type: "item", code: "drygrass", quantity: 64 }" and "output: { type: "item", code: "compost", stackSize: 16" is changed to include "game" before before the item name it will work.

💬 Pervy_Sage, Jan 26th at 3:32 PM

Yep, removed all other mods and it doesn't work in 1.19.1.

💬 DejFidOFF, Jan 23rd at 7:34 AM

Not working for me @SMP 1.19.1

💬 Xeros08, Jan 21st at 4:23 PM

server-main.txt

1.2024 16:18:20 [Warning] Failed resolving crafting recipe ingredient with code survival:drygrass in barrel recipe survival:recipes/barrel/grasscompost.json
21.1.2024 16:18:20 [Warning] Failed resolving a blocks itemdrop or smeltedstack with code survival:compost in barrel recipe survival:recipes/barrel/grasscompost.json


This is a log from 1.19.1:
Mod aint working

💬 BlackD, Jan 20th at 6:35 PM

Aristine

Huh. Works. Thank you!

💬 Aristine, Jan 19th at 9:05 PM

For anyone unable to load the mod, make sure you download the grasscompost.zip instead of 1-click installing

@mlmartin2

To fix the 1-click install, you need to upload your fixed release as a higher version than 1.0.0, or delete the old broken releases.

 

💬 HellToKitty, Jan 18th at 8:11 PM

@ BlackD Oh interesting I didn't know that. 

💬 BlackD, Jan 17th at 5:38 PM

HellToKitty

Of course you can. You can make compost out of basically every plant matter. Here's a more modern approach, wich actually uses a """barrel""" too: https://www.hotbincomposting.com/blog/how-to-compost-grass.html

 

💬 HellToKitty, Jan 16th at 6:48 PM

Why? You can't make comopst out of grass in reality either.

💬 Pamphy, Jan 16th at 6:27 PM

im also unable to load the mod. Anyone know why this is?

💬 BlackD, Jan 15th at 10:28 AM

Game tells me "Unable to load mod"
Im on the correct game version and not using anything that would conflict with this mod.

💬 mlmartin2Author, Jan 12th at 4:15 AM

Hello Mohandar

Id have to look into it, as I'm new to modding. I hadn't read the guide, just figured out from the items already present in game.

Should be easy to do, though, as the plants are of the same type 'plant', it seems

I might update it to something along the lines of what bringitonwimps said

Step 1: leave dry grass to turn into rot inside the barrell

Step 2: normally convert rot to compost

 

💬 Mohandar, Jan 12th at 1:57 AM

mlmartin2
Great mod concept!! I was wishing to do something like this some week ago but my skills in modding are very poor  :l
btw 
Any chance that other plants (and modded plants) gets an "integration" to be compostable as well?

💬 bringitonwimps, Jan 12th at 12:51 AM

sorry i went to bed and couldnt respond on phone because for some reason it opens text box an i lose the post button... anyways, yes to that or just an any number for multiplier wouyld also be cool.  I'm open to whatever, it's your mod.  i just think 20 days to turn rather easy to gather grass to basiccaly terra preta as compost is the only real challenge there may be too easy.  but also i have friends who wont play vintage cause "it's too hard" and i add all the "hard mods"...lol

💬 Maltiez, Jan 11th at 4:26 PM

Please pack your mod properly: https://wiki.vintagestory.at/index.php/Modding:Mod_Packaging
I also not sure how you were able to upload it

💬 mlmartin2Author, Jan 11th at 3:50 PM

bringitonwimps

💬 mlmartin2Author, Jan 11th at 3:31 PM

Hello, friend. I'd be happy to make another version for you; I'm sure it would also benefit others. How about x1.5, x2.0, x3.0 for multipliers on original time? (30 days, 40 days, 60 days)

💬 bringitonwimps, Jan 11th at 6:03 AM

is the length editable? I dont mind this idea but to me it seams like unlimited terra preta is 20 days away.  so im wondering if the length to change not rotted grass to rotted and then compost should be a lot longer.  I also understand not everyone would care or want that.  So if it doesnt have it a config to set the length of time to make the compost might be a good idea.  I would then use the mod probably but make the time much extended.  IDK just an idea.

(edit comment delete)