summaryrefslogtreecommitdiff
path: root/builtin/game/register.lua
AgeCommit message (Collapse)Author
2017-02-10Add textures for air and ignore items (#5196)Wuzzy
2016-09-21Builtin: Change error to warning for light_source > 14paramat
2016-09-17Register.lua: Throw error if node 'light_source' > core.LIGHT_MAXparamat
Add 'core.LIGHT_MAX = 14' to builtin/game/constants.lua with the intention to replace misplaced 'default.LIGHT_MAX = 14' in Minetest Game. Add comment in light.h requiring the constant be changed in both places. Add lighting bug warning to note in lua_api.txt. There are hundreds of mod uses of 15 which causes a lighting bug.
2016-09-08Add minetest.unregister_item and minetest.register_alias_forcepaly2
2016-03-07Add minetest.register_lbm() to run code on block load onlyest31
2016-03-06Faster insertion into tableRui914
2016-01-07Liquids: Flow into and destroy 'floodable' nodesparamat
Add new node property 'floodable', default false Define "air" as floodable = true in C++ and lua
2015-12-02Add on_secondary_use when right clicking an item in the airAlex Ford
2015-11-24Simplify regex used in check_modname_prefix and other improvements.Robert Zenz
Simplified the regex used, added comments and changed the error message to contain the correct mod name.
2015-10-14Refactor loggingShadowNinja
- Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
2015-08-12SAPI: Track last executed mod and include in error messageskwolekr
2015-06-13Add minetest.register_on_player_hpchangeTeTpaAka
2015-05-15Add minetest.register_on_punchplayerBrandon
2015-04-26Fix minetest.clear_* creating new LOCAL table instead of clearing the ↵Tomas Brod
existing one. On calling clear_redistered_biomes the registered_biomes table is cleared by creating a new empty table, but the pointer is not updated to point to the new one. So after calling more register_biome, the registered_biome table always contains 0 items, which is an error. Instead, the table is cleared by removing all its items so the pointer (minetest.registered_*) remains valid.
2015-01-13builtin: Unify register wrapper functions and wrap clear_registered_* ↵kwolekr
functions too
2015-01-05Add registered_ores and registered_decorationsShadowNinja
2014-12-29Expose mapgen parameters on scripting initkwolekr
Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()
2014-05-26Add item eat callbackrubenwardy
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja