1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
luanti/builtin
Jürgen Rühle 2f464843cb
Make it more convenient to customize node drops (#15872)
* Provide tool and digger to get_node_drops

This gives games/mods the ability to modify node drops depending on item
and/or player metadata without overriding node_dig or other workarounds.

* Copy wielded item to prevent modification in get_node_drops

* Also pass node pos to get_node_drops

Allowing properties of the node and its surroundings to affect node drops.

* Copy pos to prevent modification in get_node_drops

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>

* Don't pass empty item stack to get_node_drops if wielded is nil

---------

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2025-04-20 20:48:48 +02:00
..
async ContentDB: Add reviews tab (#15254) 2025-04-13 16:07:01 +01:00
client In-game settings menu using separate Lua environment (#15614) 2025-01-19 13:07:04 -05:00
common Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
emerge Rename perlin noise to value noise (#15858) 2025-04-10 14:39:40 +02:00
fstk Code style fixes. 2025-01-21 16:29:12 +01:00
game Make it more convenient to customize node drops (#15872) 2025-04-20 20:48:48 +02:00
locale Dehardcode the death formspec (#15155) 2024-09-24 22:37:44 +02:00
mainmenu Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
pause_menu Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
profiler Luanti rename: builtin (#15324) 2024-10-28 19:40:18 +01:00
init.lua In-game settings menu using separate Lua environment (#15614) 2025-01-19 13:07:04 -05:00
settingtypes.txt Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00