The Bug:
minecraft.killed_by:minecraft.lightning_bolt doesn't increase when killed by lightning bolt.
Steps to Reproduce:
Create a scoreboard objective for tracking being killed by lightning bolts and set it to display on the sidebar.
/scoreboard objectives add Struck minecraft.killed_by:minecraft.lightning_bolt/scoreboard objectives setdisplay sidebar StruckSet the gamerule doFireTick to false to make sure the bolt won't create fire, making the player die to fire damage instead of bolt damage.
/gamerule doFireTick falseMake sure the gamemode is survival or adventure and get struck by lightning bolts till death.
/summon lightning_boltAfter being killed by the bolt, check if the score increased.
Observed Behavior:
The scoreboard doesn't increase.
Expected Behavior:
The scoreboard would increase.
Thank you for your report!
We're tracking this issue in MC-142723, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki