Global tables

_G
List of current globals

tables:

os
A table of functions

table
A table of functions

string
A table of functions

coroutine
A table of functions

debug
A table of functions

bit
A table of functions

privs
A table of privileges maybe same as

core
same as

default
Some of these functions will be removed in 0.4.17, see game_api for new functions.

vector
See vector

minetest.features
See minetest.features.

minetest.timers
A table of tables of a time, function and function arguments used for minetest.after, e.g.

minetest.timers_to_add
A table similar to, its content becomes added to at the next globalstep.

minetest.object_refs
List of object references, indexed by active object id

minetest.luaentities
List of lua entities, indexed by active object id

minetest.chatcommands
List of chatcommands, indexed by command name

minetest.rollback_punch_callbacks
List of minetest rollback punch callbacks

minetest.detached_inventories
List of detached inventories

minetest.nodedef_default
List of default values used for minetest.register_node

minetest.craftitemdef_default
List of default values used for minetest.register_craftitem

minetest.tooldef_default
List of default values used for minetest.register_tool

minetest.noneitemdef_default
List of something...

minetest.registered_items
List of registered items, indexed by name

minetest.registered_nodes
List of registered node definitions, indexed by name

minetest.registered_craftitems
List of registered craft item definitions, indexed by name

minetest.registered_tools
List of registered tool definitions, indexed by name

minetest.registered_entities
List of registered entity prototypes, indexed by name

minetest.registered_playerevents
List of minetest.register_playerevents

minetest.registered_privileges
List of minetest.register_privileges

minetest.registered_globalsteps
List of minetest.register_globalsteps

minetest.registered_abms
List of minetest.register_abms

minetest.registered_aliases
List of minetest.register_aliases

minetest.registered_biomes
List of minetest.register_biomes

minetest.registered_craft_predicts
List of minetest.register_craft_predicts

minetest.registered_on_crafts
List of minetest.register_on_crafts

minetest.registered_on_mapgen_inits
List of minetest.register_on_mapgen_inits

minetest.registered_on_generateds
List of minetest.register_on_generateds If you want to make your mod generate something before the other mods do it, you can insert a mapgen function at the beginning of this table:

minetest.registered_on_item_eats
List of minetest.register_on_item_eats

minetest.registered_on_protection_violation
List of minetest.register_on_protection_violations

minetest.registered_on_player_receive_fields
List of minetest.register_on_player_receive_fieldss

minetest.registered_on_chat_messages
List of minetest.register_on_chat_messages

minetest.registered_on_prejoinplayers
List of minetest.register_on_prejoinplayers

minetest.registered_on_newplayers
List of minetest.register_on_newplayers

minetest.registered_on_joinplayers
List of minetest.register_on_joinplayers

minetest.registered_on_respawnplayers
List of minetest.register_on_respawnplayers

minetest.registered_on_dieplayers
List of minetest.register_on_dieplayers

minetest.registered_on_leaveplayers
List of minetest.register_on_leaveplayers

minetest.registered_on_shutdown
List of minetest.register_on_shutdowns

minetest.registered_on_cheats
List of minetest.register_on_cheats

minetest.registered_on_dignodes
List of minetest.register_on_dignodes

minetest.registered_on_placenodes
List of minetest.register_on_placenodes

minetest.registered_on_punchnodes
List of minetest.register_on_punchnodes