Add on_object_add callback

This commit is contained in:
Elias Fleckenstein
2021-05-11 19:15:23 +02:00
parent 4f613bbf51
commit b7abc8df28
5 changed files with 24 additions and 2 deletions

View File

@@ -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