Page 1 of 1

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

PostPosted: Wed Jul 24, 2013 14:40
by Bas080
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

PostPosted: Wed Jul 24, 2013 19:46
by Bas080
Fixed the server bug. It was triggered when a player left the world. Now it does work on servers.