mojira.dev
MCPE-238915

The mace incorrectly includes the  minecraft:is_sword  item tag.

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.

Attachments

Comments 2

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

Creatures in this add-on will disappear when interacted with items tagged minecraft:is_sword . To verify whether this bug exists, simply interact with them using a mace.

[media]

adaofux106

(Unassigned)

Unconfirmed

Android

Android14

26.30.27 Preview

Retrieved