Jump to content

[Question] How can I add a new type of container?


Recommended Posts

Hello everyone.

 

I was wondering if it is possible to create a container that allows just one type of items,

or at least make a container refuse all kinds of items except one.

 

Should I create a new widget? (In that case I think I'm not even going to try)

 

Thanks for your help

Link to comment
Share on other sites

As DevilXD said, you need to do an ItemTest function that either checks if the item has a specific tag, or does an item name check.  If need be, you can do a postinit function to add a tag to an item.

 

 

You must set ItemTest function... Look into cookpot.lua and icebox.lua for examples...

 

 

it was easier than I thought :S

Thank you ^_^

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...