From d26e19a296e049085bf56ca09c5b8ae26d32524d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Wed, 30 Nov 2011 20:38:55 +0200 Subject: [PATCH] List added functions in default/init.lua --- data/mods/default/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 20f3038c8..0e42974ef 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -81,6 +81,9 @@ -- - getpos(): returns {x=num, y=num, z=num} -- - setpos(pos); pos={x=num, y=num, z=num} -- - moveto(pos, continuous=false): interpolated move +-- - get_wielded_itemstring() +-- - get_wielded_item() +-- - damage_wielded_item(num) (item damage/wear range is 0-65535) -- - add_to_inventory(itemstring): add an item to object inventory -- - add_to_inventory_later(itemstring): like above, but after callback returns (only allowed for craftitem callbacks) -- - get_hp(): returns number of hitpoints (2 * number of hearts) -- 2.25.1