Page 1 of 1
How can mods be executed?

Posted:
Sun Apr 17, 2016 06:34
by burli
Hi,
I know that mods are executed when loading.
They can be registered for events with register_on_xxxx methods
They can be called in the main loop with register_globalstep()
Are there any other ways to call mods functions? I miss for example something like register_on_entity_move
Re: How can mods be executed?

Posted:
Sun Apr 17, 2016 10:46
by Krock
There are ABMs, functions in node/item and entity definitions and overwritten functions like minetest.is_protected() where that function is called to check if the area is protected.
What else would you need? register_on_globalstep does it completely.
I think the Minetest IRC channel on freenode is something you should visit to get instant answers for your questions.
Post #3200
Re: How can mods be executed?

Posted:
Sun Apr 17, 2016 12:37
by burli
I forgot the ABMs, right. Entities also have methods like on_punch.
I want a list of existing method calls from the system. I don't have the time to wait for answers in IRC, sorry. Asking in the forum is the better way for me to ask questions.
I know that I can implement everything in Lua, but some functions would be better implemented in C++