The item minecraft:mace has the incorrect item tag minecraft:is_sword, which affects player detection.
Reproduction Steps:
1. Create a new custom entity and add the component:
"minecraft:interact": {
"interactions": [
{
"on_interact": {
"filters": {
"any_of": [
{
"test": "has_equipment_tag",
"subject": "other",
"domain": "hand",
"value": "minecraft:is_sword"
}
]
},
"event": "text",
"target": "self"
},
"interact_text": "action.interact"
}
]
}
Then add the event:
"text": {
"queue_command": {
"target": "self",
"command": "say test"
}
}
2. Enter the game and spawn the custom entity, then hold minecraft:mace, aim at the custom entity and right-click.
3. Because minecraft:mace contains the minecraft:is_sword tag, the minecraft:interact component will determine it as a valid item, trigger the text event and execute the command. The text "test" will appear in the chat bar.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please attach an example MCAddon showcasing the issue?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki