Minetest logo

IRC log for #minetest-mods, 2014-10-19

| Channels | #minetest-mods index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
01:15 Taoki joined #minetest-mods
01:25 Miner_48er joined #minetest-mods
01:54 zlsa joined #minetest-mods
02:06 zlsa joined #minetest-mods
02:45 DuDraig Anyone here?
02:48 Cylus joined #minetest-mods
08:27 LazyJ joined #minetest-mods
10:51 PilzAdam joined #minetest-mods
12:16 Wuzzy joined #minetest-mods
13:15 rubenwardy joined #minetest-mods
14:19 zlsa joined #minetest-mods
14:28 DuDraig joined #minetest-mods
14:34 dhasenan_ joined #minetest-mods
14:37 rubenwardy joined #minetest-mods
14:43 phantombeta joined #minetest-mods
15:48 Miner_48er joined #minetest-mods
15:57 zlsa joined #minetest-mods
17:22 neoascetic joined #minetest-mods
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:37 Ritchie joined #minetest-mods
17:37 rmilan joined #minetest-mods
17:38 Eivel joined #minetest-mods
17:47 Miner_48er joined #minetest-mods
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
21:59 phantombeta joined #minetest-mods

| Channels | #minetest-mods index | Today | | Google Search | Plaintext