Issue
Item predicates inside slot_source do not support the inverted condition type, preventing players from selecting items that lack specific properties (such as an enchantment).
Expected Behavior
Item predicates for slot sources should allow users to invert the selection criteria. For example, it should be possible to target swords in a player's inventory that do not have the ca:kaboom enchantment.
Observed Behavior
The predicate currently has no way to accept an inverter type, forcing it to match the positive condition instead.
Example Configuration / Code
{
"type": "filtered",
"item_filter": {
"items": "#swords",
"predicates": {
"enchantments": [
{
"enchantments": "ca:kaboom"
}
]
}
},
"slot_source": {
"type": "slot_range",
"slots": "container.*"
}
}Current behavior: Scans the player's inventory and selects all swords with the ca:kaboom enchantment, with no support for an inverter to do the opposite.
Environment
Java Edition 26.4 Snapshot 4
Comments 0
No comments.