Jump to content

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

Edited by Lawrence

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 ^_^

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...