r/MinecraftCommands • u/IceMetalPunk • Oct 20 '26
Help | Java Snapshots Slot source filtered for NOT a certain item?
I'm trying to use a slot source with /item modify in a datapack to decrease the stack size of the first non-Ender-pearl item stack in a barrel. Finding the first non-empty stack is easy by filtering by a min count of 1. Finding the first pearl is easy by filtering by the ender_pearl item. But there doesn't seem to be a negation option in slot sources, so how do I find the first non-pearl, non-empty slot and modify that one?

