I am using the plugin TreasureChest which allows me to turn a chest and its contents into a virtual treasure chest which can be opened and accessed by anyone who clicks to open the chest, and then are presented with a virtual chest containing the items set for that treasure.
There is one particular item I have (a named ink sac) that I need to not stack. I know that all I need to do to prevent the item from stacking is to change the NBT data of the items and make them unique. Problem is, this item is stored as-is in the virtual chest, and everyone receives the same exact item with the same NBT data, and can receive it multiple times, so I need a sort of "on loot" method to change the NBT data for that particular item when it's looted, no matter how it was taken. Whether by clicking and dragging, or shift-clicking to loot it, I need it to be modified before they have a chance to stack it.
I can't seem to find an event that catches the action of removing the item from a virtual chest or receiving the item from the chest. Any suggestions?
Thanks.
There is one particular item I have (a named ink sac) that I need to not stack. I know that all I need to do to prevent the item from stacking is to change the NBT data of the items and make them unique. Problem is, this item is stored as-is in the virtual chest, and everyone receives the same exact item with the same NBT data, and can receive it multiple times, so I need a sort of "on loot" method to change the NBT data for that particular item when it's looted, no matter how it was taken. Whether by clicking and dragging, or shift-clicking to loot it, I need it to be modified before they have a chance to stack it.
I can't seem to find an event that catches the action of removing the item from a virtual chest or receiving the item from the chest. Any suggestions?
Thanks.