Commit Graph

21 Commits

Author SHA1 Message Date
ShadowNinja 6154aa6365
Fix spelling of "attempt" 2022-05-21 16:11:30 +02:00
ShadowNinja 7e24d1ec9c
Add minetest.override_item 2022-05-21 16:11:30 +02:00
Diego Martínez d072d6424d
Add 'on_prejoinplayer' callback 2022-05-21 16:11:25 +02:00
ShadowNinja 8c2244886f
Move script_run_callbacks to Lua 2022-05-21 16:11:24 +02:00
ShadowNinja 067f8abc4c
Only create one alias metatable 2022-05-21 16:11:23 +02:00
0gb.us 41be943528
Assume a selection box for fences
Similar to assuming a selection box for the nodebox drawtype, minetest.register_item() now assumes a selection box for the fencelike drawtype.
2022-05-21 16:11:23 +02:00
ShadowNinja a78ef8d3a0
Add basic protection support to builtin 2022-05-21 16:11:13 +02:00
0gb.us 07e6b6e8d6
Fixed ignoring of "diggable" property of nodes. 2022-05-21 16:11:11 +02:00
Nathanaël Courant 2f36d25eeb
Add a callback: minetest.register_on_craft(itemstack, player, old_craft_grid, craft_inv) and minetest.register_craft_predict(itemstack, player, old_craft_grid, craft_inv) 2022-05-21 16:11:10 +02:00
Nathanaël Courant 063036dfd0
Add minetest.registered_biomes 2022-05-21 16:10:57 +02:00
Perttu Ahola a69aed8dea
Allow mods to listen to cheat detections using minetest.register_on_cheat() 2022-05-21 16:10:56 +02:00
kwolekr 1a2db073d5
Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API 2022-05-21 16:10:35 +02:00
khonkhortisan 93ce8191b1
unkn own block -> unkn own node 2022-05-21 16:10:31 +02:00
Diego Martínez 6dfa35ea48
Use the nodebox as selection box if it's not set manually 2022-05-21 16:10:30 +02:00
Matthew I f171cb855f
Add shutdown hook interface to Lua API
Scripts can call minetest.register_on_shutdown() to register a
shutdown hook.

Document that minetest.register_on_shutdown() callbacks may not be run

If the server crashes, it is unlikely that callbacks registered using
minetest.register_on_shutdown() will be called.
2022-05-21 16:10:20 +02:00
PilzAdam b646e953b6
Make air and ignore drop nothing 2022-05-21 16:07:53 +02:00
Perttu Ahola 2df90c2bf0
Deprecate minetest.add_to_creative_inventory and use group not_in_creative_inventory instead 2022-05-21 16:07:48 +02:00
Perttu Ahola dbaef1b2c6
minetest.register_on_player_receive_fields() 2022-05-21 16:07:43 +02:00
Perttu Ahola 70b13374d6
Don't deprecate minetest.register_on_placenode and minetest.register_on_dignode 2022-05-21 16:07:39 +02:00
Perttu Ahola 157b198e0f
Implement locked chest; add after_place_node and after_dig_node node callbacks 2022-05-21 16:07:37 +02:00
Perttu Ahola 397bd5fc83
Split builtin.lua to multiple files 2022-05-21 16:07:28 +02:00