From 30fea241d0d71e3bf8b70dd03ad12857d94841fc Mon Sep 17 00:00:00 2001 From: BlockMen Date: Thu, 2 Apr 2015 16:04:15 +0200 Subject: Initial commit --- API.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 API.txt (limited to 'API.txt') diff --git a/API.txt b/API.txt new file mode 100644 index 0000000..9b350ff --- /dev/null +++ b/API.txt @@ -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) -- cgit v1.2.3