Lawrence Posted June 12, 2014 Share Posted June 12, 2014 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 More sharing options...
DevilXD Posted June 12, 2014 Share Posted June 12, 2014 You must set ItemTest function... Look into cookpot.lua and icebox.lua for examples... Link to comment Share on other sites More sharing options...
JackSlender Posted June 12, 2014 Share Posted June 12, 2014 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. Link to comment Share on other sites More sharing options...
Lawrence Posted June 23, 2014 Author Share Posted June 23, 2014 Ok, I'll check. Again, thank you guys! Link to comment Share on other sites More sharing options...
Lawrence Posted June 24, 2014 Author Share Posted June 24, 2014 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 :SThank you ^_^ Link to comment Share on other sites More sharing options...
Recommended Posts
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.