Is "minetest" library, table or folder?

Post Reply
User avatar
Andrey01
Member
Posts: 2577
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Is "minetest" library, table or folder?

by Andrey01 » Post

For example, when we are calling the function minetest.register_node(), what does "minetest" mean? I would assume this is a table, because there`s field "register_node" refers to the function where it is created in "minetest" table.

Although, for example math.abs() function looks like "math" is a library where abs() function is defined.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: Is "minetest" library, table or folder?

by rubenwardy » Post

Both math and minetest are tables, however the math table is defined by the math library
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests