Open tryashtar opened 3 months ago
Commands like this one are redundant, since NBT list matches ignore index and quantity:
kill @a[nbt={Motion:[0d,0d,0d]}]
Spyglass could detect this and show a warning.
As misode aptly pointed out in #1317, it's more than just duplicates that are redundant; any superset compounds should warn as well:
execute if data entity @s {HandItems:[{},{id:"minecraft:apple"}]}
Adding a warning for superset compounds is blocked by #1228
Commands like this one are redundant, since NBT list matches ignore index and quantity:
Spyglass could detect this and show a warning.
As misode aptly pointed out in #1317, it's more than just duplicates that are redundant; any superset compounds should warn as well: