[Question] inventory_get_list and inventory_set_list

xoor
New member
 
Posts: 7
Joined: Wed Apr 18, 2012 20:33

[Question] inventory_get_list and inventory_set_list

by xoor » Wed Apr 25, 2012 11:19

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 >_<.
//Sorry for my bad english but i'm italian :)
 

User avatar
Stef
Member
 
Posts: 394
Joined: Wed Apr 04, 2012 10:46

by Stef » Wed Apr 25, 2012 11:43

how can i clear my inventory in creative mode
Sorry for my crappy english, im dutch :D
 

xoor
New member
 
Posts: 7
Joined: Wed Apr 18, 2012 20:33

by xoor » Wed Apr 25, 2012 12:46

You can't. XD.

Solutions for my question? :)
//Sorry for my bad english but i'm italian :)
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46

by Death Dealer » Wed Apr 25, 2012 16:57

Stef wrote:how can i clear my inventory in creative mode

Drop everything. XD lol
Keep calm and code python^_^
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Apr 30, 2012 09:16

Death Dealer wrote:
Stef wrote:how can i clear my inventory in creative mode

Drop everything. XD lol

Nope. Won't work.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

by celeron55 » Mon Apr 30, 2012 15:23

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.
 


Return to WIP Mods

Who is online

Users browsing this forum: Bing [Bot] and 14 guests

cron