diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-30 20:36:07 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-30 20:36:07 +0200 |
commit | a244e367ea81aaa5507316dca7b5268078374864 (patch) | |
tree | ee1cc4ba0c74c7d7bf993f042152edf488f17ebc /data/mods | |
parent | 347216d654e6f284119d9473db03e3393002b286 (diff) | |
download | minetest-a244e367ea81aaa5507316dca7b5268078374864.tar.gz minetest-a244e367ea81aaa5507316dca7b5268078374864.tar.bz2 minetest-a244e367ea81aaa5507316dca7b5268078374864.zip |
Add get_wielded_itemstring, get_wielded_item, damage_wielded_item and make getacceleration visible in API
Diffstat (limited to 'data/mods')
-rw-r--r-- | data/mods/default/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index f9c4c8231..20f3038c8 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -85,6 +85,10 @@ -- - 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) -- - set_hp(hp): set number of hitpoints (2 * number of hearts) +-- LuaEntitySAO-only: +-- - setvelocity(self, {x=num, y=num, z=num}) +-- - setacceleration(self, {x=num, y=num, z=num}) +-- - getacceleration(self) -- - settexturemod(mod) -- - setsprite(p={x=0,y=0}, num_frames=1, framelength=0.2, -- - select_horiz_by_yawpitch=false) |