minetest-mods / unified_inventory

An extensible inventory mod which allows searching crafting and browsing for recipes in the same dialogue.
Other
50 stars 38 forks source link

make the bags being dumped into the bones block on death (configurable) #229

Open imre84 opened 1 year ago

imre84 commented 1 year ago

works well with the bones mod I'm about to upload in a couple of minutes

SmallJoker commented 1 year ago

Honestly speaking, it could be implemented in a much fancier way by introducing a public function in the bones mod (minetest_game) which is called to collect the item stacks that shall be handled. It would be easy for mods to register a callback of overwrite said function to handle it correctly. This node searching approach might still hit the wrong bone if there are multiple ones nearby from the same player.

imre84 commented 1 year ago

Honestly speaking, it could be implemented in a much fancier way by introducing a public function in the bones mod (minetest_game) which is called to collect the item stacks that shall be handled. It would be easy for mods to register a callback of overwrite said function to handle it correctly. This node searching approach might still hit the wrong bone if there are multiple ones nearby from the same player.

Hello, working on it: https://github.com/minetest/minetest_game/pull/3030