mojira.dev
MC-302086

/execute will output that the summoned mob during the command is what ran the run parameter.

the /execute command will output that the summoned mob during the command is what ran the run parameter. idk how else to describe it.

steps to reproduce:

  1. place repeating command block

  2. set this command to it: execute at @e[type = minecraft:arrow ] if data entity @n {inGround:1b,weapon:{components:{“minecraft:custom_name“:”the shockwave”}}} summon minecraft:lightning_bolt run kill @n[ type= minecraft:arrow ]

  3. place and activate lever

  4. use this command (in chat) /give @p minecraft:crossbow[enchantments:{multishot:255,custom_name:”the shockwave”}]

  5. shoot crossbow and wait for arrows to land

expected result: output would say [@: killed arrow]

actual result: output says [lightning_bolt: killed arrow]

Attachments

Comments 1

Thank you for your report!
However, this issue is Working as Intended.

The report you have submitted is working as intended: see the 23w06a changelog:

execute summon

New execute sub-command for summoning new entity and binding context (@s) to it. Meant to simplify entity setup and reduce need for raw NBT editing.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Sam J

(Unassigned)

Unconfirmed

(Unassigned)

25w37a

Retrieved