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: 2265
Follow Unfollow 39
Author: mlmartin2
Side: Both
Created: Jan 11th at 3:04 AM
Last modified: Jan 12th at 12:13 AM
Downloads: 2265
Follow Unfollow 39
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 | 1212 | Jan 12th at 12:13 AM | Show | grasscompost.zip | Install now | |
v1.0.0 | 920 | Jan 11th at 3:05 AM | Show | compost from grass.zip | Install now | |
v1.0.0 | 133 | Jan 11th at 3:48 PM | Show | compostfromgrass3x.zip | Install now |
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?
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.
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:
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
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!
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.
Yep, removed all other mods and it doesn't work in 1.19.1.
Not working for me @SMP 1.19.1
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
Aristine
Huh. Works. Thank you!
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.
@ BlackD Oh interesting I didn't know that.
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
Why? You can't make comopst out of grass in reality either.
im also unable to load the mod. Anyone know why this is?
Game tells me "Unable to load mod"
Im on the correct game version and not using anything that would conflict with this mod.
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
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?
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
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
bringitonwimps
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)
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.