aboutsummaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-05-11 19:15:23 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-05-11 19:15:23 +0200
commitb7abc8df281390b1fb5def31866086029209aa67 (patch)
tree648a3e1b4922c1912f1503043e613f34a0a32e38 /doc/client_lua_api.txt
parent4f613bbf5118ebe8c3610514e7f4206e930783bf (diff)
downloaddragonfireclient-2021.05.tar.xz
Add on_object_add callback2021.05
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index e33fe0e3a..a02a281f5 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -763,6 +763,8 @@ Call these functions only at load time!
* Called when recieving a spawn particle command from server
* Newest functions are called first
* If any function returns true, the particle does not spawn
+* `minetest.register_on_object_add(function(obj))`
+ * Called every time an object is added
* `minetest.register_on_object_properties_change(function(obj))`
* Called every time the properties of an object are changed server-side
* May modify the object's properties without the fear of infinite recursion