Time Nick Message 02:45 DuDraig Anyone here? 17:23 neoascetic amm... hi? 17:23 neoascetic I have a question 17:23 neoascetic How can I register callback on event when user takes something in his hands? 17:24 rubenwardy Like changes selection on hotbar? 17:24 neoascetic yep 17:25 neoascetic I've tried "on_use" node callback 17:25 neoascetic but this is not what I want 17:26 rubenwardy Use global_on_step to check the player's currently selected item 17:26 rubenwardy see if it changes 17:26 rubenwardy Although if they dig or place it will change 17:26 rubenwardy player:get_inventory() 17:26 rubenwardy https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L2020 17:27 rubenwardy https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1363 17:27 neoascetic http://dev.minetest.net/ObjectRef:get_wielded_item 17:28 neoascetic seems like that what I need in fact 17:28 rubenwardy thats better 17:28 neoascetic ok, thx 17:28 neoascetic any other way instead of global_callback? 17:28 neoascetic global_step 17:29 rubenwardy Could use minetest.after 17:29 rubenwardy minetest.register_globalstep is what I meant 17:31 neoascetic Yeah, I understood. I meant something better than global counter - player action callback, for example. I. e. to have player as a argument 17:31 neoascetic Anyway, thanks, will try that approach too 17:56 neoascetic can I set player's light_source of the player? 18:02 Zefram_Fysh no, players can't be light sources 18:03 neoascetic some hackish way to achieve this? i. e. put some hidden block that can be light source? 18:03 Zefram_Fysh yes. see the flashlight item in the technic mod