I will probably rewrite this script as the code isn’t great, a good option to look at!

edit: you most likely would need an inventory system that supports meta data if you want to reuse an item at a later date.