1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-09 14:20:25 +02:00
server-nalc/mods/hunger/API.txt
LeMagnesium b6e44b4047 Manually applied hunger_split update
- Updated hud/hunger splitting while keeping our configuration and solving
  issues
2015-04-08 23:30:51 +02:00

10 lines
519 B
Plaintext

-- Register food with given values to change eating actions
hunger.register_food(name, saturation, replace_with_item, poisen, heal, sound)
-- name: item name, e.g. "default:apple"
-- saturation: amount of added saturation
-- replace_with_item: item name that get returned after eating (can be nil)
-- poisen: duration in seconds (1hp damage per second, player can't die) (can be nil)
-- heal: added HP when eating this food (can be nil)
-- sound: costum eating sound (replaces default eating sound) (can be nil)