Page 1 of 1

[Question] inventory_get_list and inventory_set_list

PostPosted: Wed Apr 25, 2012 11:19
by xoor
With the new versions of minetest the "inventory_get_list" and "inventory_set_list" don't works. There are some similar solutions? 'Cause i'm trying to do a mod and i need to use inventory_get_list and inventory_set_list T____T

Sorry for my language mistakes >_<.

PostPosted: Wed Apr 25, 2012 11:43
by Stef
how can i clear my inventory in creative mode

PostPosted: Wed Apr 25, 2012 12:46
by xoor
You can't. XD.

Solutions for my question? :)

PostPosted: Wed Apr 25, 2012 16:57
by Death Dealer
Stef wrote:how can i clear my inventory in creative mode

Drop everything. XD lol

PostPosted: Mon Apr 30, 2012 09:16
by Jordach
Death Dealer wrote:
Stef wrote:how can i clear my inventory in creative mode

Drop everything. XD lol

Nope. Won't work.

PostPosted: Mon Apr 30, 2012 15:23
by celeron55
xoor wrote:With the new versions of minetest the "inventory_get_list" and "inventory_set_list" don't works. There are some similar solutions? 'Cause i'm trying to do a mod and i need to use inventory_get_list and inventory_set_list T____T

Sorry for my language mistakes >_<.


You get an inventory (type InvRef, let's call it "inv") from somewhere, and then use inv:get_list and inv:set_list.

Check out the three get_inventory() functions in lua_api.txt.

EDIT: Also, moved to Modding General.