aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/register.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Hax's version of Minetest Server 5.6.0Test_User2024-06-281-2/+18
|
* Add missing item alias metatables to async environment (#12458)sfan52022-07-041-1/+1
|
* Fix Minetest blaming the wrong mod for errors (#12241)Lars Müller2022-05-091-5/+9
| | | Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
* Add API for mods to hook liquid transformation events (#11405)Warr10242021-07-091-0/+1
| | | | | | | | | 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.
* Predict failing placement of ignore nodesWuzzy2021-03-071-0/+1
|
* Translate builtin (#10693)Wuzzy2021-03-051-4/+6
| | | | | 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.
* Fix short_description fallback order (#10943)rubenwardy2021-02-171-4/+0
|
* Removed some obsolete code (#10562)Zughy2021-01-211-7/+0
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Implement on_rightclickplayer callback (#10775)JDiaz2021-01-111-0/+1
| | | Co-authored-by: rubenwardy <rw@rubenwardy.com>
* Do not set a default for description in itemdef table (#10559)DS2020-11-101-3/+1
| | | | | * Do not set a default for description in itemdef table * improve documentation
* Add a short_description to be used by mods (#8980)DS2020-10-091-0/+6
|
* Lua API: Add register_on_chatcommand to SSM and CSM (#7862)Elijah Duffy2020-10-031-0/+1
| | | | | | | 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.
* Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)sorcerykid2020-05-231-1/+1
| | | | | | 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
* Change some usages of "deprecated" to "obsolete" (#9062)random-geek2019-10-291-4/+4
| | | | "Deprecated" means that something is still in use, but is unsupported and needs to be removed. "Obsolete" means it is already out of use.
* Punchwear (improved) (#8959)sfan52019-09-221-0/+12
|
* Fix default hand definition not using wieldhand.pngWuzzy2019-08-231-0/+1
|
* Add luacheck to check builtin (#7895)rubenwardy2019-08-061-8/+3
|
* Check for 'action' field in ABMs & LBMsSmallJoker2019-07-271-0/+2
|
* builtin/../register.lua: Abort make_wrap_deregistration if param is invalidANAND2019-05-041-3/+10
|
* Fix typo (GH#7421)number Zero2018-06-101-1/+1
|
* CSM/SSM: Add on_mods_loaded callback (#7411)Loïc Blot2018-06-061-0/+1
| | | | | * CSM/SSM: Add on_mods_loaded callback
* Fix missing ignore textures (#7326)you2018-05-201-9/+1
|
* Small usage changes for air and ignore items (#7305)Wuzzy2018-05-201-2/+9
| | | | | | * Remove “you hacker you!” from node description * Prevent placement of ignore in builtin * Prevent giving of "unknown" explicitly
* Add player inventory callbacksSmallJoker2018-04-021-0/+2
|
* Add reasons to on_dieplayer and on_hpchangeAndrew Ward2018-03-281-3/+3
|
* Fix "Ignoring CONTENT_IGNORE redefinition" warning (#4393)you2018-02-181-1/+9
| | | minetest.override_item still passes to core
* Add `on_auth_fail` callback (#7039)red-0012018-02-151-0/+1
| | | Called when a client fails to supply the correct password for the account it's attempting to login as.
* Implement mod communication channels (#6351)Loïc Blot2017-09-261-0/+1
| | | | | | | | | | 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
* Fix crash on revocation of removed privilegerubenwardy2017-09-081-2/+3
|
* Implement minetest.register_can_bypass_userlimit (#6369)Loïc Blot2017-09-041-0/+1
| | | | | | | | | * 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
* Fix mistake when calling on_priv_grant/revoke, and document them (#6341)rubenwardy2017-08-291-2/+2
|
* Lua API: Add function to deregister single biomes (#5445)zeuner2017-08-271-0/+15
|
* Add on_grant and on_revoke callbacks (#4713)rubenwardy2017-08-261-3/+15
| | | | | | * 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
* Add textures for air and ignore items (#5196)Wuzzy2017-02-101-4/+4
|
* Builtin: Change error to warning for light_source > 14paramat2016-09-211-1/+3
|
* Register.lua: Throw error if node 'light_source' > core.LIGHT_MAXparamat2016-09-171-0/+3
| | | | | | | | 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.
* Add minetest.unregister_item and minetest.register_alias_forcepaly22016-09-081-0/+38
|
* Add minetest.register_lbm() to run code on block load onlyest312016-03-071-1/+9
|
* Faster insertion into tableRui9142016-03-061-4/+4
|
* Liquids: Flow into and destroy 'floodable' nodesparamat2016-01-071-0/+1
| | | | | Add new node property 'floodable', default false Define "air" as floodable = true in C++ and lua
* Add on_secondary_use when right clicking an item in the airAlex Ford2015-12-021-0/+1
|
* Simplify regex used in check_modname_prefix and other improvements.Robert Zenz2015-11-241-4/+8
| | | | | Simplified the regex used, added comments and changed the error message to contain the correct mod name.
* Refactor loggingShadowNinja2015-10-141-1/+1
| | | | | | | | | - 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
* SAPI: Track last executed mod and include in error messageskwolekr2015-08-121-2/+38
|
* Add minetest.register_on_player_hpchangeTeTpaAka2015-06-131-0/+28
|
* Add minetest.register_on_punchplayerBrandon2015-05-151-0/+1
|
* Fix minetest.clear_* creating new LOCAL table instead of clearing the ↵Tomas Brod2015-04-261-1/+3
| | | | | | | | | | | 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.
* builtin: Unify register wrapper functions and wrap clear_registered_* ↵kwolekr2015-01-131-16/+23
| | | | functions too
* Add registered_ores and registered_decorationsShadowNinja2015-01-051-7/+22
|
* Expose mapgen parameters on scripting initkwolekr2014-12-291-1/+6
| | | | | Add minetest.get_mapgen_params() Deprecate minetest.register_on_mapgen_init()