[Mod] Diet [0.1] [diet]

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

[Mod] Diet [0.1] [diet]

by rubenwardy » Sun Apr 13, 2014 18:11

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)
Last edited by rubenwardy on Sat Jul 23, 2016 18:45, edited 7 times in total.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Apr 13, 2014 18:26

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 :)
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Apr 13, 2014 18:27

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Apr 13, 2014 19:01

[h]Update[/h]

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

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

by philipbenr » Sun Apr 13, 2014 19:37

This looks really good. The idea is pretty creative too. :) Nice work.
"The Foot is down!"
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Apr 13, 2014 19:41

Thank you :D
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sun Apr 13, 2014 20:32

What a great idea! This makes eating much more realistic and forces players to eat more than just one kind of food!
 

glenstein
New member
 
Posts: 3
Joined: Thu Mar 27, 2014 01:58

by glenstein » Tue Apr 15, 2014 19:38

would you consider adding support for sweet foods?
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Tue Apr 15, 2014 21:03

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.
Last edited by rubenwardy on Tue Apr 15, 2014 21:04, edited 1 time in total.
 

Martno
Member
 
Posts: 77
Joined: Thu May 28, 2015 07:09

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

by Martno » Thu Aug 13, 2015 16:54

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Thu Aug 13, 2015 18:44

It's a little outdated - I need to up date it. It supports better HUD (unless the API has changed)
 

Martno
Member
 
Posts: 77
Joined: Thu May 28, 2015 07:09

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

by Martno » Fri Aug 14, 2015 08:15

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.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Aug 14, 2015 08:24

 

Martno
Member
 
Posts: 77
Joined: Thu May 28, 2015 07:09

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

by Martno » Fri Aug 14, 2015 11:09

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.
 

tinkerlevu
Member
 
Posts: 15
Joined: Tue Sep 08, 2015 21:59

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

by tinkerlevu » Tue Jan 12, 2016 08:59

hey rubenwardy... can you add support for hudbars?
 

sys4
Member
 
Posts: 36
Joined: Thu Nov 26, 2015 13:57
GitHub: sys4-fr
IRC: sys4
In-game: sys4

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

by sys4 » Thu Jul 14, 2016 00:07

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.
 

User avatar
TheReaperKing
Member
 
Posts: 493
Joined: Sun Nov 22, 2015 21:36

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

by TheReaperKing » Fri Oct 07, 2016 04:10

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!
Project Lead of the Doom 3 Mod Last Man Standing - http://Doom3Coop.com

Project Lead of Platinum Arts Sandbox Free 3D Game Maker - http://SandboxGameMaker.com

Youtube Channel - https://www.youtube.com/user/PlatinumArtsKids
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Fri Oct 07, 2016 08:39

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
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 9 guests

cron