How to access a mods functions
Edit: using Minetest 0.4.9 on an Ubuntu system.
Hi there,
how do I access the functions of a mod?
For example the tube_item function of pipeworks.
My mod, at this point, simply consists out of these 2 files.
depends.txt:
init.lua:
this prints:
So, where do I get that pipeworks object from?
Thanks in advance.
Hi there,
how do I access the functions of a mod?
For example the tube_item function of pipeworks.
My mod, at this point, simply consists out of these 2 files.
depends.txt:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
default
pipeworks
init.lua:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
print("pipeworks is: "..dump(pipeworks))
this prints:
pipeworks is: nil
So, where do I get that pipeworks object from?
Thanks in advance.