The bug
Read-only scoreboard objectives (with criteria health, xp, food, air, or armor) cannot be modified. When you attempt to modify them with /scoreboard, the error is: “Scoreboard objective ‘whatever’ is read-only.” However, when you attempt to modify them with /execute store, the error is: “An unexpected error occurred while trying to execute that command.”
How to reproduce
/scoreboard objectives add health health/execute store result score @s health run return 10
Expected result
Error: “Scoreboard objective ‘health’ is read-only”
Observed result
Error: “An unexpected error occurred while trying to execute that command”
Linked issues
Comments 0
No comments.