Minecraft wiki entry for scoreboard, associated text: Syntax
scoreboard objectives modify <objective> rendertype (hearts|integer) (Java Edition)
Description
Change the display format for scores in the tab player list.
Arguments
<objective>: objective
Specifies the internal objective name.
It must be an valid scoreboard objective name.
hearts|integer
Specifies the format.
Result
Command Trigger Java Edition
... modify <objective> rendertype ... the arguments are not specified correctly Unparseable
<objective> doesn't exist Failed
any On success Change the display format of player list.
Output
Command Edition Situation Success Count /execute store success ... /execute store result ...
... modify <objective> displayname ... Java Edition On fail 0 0 0
On success 1 1 0