Lars Müller
7689f1f0fd
Improve some warning messages ( #15990 )
2025-04-08 22:24:00 +02:00
Lars Müller
2569b50252
Deprecate some legacy item registration logic ( #15950 )
2025-04-01 19:12:00 +02:00
sfan5
a94c9a73ba
Move all registration logic into core.register_item for consistency
2025-03-29 10:21:15 +01:00
sfan5
915446417d
Improve warning message for registration table reuse
2025-03-29 10:21:15 +01:00
sfan5
a9a3b05cc3
Prevent registration of certain new content after load time
2025-03-19 22:05:01 +01:00
sfan5
ca047c3e58
Warn on core.override_item() after server startup
2025-03-19 22:05:01 +01:00
sfan5
2540667f04
Warn if metatable passed to itemdef registration function
2025-03-19 22:05:01 +01:00
Wuzzy
ad4b13a0e9
Luanti rename: builtin ( #15324 )
2024-10-28 19:40:18 +01:00
sfan5
811adf5d42
Bulk LBMs ( #14954 )
2024-09-20 15:05:26 +02:00
Lars Müller
408faa11a1
Allow removal of item definition fields ( #14675 )
2024-05-20 20:37:40 +02:00
sfan5
4fdd2dec59
Move core.run_callbacks and related to common folder
2023-06-23 09:05:26 +02:00
Jude Melton-Houghton
5c248c2d7d
Add callback on_mapblocks_changed
2022-12-24 08:24:59 -05:00
Jude Melton-Houghton
475005012a
Improve ABM and LBM registration error handling ( #12969 )
2022-11-20 21:26:54 +01:00
DS
22cbc05808
Add an item pick up callback (2) ( #7712 )
...
Co-authored-by: SmallJoker <mk939@ymail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-10-01 15:21:06 -04:00
Zughy
8bf1609ccc
Fix crash when crafting callbacks return strings ( #12685 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-08-12 10:17:37 +01:00
sfan5
fc3460470a
Add missing item alias metatables to async environment ( #12458 )
2022-07-04 01:06:42 +02:00
Lars Müller
089797dbe6
Fix Minetest blaming the wrong mod for errors ( #12241 )
...
Covers the case where mods insert their callbacks manually into "minetest.registered_<callbacks>" (often to achieve a particular order of execution).
2022-05-09 20:42:43 +02:00
Warr1024
52128ae11e
Add API for mods to hook liquid transformation events ( #11405 )
...
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-07-09 09:08:40 -04:00
Wuzzy
d9b78d6492
Predict failing placement of ignore nodes
2021-03-07 14:26:50 +01:00
Wuzzy
cafad6ac03
Translate builtin ( #10693 )
...
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-03-05 16:29:48 +01:00
rubenwardy
a8f6befd39
Fix short_description fallback order ( #10943 )
2021-02-17 18:53:44 +00:00
Zughy
45ccfe26fb
Removed some obsolete code ( #10562 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-21 18:17:09 +00:00
JDiaz
08ee9794fb
Implement on_rightclickplayer callback ( #10775 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-11 18:03:31 +01:00
DS
be3fe161fc
Do not set a default for description in itemdef table ( #10559 )
...
* Do not set a default for description in itemdef table
* improve documentation
2020-11-10 21:03:10 +01:00
DS
f3ae45b2b2
Add a short_description to be used by mods ( #8980 )
2020-10-09 19:11:21 +01:00
Elijah Duffy
7d3641021b
Lua API: Add register_on_chatcommand to SSM and CSM ( #7862 )
...
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-10-03 17:38:08 +01:00
sorcerykid
15ba75e4cf
Add on_authplayer callback and 'last_login' to on_joinplayer ( #9574 )
...
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
2020-05-23 13:25:29 +02:00
random-geek
f2e62298a5
Change some usages of "deprecated" to "obsolete" ( #9062 )
...
"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-10-29 19:23:12 +01:00
sfan5
70f9e1aafa
Punchwear (improved) ( #8959 )
2019-09-22 22:12:21 +02:00
Wuzzy
9c725609c3
Fix default hand definition not using wieldhand.png
2019-08-23 19:17:50 +02:00
rubenwardy
8e757859d6
Add luacheck to check builtin ( #7895 )
2019-08-06 19:30:18 +01:00
SmallJoker
8efa1de835
Check for 'action' field in ABMs & LBMs
2019-07-27 21:13:47 +02:00
ANAND
72feab081c
builtin/../register.lua: Abort make_wrap_deregistration if param is invalid
2019-05-04 12:56:19 +02:00
number Zero
90acb9b3a7
Fix typo (GH#7421)
2018-06-10 10:34:13 +02:00
Loïc Blot
ccc3af128c
CSM/SSM: Add on_mods_loaded callback ( #7411 )
...
* CSM/SSM: Add on_mods_loaded callback
2018-06-06 12:53:59 +02:00
you
22df02d25b
Fix missing ignore textures ( #7326 )
2018-05-20 14:51:50 +02:00
Wuzzy
6d6b894c7a
Small usage changes for air and ignore items ( #7305 )
...
* Remove “you hacker you!” from node description
* Prevent placement of ignore in builtin
* Prevent giving of "unknown" explicitly
2018-05-20 14:51:26 +02:00
SmallJoker
f6eff57f7c
Add player inventory callbacks
2018-04-02 17:18:48 +02:00
Andrew Ward
dfc8198349
Add reasons to on_dieplayer and on_hpchange
2018-03-28 16:05:18 +01:00
you
46bbacee95
Fix "Ignoring CONTENT_IGNORE redefinition" warning ( #4393 )
...
minetest.override_item still passes to core
2018-02-18 10:40:14 +01:00
red-001
338d645fcf
Add on_auth_fail
callback ( #7039 )
...
Called when a client fails to supply the correct password for the account it's attempting to login as.
2018-02-15 21:18:54 +01:00
Loïc Blot
6f1c907204
Implement mod communication channels ( #6351 )
...
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-26 00:11:20 +02:00
rubenwardy
faad6479de
Fix crash on revocation of removed privilege
2017-09-08 23:45:56 +01:00
Loïc Blot
40dd03e328
Implement minetest.register_can_bypass_userlimit ( #6369 )
...
* 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-09-04 22:08:59 +02:00
rubenwardy
72c09f524b
Fix mistake when calling on_priv_grant/revoke, and document them ( #6341 )
2017-08-29 07:57:56 +02:00
zeuner
1f207a3ddb
Lua API: Add function to deregister single biomes ( #5445 )
2017-08-27 18:39:47 +02:00
rubenwardy
096ea031de
Add on_grant and on_revoke callbacks ( #4713 )
...
* 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-08-26 08:17:05 +02:00
Wuzzy
f5d4494a51
Add textures for air and ignore items ( #5196 )
2017-02-10 08:19:31 +01:00
paramat
5091cb5ecd
Builtin: Change error to warning for light_source > 14
2016-09-21 08:04:11 +02:00
paramat
3aefa5d3ce
Register.lua: Throw error if node 'light_source' > core.LIGHT_MAX
...
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-17 09:33:25 +01:00