diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-02 11:51:41 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-02 11:51:41 +0200 |
commit | e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8 (patch) | |
tree | 6dee9b82a6569104630056d902e77cca5fbda2a4 /data/mods | |
parent | ed128fff263432f46cfbbc90657682b3c2c17132 (diff) | |
download | minetest-e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8.tar.gz minetest-e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8.tar.bz2 minetest-e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8.zip |
Add time_from_last_punch to Lua API
Diffstat (limited to 'data/mods')
-rw-r--r-- | data/mods/default/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index c6c679b63..6788defa2 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -104,7 +104,9 @@ -- - getpos() -> {x=num, y=num, z=num} -- - setpos(pos); pos={x=num, y=num, z=num} -- - moveto(pos, continuous=false): interpolated move --- - punch(puncher); puncher = an another ObjectRef +-- - punch(puncher, time_from_last_punch) +-- ^ puncher = an another ObjectRef, +-- ^ time_from_last_punch = time since last punch action of the puncher -- - right_click(clicker); clicker = an another ObjectRef -- - get_wield_digging_properties() -> digging property table -- - add_to_inventory_later(itemstring): like above, but after callback returns (only allowed for craftitem callbacks) |