diff options
author | BlockMen <nmuelll@web.de> | 2015-04-02 16:04:15 +0200 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2015-04-03 12:31:11 +0200 |
commit | 30fea241d0d71e3bf8b70dd03ad12857d94841fc (patch) | |
tree | d6f9284600c7a9aacf4eddc3e6690c5d4f2fb398 /API.txt |
Initial commitv1.0
Diffstat (limited to 'API.txt')
-rw-r--r-- | API.txt | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,9 @@ +-- 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) |