/scoreboard¶
文档版本:1.21.60.21
/scoreboard命令command.scoreboard.description
执行条件
该命令需要权限等级:gamedirectors|1。该命令需要开启作弊。
用法¶
command.scoreboard.1.description
category:ScoreboardObjectivesCategory- 枚举类型。command.enum.scoreboardobjectivescategory.description单值枚举,请直接使用
objectives。 action:ScoreboardAddAction- 枚举类型。command.enum.scoreboardaddaction.description单值枚举,请直接使用
add。 objective:ScoreboardObjectives- 软枚举类型。command.scoreboard.objective.description
criteria:ScoreboardCriteria- 枚举类型。command.enum.scoreboardcriteria.description单值枚举,请直接使用
dummy。 displayName:string- 基本类型,可选。command.scoreboard.displayName.description
command.scoreboard.2.description
category:ScoreboardObjectivesCategory- 枚举类型。command.enum.scoreboardobjectivescategory.description单值枚举,请直接使用
objectives。 action:ScoreboardRemoveAction- 枚举类型。command.enum.scoreboardremoveaction.description单值枚举,请直接使用
remove。 objective:ScoreboardObjectives- 软枚举类型。command.scoreboard.objective.description
command.scoreboard.3.description
category:ScoreboardObjectivesCategory- 枚举类型。command.enum.scoreboardobjectivescategory.description单值枚举,请直接使用
objectives。 action:ScoreboardListAction- 枚举类型。command.enum.scoreboardlistaction.description单值枚举,请直接使用
list。
/scoreboard objectives setdisplay <displaySlot:ScoreboardDisplaySlotSortable> [objective:string] [sortOrder:ScoreboardSortOrder]
command.scoreboard.4.description
category:ScoreboardObjectivesCategory- 枚举类型。command.enum.scoreboardobjectivescategory.description单值枚举,请直接使用
objectives。 action:ScoreboardSetDisplayAction- 枚举类型。command.enum.scoreboardsetdisplayaction.description单值枚举,请直接使用
setdisplay。 displaySlot:ScoreboardDisplaySlotSortable- 枚举类型。command.enum.scoreboarddisplayslotsortable.description枚举值如下:
-
值 描述 listcommand.enum.scoreboarddisplayslotsortable.list sidebarcommand.enum.scoreboarddisplayslotsortable.sidebar objective:ScoreboardObjectives- 软枚举类型,可选。command.scoreboard.objective.description
sortOrder:ScoreboardSortOrder- 枚举类型,可选。command.enum.scoreboardsortorder.description枚举值如下:
-
值 描述 ascendingcommand.enum.scoreboardsortorder.ascending descendingcommand.enum.scoreboardsortorder.descending
command.scoreboard.5.description
category:ScoreboardObjectivesCategory- 枚举类型。command.enum.scoreboardobjectivescategory.description单值枚举,请直接使用
objectives。 action:ScoreboardSetDisplayAction- 枚举类型。command.enum.scoreboardsetdisplayaction.description单值枚举,请直接使用
setdisplay。 displaySlot:ScoreboardDisplaySlotNonSortable- 枚举类型。command.enum.scoreboarddisplayslotnonsortable.description单值枚举,请直接使用
belowname。 objective:ScoreboardObjectives- 软枚举类型,可选。command.scoreboard.objective.description
command.scoreboard.6.description
category:ScoreboardPlayersCategory- 枚举类型。command.enum.scoreboardplayerscategory.description单值枚举,请直接使用
players。 action:ScoreboardListAction- 枚举类型。command.enum.scoreboardlistaction.description单值枚举,请直接使用
list。 playername:target- 基本类型,可选。command.scoreboard.playername.description
command.scoreboard.7.description
category:ScoreboardPlayersCategory- 枚举类型。command.enum.scoreboardplayerscategory.description单值枚举,请直接使用
players。 action:ScoreboardResetAction- 枚举类型。command.enum.scoreboardresetaction.description单值枚举,请直接使用
reset。 player:target- 基本类型。command.scoreboard.player.description
objective:ScoreboardObjectives- 软枚举类型,可选。command.scoreboard.objective.description
command.scoreboard.8.description
category:ScoreboardPlayersCategory- 枚举类型。command.enum.scoreboardplayerscategory.description单值枚举,请直接使用
players。 action:ScoreboardTestAction- 枚举类型。command.enum.scoreboardtestaction.description单值枚举,请直接使用
test。 player:target- 基本类型。command.scoreboard.player.description
objective:ScoreboardObjectives- 软枚举类型。command.scoreboard.objective.description
min:wildcard int- 基本类型。command.scoreboard.min.description
max:wildcard int- 基本类型,可选。command.scoreboard.max.description
command.scoreboard.9.description
category:ScoreboardPlayersCategory- 枚举类型。command.enum.scoreboardplayerscategory.description单值枚举,请直接使用
players。 action:ScoreboardRandomAction- 枚举类型。command.enum.scoreboardrandomaction.description单值枚举,请直接使用
random。 player:target- 基本类型。command.scoreboard.player.description
objective:ScoreboardObjectives- 软枚举类型。command.scoreboard.objective.description
min:int- 基本类型。command.scoreboard.min.description
max:int- 基本类型。command.scoreboard.max.description
/scoreboard players <action:ScoreboardPlayersNumAction> <player:target> <objective:string> <count:int>
command.scoreboard.10.description
category:ScoreboardPlayersCategory- 枚举类型。command.enum.scoreboardplayerscategory.description单值枚举,请直接使用
players。 action:ScoreboardPlayersNumAction- 枚举类型。command.enum.scoreboardplayersnumaction.description枚举值如下:
-
值 描述 setcommand.enum.scoreboardplayersnumaction.set addcommand.enum.scoreboardplayersnumaction.add removecommand.enum.scoreboardplayersnumaction.remove player:target- 基本类型。command.scoreboard.player.description
objective:ScoreboardObjectives- 软枚举类型。command.scoreboard.objective.description
count:int- 基本类型。command.scoreboard.count.description
/scoreboard players operation <targetName:target> <targetObjective:string> <operation:operator> <selector:target> <objective:string>
command.scoreboard.11.description
category:ScoreboardPlayersCategory- 枚举类型。command.enum.scoreboardplayerscategory.description单值枚举,请直接使用
players。 action:ScoreboardOperationAction- 枚举类型。command.enum.scoreboardoperationaction.description单值枚举,请直接使用
operation。 targetName:target- 基本类型。command.scoreboard.targetName.description
targetObjective:ScoreboardObjectives- 软枚举类型。command.scoreboard.targetObjective.description
operation:operator- 基本类型。command.scoreboard.operation.description
selector:target- 基本类型。command.scoreboard.selector.description
objective:ScoreboardObjectives- 软枚举类型。command.scoreboard.objective.description