aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/register.lua
AgeCommit message (Collapse)Author
2022-12-24Add callback on_mapblocks_changedJude Melton-Houghton
2022-11-20Improve ABM and LBM registration error handling (#12969)Jude Melton-Houghton
2022-10-01Add an item pick up callback (2) (#7712)DS
Co-authored-by: SmallJoker <mk939@ymail.com> Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-08-12Fix crash when crafting callbacks return strings (#12685)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-07-04Add missing item alias metatables to async environment (#12458)sfan5
2022-05-09Fix Minetest blaming the wrong mod for errors (#12241)Lars Müller
Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
2021-07-09Add API for mods to hook liquid transformation events (#11405)Warr1024
Add API for mods to hook liquid transformation events Without this API, there is no reliable way for mods to be notified when liquid transform modifies nodes and mods are forced to poll for changes. This allows mods to detect changes to flowing liquid nodes and liquid renewal using event-driven logic.
2021-03-07Predict failing placement of ignore nodesWuzzy
2021-03-05Translate builtin (#10693)Wuzzy
This PR is the second attempt to translate builtin. Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
2021-02-17Fix short_description fallback order (#10943)rubenwardy
2021-01-21Removed some obsolete code (#10562)Zughy
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-11Implement on_rightclickplayer callback (#10775)JDiaz
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2020-11-10Do not set a default for description in itemdef table (#10559)DS
* Do not set a default for description in itemdef table * improve documentation
2020-10-09Add a short_description to be used by mods (#8980)DS
2020-10-03Lua API: Add register_on_chatcommand to SSM and CSM (#7862)Elijah Duffy
Allows catching a chatcommand call just after the command and the parameters are parsed but before its existence is checked and before the corresponding function is run. Returning `true` from a callback function will prevent default handling of the command leaving mods to handle the command manually.
2020-05-23Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)sorcerykid
Replace on_auth_fail callback with more versatile on_authplayer Better clarify account login process in Lua API documentation Change initial timestamp for newly registered accounts to -1
2019-10-29Change some usages of "deprecated" to "obsolete" (#9062)random-geek
"Deprecated" means that something is still in use, but is unsupported and needs to be removed. "Obsolete" means it is already out of use.
2019-09-22Punchwear (improved) (#8959)sfan5
2019-08-23Fix default hand definition not using wieldhand.pngWuzzy
2019-08-06Add luacheck to check builtin (#7895)rubenwardy
2019-07-27Check for 'action' field in ABMs & LBMsSmallJoker
2019-05-04builtin/../register.lua: Abort make_wrap_deregistration if param is invalidANAND
2018-06-10Fix typo (GH#7421)number Zero
2018-06-06CSM/SSM: Add on_mods_loaded callback (#7411)Loïc Blot
* CSM/SSM: Add on_mods_loaded callback
2018-05-20Fix missing ignore textures (#7326)you
2018-05-20Small usage changes for air and ignore items (#7305)Wuzzy
* Remove “you hacker you!” from node description * Prevent placement of ignore in builtin * Prevent giving of "unknown" explicitly
2018-04-02Add player inventory callbacksSmallJoker
2018-03-28Add reasons to on_dieplayer and on_hpchangeAndrew Ward
2018-02-18Fix "Ignoring CONTENT_IGNORE redefinition" warning (#4393)you
minetest.override_item still passes to core
2018-02-15Add `on_auth_fail` callback (#7039)red-001
Called when a client fails to supply the correct password for the account it's attempting to login as.
2017-09-26Implement mod communication channels (#6351)Loïc Blot
Implement network communication for channels * Implement ModChannel manager server side to route incoming messages from clients to other clients * Add signal handler switch on client & ModChannelMgr on client to handle channels * Add Lua API bindings + client packet sending + unittests * Implement server message sending * Add callback from received message handler to Lua API using registration method
2017-09-08Fix crash on revocation of removed privilegerubenwardy
2017-09-04Implement minetest.register_can_bypass_userlimit (#6369)Loïc Blot
* Implement minetest.register_on_userlimit_check This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP Only one mod needs to permit it. Move core part for builtin privileges checks to builtin
2017-08-29Fix mistake when calling on_priv_grant/revoke, and document them (#6341)rubenwardy
2017-08-27Lua API: Add function to deregister single biomes (#5445)zeuner
2017-08-26Add on_grant and on_revoke callbacks (#4713)rubenwardy
* Add register_on_priv_grant/revoke, and on_grant/revoke to privs. Call from /grant and /revoke * Call on_grant and on_revoke callbacks from set_privs
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.