@@ -3329,13 +3329,15 @@ Registered entities
3329
3329
* It has the member `.object`, which is an `ObjectRef` pointing to the object
3330
3330
* The original prototype stuff is visible directly via a metatable
3331
3331
* Callbacks:
3332
- * `on_activate(self, staticdata)`
3332
+ * `on_activate(self, staticdata, dtime_s )`
3333
3333
* Called when the object is instantiated.
3334
+ * `dtime_s` is the time passed since the object was unloaded, which can
3335
+ be used for updating the entity state.
3334
3336
* `on_step(self, dtime)`
3335
3337
* Called on every server tick, after movement and collision processing.
3336
3338
`dtime` is usually 0.1 seconds, as per the `dedicated_server_step` setting
3337
3339
`in minetest.conf`.
3338
- * `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir`
3340
+ * `on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir) `
3339
3341
* Called when somebody punches the object.
3340
3342
* Note that you probably want to handle most punches using the
3341
3343
automatic armor group system.
@@ -3463,7 +3465,7 @@ Definition tables
3463
3465
3464
3466
on_activate = function(self, staticdata, dtime_s),
3465
3467
on_step = function(self, dtime),
3466
- on_punch = function(self, hitter ),
3468
+ on_punch = function(self, puncher, time_from_last_punch, tool_capabilities, dir ),
3467
3469
on_rightclick = function(self, clicker),
3468
3470
get_staticdata = function(self),
3469
3471
-- ^ Called sometimes; the string returned is passed to on_activate when
0 commit comments