Damage:0 being add to Enchantment NBT when specifying an Item ID in a filter
melbellrocks opened this issue ยท 1 comments
Bug description
When trying to filter out all enchanted items I am able to use just {Enchantments:[{}]} as long as I leave the Item ID blank. But if I try that same NBT argument while specifying an item ID, for example, minecraft:bow, when I save the filter it shows 2 tags and I go back and Damage:0 has been added to the NBT data. So it changes from {Enchantments:[{}]} to {Enchantments:[{}],Damage:0}, thus making my filter only work for bows that are both enchanted and at full durability.
Apologies in advance if I am just doing something dumb or overlooking some obvious thing.
Steps to reproduce the issue
- Create a filter rule with an item id and just {Enchantments:[{}]} for the NBT data
- Save the filter rule
- The filter rule will automatically have Damage:0 added to the NBT data
Expected behavior
I expected I would be able to filter just based on whether something is enchanted.
Versions
- Minecraft version: 1.16.5
- Forge version: 36.2.8
- Mod version: 1.2.11
Other mods
I am playing on the Skyfactory One modpack, so there are plenty other mods installed, but I also tested in a creative world with no other mods installed and the behavior was the same.