1.
命令:/scoreboard objectives add <对象名称> deathCount 显示名称
Ps:对象名称是自定义的,但必须是英文、数字或者它们的组合,而显示名称可以中文、数字、英文或者它们的组合。
示例:/scoreboard objectives add death deathCount 死亡榜
2.
显示该记分板
命令:/scoreboard objectives setdisplay <显示位置> <对象名称>
Ps:显示位置常用的有3种,分别是sidebar(右侧)、list(列表,按Tab键显示)、belowName (玩家头顶名称下方)。
示例:/scoreboard objectives setdisplay sidebar death
意为将记分对象名称为desth的记分板显示在右侧
移除
/scoreboard objectives remove death
清空死亡榜
/scoreboard players reset * death