[Mod] Simplest hunger mod yet [0.3] [hungry]

Post Reply
User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

[Mod] Simplest hunger mod yet [0.3] [hungry]

by Bas080 » Post

This hunger mod only takes away hunger when player is moving around or digging. So take that bathroom brake and make it as long as you like.

Adviced
Can be run on servers, no problem!
This mod uses hp of player so replace the "heart.png" with "default_apple.png" so it looks believable.
Make sure to install the latest fishing mod cause it's fun and it could make the difference between life or death!

Download

Configure
local distance_interval = 15 --set distance check interval in seconds
local hunger_per_meter = 1/500 --1 hp per 500 meter walk
local hunger_per_cubic = 1/100 --1 hp per 100 blocks dig

Changelog
0.2
- Fixed server crash on player leave
0.3
- If you have apples in inventory it will eat them instead of casuing damage to player

Depends
default

License
WTFPL for code
Sounds are from survival modpack

This is a working survival gameplay mechanic. ENJOY
Last edited by Bas080 on Sat Jul 27, 2013 14:26, edited 1 time in total.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

Fixed the server bug. It was triggered when a player left the world. Now it does work on servers.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests