diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-30 20:38:55 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-30 20:38:55 +0200 |
commit | d26e19a296e049085bf56ca09c5b8ae26d32524d (patch) | |
tree | 15c8fdc88dbe87e6c8895846a7fcbaa94a50f83e /data/mods/default/init.lua | |
parent | a244e367ea81aaa5507316dca7b5268078374864 (diff) | |
download | minetest-d26e19a296e049085bf56ca09c5b8ae26d32524d.tar.gz minetest-d26e19a296e049085bf56ca09c5b8ae26d32524d.tar.bz2 minetest-d26e19a296e049085bf56ca09c5b8ae26d32524d.zip |
List added functions in default/init.lua
Diffstat (limited to 'data/mods/default/init.lua')
-rw-r--r-- | data/mods/default/init.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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) |