Page 1 of 2

[Mod] Canned Food

Posted: Wed Nov 29, 2017 23:31
by h-v-smacker
The glass vessels are nearly unused throughout the game. This mod adds a reasonable purpose for at least the glass bottle: canning food. The term is used broadly, because it's more recognizable and because "preserved food in mason jars" doesn't have a nice ring to it.

The recipes involve putting various produce in glass bottles. The output is a mason jar with a color label and a golden lid, which can be placed on a flat surface much like any vessel can. It can be consumed as food, and leaves an empty glass bottle afterwards. It can be stored in a vessel shelf as well.

The food recipes involve variable number of ingredients, so more berries are needed to fill a jar than, say, pumpkin slices. Jams normally involve sugar, although those in 4 "default" recipes do not. It can also turn two otherwise inedible items into food. Finally, one can make jars of honey if bees from mobs_redo are available.

The reward for effort of canning is higher nutritional value (shelf life is meaningless in Minetest) compared to the total value of all ingredients involved.

A couple things I've left untapped for now, like chili peppers, potatoes, and onions. If someone would suggest a proper variety of canned (preserved) products with those ingredients, I'd be happy to oblige.

Also possible, but not introduced yet: recipes with 2 or more produce types. Largely because apart from rhubarb + strawberry jam, I cannot think of many iconic examples.

All dependencies are optional: farming redo, ethereal, mobs (specifically mobs_animals).

Github: https://github.com/h-v-smacker/canned_food

Image
canned_food.jpg
canned_food.jpg (121.13 KiB) Viewed 1347 times

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 00:34
by Chem871
Looks very nice! About time it happened, too :P

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 09:16
by Chibi ghost
interesting idea which farming mods are supporting this?

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 09:19
by h-v-smacker
Chibi ghost wrote:interesting idea which farming mods are supporting this?
So far farming redo. And fruits from Ethereal (not farming, but still). I probably will need to make a better mod detection scheme, because there is a handful of farming flavors.

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 11:36
by GamingAssociation39
Could you also make some canned food that has to be cooked? And is it possible to make it compatible with my mod as a cooking method via the oven or the microwave?

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 15:55
by Inocudom
I like this mod. The more decorative foods that Minetest has, the better. You should see if you can make nodebox or mesh models for those jars.

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 16:22
by h-v-smacker
Inocudom wrote:You should see if you can make nodebox or mesh models for those jars.
I will use the same draw types as the vessels mod, for consistency. It's an extension of vessels first and foremost.

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 17:15
by azekill_DIABLO
What an original idea :D We need a microwave too!

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 17:22
by GamingAssociation39
azekill_DIABLO wrote:What an original idea :D We need a microwave too!
He could make some food that can be cooked in the furnace, oven and the microwave. My oven and microwave need some work done to them to make them work properly but I think that it's a great idea.

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 17:30
by cx384
Welcome to the Minetest forum.
Your mod looks promising but you should follow the forum guidelines if you want to move your mod to mod releases.
(also helpful: rubenwardy's modding book)
Oh and you can use "[img]<url>[/img]" to show your picture at the forum.

Re: [Mod] Canned Food

Posted: Thu Nov 30, 2017 18:34
by Andrey01
The textures are painted fine.

Re: [Mod] Canned Food

Posted: Fri Dec 01, 2017 17:56
by azekill_DIABLO
GamingAssociation39 wrote:
azekill_DIABLO wrote:What an original idea :D We need a microwave too!
He could make some food that can be cooked in the furnace, oven and the microwave. My oven and microwave need some work done to them to make them work properly but I think that it's a great idea.
Super! maybe add some functionnalities and support (to food mods)!

Re: [Mod] Canned Food

Posted: Fri Dec 01, 2017 20:30
by gpcf
if someone gives me some cabbage plant textures, I'll make a sauerkraut mod.

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 01:21
by h-v-smacker
gpcf wrote:if someone gives me some cabbage plant textures, I'll make a sauerkraut mod.
No need. Just needs an ABM on top of some "cabbage in a jar"; I guess I could add it. Also will make cellars great again: you place jars with cabbage and wait.

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 08:10
by gpcf
Sadly, we don't have cabbage plants. :/

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 08:25
by h-v-smacker
gpcf wrote:Sadly, we don't have cabbage plants. :/
I have a dream... that one day, we will.

We can actually make it and submit a pull request to farming redo, if we're serious about it. The greatest issue would be the textures, otherwise it'll probably match some of the existing lua files 100% accurately.

Also if we go with ABMs, we can add some extra recipes for tomatoes or cucumbers, for example. Let them stand for a bit on a shelf, and they turn into marinated tomatoes and pickles (not very accurate, but a proper replacement for missing salt and vinegar).

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 13:00
by Chem871
There's cabbage in LOTTfarming, I think. It's either cabbage or lettuce.

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 14:39
by h-v-smacker
Chem871 wrote:There's cabbage in LOTTfarming, I think. It's either cabbage or lettuce.
Looks like an overkill to use that as a dependency.

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 14:42
by Chem871
Probably

Re: [Mod] Canned Food

Posted: Sat Dec 02, 2017 16:54
by Sokomine
The food look very nice. It'd be even better if it where 3d so that the food can be displayed ingame and not just eaten. Perhaps some compatibility with the fruit press would also be desirable. The press could be used to make jam.

Re: [Mod] Canned Food

Posted: Sun Dec 03, 2017 00:24
by h-v-smacker
Sokomine wrote: so that the food can be displayed ingame and not just eaten.
It can be displayed, just using the node draw type of the default vessels. It would be weird if applying something to a bottle shown as grass would turn it into a solid square block or even a detailed model suddenly.

Re: [Mod] Canned Food

Posted: Sun Dec 03, 2017 00:49
by GamingAssociation39
Maybe a 3d bottle can also be done. Just a suggestion :)

Re: [Mod] Canned Food

Posted: Sun Dec 03, 2017 01:02
by h-v-smacker
GamingAssociation39 wrote:Maybe a 3d bottle can also be done. Just a suggestion :)
I have a number of pull requests currently pending, some for over a month. I don't want to add new models for the vessels to the list.

Re: [Mod] Canned Food

Posted: Sun Dec 03, 2017 01:49
by GamingAssociation39
Oh ok let me know what I can do to help :)

Re: [Mod] Canned Food

Posted: Mon Dec 04, 2017 12:26
by h-v-smacker
OK, so here's the update: introduced the ABM as a mechanism for producing extra varieties. Turns "putting on a shelf" from a cosmetic operation into a production method. E.g.: Canned cucumbers → Pickles; Canned tomatoes → Marinated tomatoes; Canned mushrooms → Salted mushrooms. The "advanced" forms are marked with a checkered paper cover (or at least that is what it was supposed to look like) over the lid. Works slowly, but doubles the nutritional value.