has_equipment filter ignores the specified damage value for items with durability
*Partner Rank:*
2
*Partner Team Reporting:*
Everbloom Studios
*Verification builds:*
beta 1.12.0.9 on Windows 10
*Summary:*
The has_equipment filter ignores the damage value specified on the "value" field, when the item type has durability (tools, armor...). This bug does not occur for items that don't have durability (that is, different damage values represent different items, such as dyes, boats, potions, etc.).
*Impact:*
This bug breaks existing entities in an upcoming map that rely on damaged tools for changing their behavior.
*Repro Steps:*
- Add the provided behavior pack to the world you're going to test this in. This behavior adds an entity that has an interaction component that uses the has_equipment filter with a damage value.
- Join the world, and run /summon test:has_equipment to spawn the test entity. (Optional: do /aigoals to be able to see where this entity is, as it does not have a client entity definition)
- Give yourself an iron sword with damage value 1 (/give @s iron_sword 1 1)
- Interact with the entity while holding the sword.
*Observed Results:*
Nothing appears to happen (the has_equipment filter in the minecraft:interact component fails)
*Expected Results:*
The sword should be replaced with a cookie (the has_equipment filter in the minecraft:interact component passes)
*Screenshots/Videos attached: Yes/No*
No
*Regression Builds:*
1.11.3