InLieuOfLuna / find

Find items in inventories
MIT License
5 stars 6 forks source link

Match also Shulker Box content, Enchantments and Potion effects #9

Closed Nokorot closed 4 days ago

Nokorot commented 11 months ago

I wanted the ability to search for items in shulker boxes. So I modified the match function to also match a shulker box if it contains the search item. I implemented this by going through the nbt tags, and recursively searching through the Item tags of BlockEtities. This way, BlockEntities with nbt data (like chests) obtained in creative by control picking the block, also match based on the content. Based on the suggestion https://github.com/InLieuOfLuna/find/issues/6, I also match enchantments and potion effects.

InLieuOfLuna commented 4 days ago

I've updated this pr to 1.21, and will now be merging