1.16版本以上:/execute if entity @a[scores={score=1..5}] 这意味着让score在1-5之间的玩家做输出 旧版本:/execute @a[scores={score=1..5}] 一样意思高版本更新了execute指令,删除了testfor等指令 比tag高效一些吧awa 那么又有人要问了:你还能做到啥?! 没了不是叫你拖出去斩了吗当然不,还
/scoreboard players test * <objective> <min> [max] To enable a player to use the /trigger command on a trigger objective: /scoreboard players enable <player> <trigger> To add a tag to a player (in Minecraft 1.12 and older): (Starting in Minecraft 1.13, use the /tag command to add ...
For example, in Java Edition, inputting /execute if entity @a[scores={deaths=1..}] into a command block triggers a comparator or conditional command block if any player has died at least once, assuming "deaths" is an objective of the "deathCount" criterion....