From c8d9ab48c7cf8ee1b9fdd3a8c91687d1571b19a2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 22 Feb 2017 13:33:45 +0100 Subject: [PATCH] API: Hint about mcl_hunger var --- mods/PLAYER/mcl_hunger/API.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/PLAYER/mcl_hunger/API.md b/mods/PLAYER/mcl_hunger/API.md index 38a643f3..eb7710fc 100644 --- a/mods/PLAYER/mcl_hunger/API.md +++ b/mods/PLAYER/mcl_hunger/API.md @@ -3,6 +3,11 @@ This API information is WIP. The mod API is still pretty much unofficial; this mod is mostly seen as standalone for now. This may change in the future development of MineClone 2. Hopefully. +## Before using this mod +This mod is a no-op when the game is started with damage disabled. +Before using any of the functions, first check if global variable +“`mcl_hunger`” is present. + ## Hunger level The hunger level of the player is a whole number between 0 and 20 inclusive. 0 is starving and 20 is full. The hunger level is represented in