aboutsummaryrefslogtreecommitdiff
path: root/data/mods
diff options
context:
space:
mode:
Diffstat (limited to 'data/mods')
-rw-r--r--data/mods/default/init.lua4
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)