Time Nick Message 04:52 Alex94 Anyone online? 04:52 Alex94 I need help 05:41 jas_ hi 07:29 jas_ !server 07:29 MinetestBot jas_: YetiCraft | play.yeticraft.net | Clients: 0/50, 0/3 | Version: 5.1.0-dev / mineclone2 | Ping: 169ms 10:03 nepugia Hey, what is the proper way to interact with objects on the ground? (i.e coal item), I Have got an objectref from pointed_thing, but i am stuck at getting the inventory part, i see two possible ways from the lua api doc, one would be get_wielded_item on it and the other would be get_inventory, with get_inventory i just get nil back, with wielded item i gett lots of empty values back (as in empty string in get_name and so), am i perhaps mis 10:03 nepugia sing a third method? 10:04 nepugia I want to do this to be able to pick up items from lua 10:05 sfan5 a dropped item entity is neither "wielding" an item nor does it have an inventory 10:05 sfan5 take a look at builtin/game/item_entity.lua to see how it's implemeneted 10:06 ANAND The itemname is held in the special field "itemstring" (IIRC) 10:08 nepugia thanks, i will take a look 10:08 VanessaE also consider item_tweaks, if picking-up is your main goal 10:08 nepugia VanessaE, what is that? 10:08 VanessaE https://github.com/minetest-technic/item_tweaks 10:09 VanessaE it adds a few things like stacks combining on drop, and auto-pickup as you walk by 10:09 nepugia Not really usefull for me, and the repo does not have a license, but thansk 10:10 VanessaE it's WTFPL 10:10 VanessaE (forked from https://github.com/cyisfor/item_drop) 10:10 nepugia it still doesnt have a license file :) 10:10 VanessaE but the code at https://github.com/minetest-technic/item_tweaks/blob/master/item_drop.lua#L50 ought to be close to what you waant 10:10 VanessaE -a 10:30 nepugia okay, i have it now 10:30 nepugia thanks 14:33 jas_ hi 14:33 jas_ "stacks combining on drop" happens by default, if i'm understanding that right 14:34 Calinou it does now, yeah 14:35 jas_ it was referred to earlier as a feature of a mod, i just wanted to let vanessae know in case she didn't already. 14:35 VanessaE oh right 14:36 VanessaE I guess the standard issue minetest handles that now. 14:36 VanessaE I forgot.. 14:36 jas_ but def not autopickup 14:36 jas_ i do it from the player instead from the item, prolly crazy but 14:37 jas_ https://github.com/jastevenson303/Lavaland/blob/master/mods/items/init.lua#L92 i got a glitch or two tho 20:22 MinetestBot 02[git] 04sfan5 -> 03minetest/minetest: Force item entities out of solid nodes (simpler) (#8885) 13c9ec1a8 https://git.io/fjhNr (152019-09-04T20:21:40Z)