Open imre84 opened 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.
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
works well with the bones mod I'm about to upload in a couple of minutes