Like kaeza said there are lots of portability problems. If you want to use an external library anybody who wants to run your mod on their computer or server will be required to install the external library. I was working on a mod that needed socket access.
On ubuntu I just had to install the socket library
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Then in my lua code it was just one line to include functionality from the socket library
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Note: I have not worked on this since Minetest started using LuaJIT, but I assume it should work the same.