Page 1 of 1

[Mod] Diet [0.1] [diet]

PostPosted: Sun Apr 13, 2014 18:11
by rubenwardy

Diet Mod


This mod adds a motive to make lots of different types of food.
Eating a food that you have eaten lots reduces its effect.

For example, if the last 5 things you ate were chocolate cakes, then eating another chocolate cakes would only give half its health points.
You receive messages like "Your stomach hates chocolate cake" and "Your stomach could do with a change".

Supports Better HUD.

+ Supported food


Download


Dependencies: none. Optionally depends on the above list of supported mods.
License: CC0

Download
... browse the code

+ Mod devs: Supporting this mod. You don't need to depend!


To do


  • Add nutrients such as proteins - You need to get all nutrients to gain health.
  • balanced diets: making one food healing lots of HP while reducing speed a bit, other increasing speed a bit at the cost of jump height, etc. (kaeza)

PostPosted: Sun Apr 13, 2014 18:26
by kaeza
You could make it a necessity to have a balanced diet, by e.g. making one food healing lots of HP while reducing speed a bit, other increasing speed a bit at the cost of jump height, etc.

Anyway, this is nice :)

PostPosted: Sun Apr 13, 2014 18:27
by rubenwardy
kaeza wrote:You could make it a necessity to have a balanced diet, by e.g. making one food healing lots of HP while reducing speed a bit, other increasing speed a bit at the cost of jump height, etc.

Anyway, this is nice :)


I like those ideas.

PostPosted: Sun Apr 13, 2014 19:01
by rubenwardy
[h]Update[/h]

  • Added support for Better Hud
  • Added support for all the foods Better Hud supports

PostPosted: Sun Apr 13, 2014 19:37
by philipbenr
This looks really good. The idea is pretty creative too. :) Nice work.

PostPosted: Sun Apr 13, 2014 19:41
by rubenwardy
Thank you :D

PostPosted: Sun Apr 13, 2014 20:32
by webdesigner97
What a great idea! This makes eating much more realistic and forces players to eat more than just one kind of food!

PostPosted: Tue Apr 15, 2014 19:38
by glenstein
would you consider adding support for sweet foods?

PostPosted: Tue Apr 15, 2014 21:03
by rubenwardy
It is supported.

Food mod (2.2 or later) and expansions.

Sweet foods is an expansion. I will add it to the list though, to make it clear.

Re: [Mod] Diet [0.1] [diet]

PostPosted: Thu Aug 13, 2015 16:54
by Martno
Hi.
This is great idea, because without this, no motivation to eat or cook various kind of foods. I needed this mod so much. So this is awesome.
One question: is this mod supports any hunger mod? I tried with hbhunger and it seems that it doesn't work (my hunger didn't change at all). Didn't try Better HUD and hunger though.

Re: [Mod] Diet [0.1] [diet]

PostPosted: Thu Aug 13, 2015 18:44
by rubenwardy
It's a little outdated - I need to up date it. It supports better HUD (unless the API has changed)

Re: [Mod] Diet [0.1] [diet]

PostPosted: Fri Aug 14, 2015 08:15
by Martno
Doesn't work with Better HUD either. I got this error:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
10:00:11: ACTION[ServerThread]: singleplayer uses default:apple, pointing at [nothing]
10:00:11: ERROR[main]: ServerError: ...e1m519\Desktop\Minetest 0.4.12\bin\..\mods\diet\init.lua:81: attempt to index field 'hunger' (a nil value)
10:00:11: ERROR[main]: stack traceback:
10:00:11: ERROR[main]:    ...e1m519\Desktop\Minetest 0.4.12\bin\..\mods\diet\init.lua:81: in function <...e1m519\Desktop\Minetest 0.4.12\bin\..\mods\diet\init.lua:27>


If you could update this mod, it would be fantastic. Seems that diet is not very popular, I don't know why, I think it's great.

Re: [Mod] Diet [0.1] [diet]

PostPosted: Fri Aug 14, 2015 08:24
by rubenwardy

Re: [Mod] Diet [0.1] [diet]

PostPosted: Fri Aug 14, 2015 11:09
by Martno
rubenwardy wrote:it should work now...

https://github.com/rubenwardy/diet/comm ... 56a3f1a76d

Thanks, but unfortunately I still have the same error. I tried when other mods were enabled, and tried with new world with just diet and better hud and hunger enabled. Same error :(

Actually with hudbars and hbhunger (instead of better hud) diet works, I got the "your stomach could do with a change" message (after I ate more than 5 food from same type), but hunger bar doesn't change.

Re: [Mod] Diet [0.1] [diet]

PostPosted: Tue Jan 12, 2016 08:59
by tinkerlevu
hey rubenwardy... can you add support for hudbars?

Re: [Mod] Diet [0.1] [diet]

PostPosted: Thu Jul 14, 2016 00:07
by sys4
I have made a fork located here : https://github.com/sys4-fr/diet

The compatibility issue whith hud+hunger is fixed.
Added hbhunger (hudbars) support.

Re: [Mod] Diet [0.1] [diet]

PostPosted: Fri Oct 07, 2016 04:10
by TheReaperKing
So I think this mod is fantastic and I'm using it with the exertion mod and crops mod. Would it be possible to make it compatible with the Mobs redo mod? Meat doesn't seem to work and also it doesn't take many apples for them to not be tolerated anymore. Wouldn't they just have reduced effect vs no effect?

I'm using this with my students and I think it is such a great way to teach them about diet and nutrition. Thank you so much for creating it!

Re: [Mod] Diet [0.1] [diet]

PostPosted: Fri Oct 07, 2016 08:39
by rubenwardy
TheReaperKing wrote:So I think this mod is fantastic and I'm using it with the exertion mod and crops mod. Would it be possible to make it compatible with the Mobs redo mod? Meat doesn't seem to work and also it doesn't take many apples for them to not be tolerated anymore. Wouldn't they just have reduced effect vs no effect?


I have a look into these when I can get around to it. I haven't maintained this mod in a while

TheReaperKing wrote:I'm using this with my students and I think it is such a great way to teach them about diet and nutrition. Thank you so much for creating it!


Please note that this is not meant to be accurate at all - if it was, then it would similar micros and macros, etc