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:
place repeating command block
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 ]
place and activate lever
use this command (in chat) /give @p minecraft:crossbow[enchantments:{multishot:255,custom_name:”the shockwave”}]
shoot crossbow and wait for arrows to land
expected result: output would say [@: killed arrow]
actual result: output says [lightning_bolt: killed arrow]
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:
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 History – Snapshot Version History – The 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