Skip to content

Conversation

imre84
Copy link

@imre84 imre84 commented May 4, 2023

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

@SmallJoker
Copy link
Member

SmallJoker commented May 4, 2023

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
Copy link
Author

imre84 commented May 5, 2023

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: luanti-org/minetest_game#3030

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants