The Bug
no matter direct or indirect sources
execute on attacker
select nothing if it's marker, item, arrow, etc...
however, armor_stand is selected
How to Reproduce
Load the datapack from attachment
Drop an item and exeucte
/damage @s 1 generic by @e[type=item,limit=1]
The chat doesn't show anything (unexpected
Instead placing an armor_stand and execute
/damage @s 1 generic by @e[type=armor_stand,limit=1]
The chat shows the armor_stand say hi (expected
Attachments
Comments 3
To facilitate testing with relations using the /execute command, you can utilize the attached datapack, which enables visualization of relations. By incorporating the datapack and inputting the command
/execute as @e at @s on attacker run function snapshots:raycast_particles/2
into a repeating command block, it consistently displays a line of particles between an entity and its attacker.
Executing
/damage @s 1 generic by @e[type=minecraft:armor_stand,limit=1,sort=nearest]
to incur damage from an armor stand will reveal that the armor stand becomes your last attacker for 5 seconds.
On the other hand, executing
/damage @s 1 generic by @e[type=minecraft:item,limit=1,sort=nearest]
or similar actions with non-living entities like boats won't display a line of particles for 5 seconds.
Thank you for your report!
After consideration, the issue is being closed as Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit The official Minecraft feedback site or visit the Minecraft Feedback Discord server.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
We do not have enough information to find the cause of this issue.
Please record a video of this happening and attach it to this report.
If you are on Windows, you can use
Windows
+Alt
+R
to open a built-in app for recording game footage.If you are on Mac (Mojave or later), you can use
Shift
+Command
+5
to open a built-in app for recording your screen.In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.
This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki