From e8b0722137b47b9b17cef94a9a9f0f52d03f4ea8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 2 Dec 2011 11:51:41 +0200 Subject: Add time_from_last_punch to Lua API --- data/mods/default/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data') 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) -- cgit v1.2.3