From 37386b9c3cfc6746734f8c00fa99a44a63b8aeed Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 4 Dec 2022 12:35:14 +0100 Subject: Expose dtime_s to LBM handler --- doc/lua_api.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index e8e32c536..e017df880 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -7972,8 +7972,10 @@ gets activated (not loaded!) -- and not only the first time the block gets activated after the LBM -- was introduced. - action = function(pos, node), + action = function(pos, node, dtime_s), -- Function triggered for each qualifying node. + -- `dtime_s` is the in-game time (in seconds) elapsed since the block + -- was last active } Tile definition -- cgit v1.2.3