本帖最后由 26号猪肉 于 2018-11-11 16:10 编辑 
如题:如何探测玩家之间的最高分数(人数不确定)
没有负数,有零,分数不会过百,不要连接 谢谢
如题:如何探测玩家之间的最高分数(人数不确定)
没有负数,有零,分数不会过百,不要连接 谢谢
http://www.mcbbs.net/thread-579435-1-1.html
如果你只要第一名的话,假设分数名叫 score:
execute @a ~ ~ ~ scoreboard players operation #highest score > @s score
execute @a ~ ~ ~ scoreboard players operation @s score -= #highest score
scoreboard players tag @a[score_score=0,score_score_min=0] add first_place
@a[tag=first_place] 就是第一名的玩家,#highest score 就是最高的分数。
应该有其他做法,我就写最好想的了
如果你只要第一名的话,假设分数名叫 score:
execute @a ~ ~ ~ scoreboard players operation #highest score > @s score
execute @a ~ ~ ~ scoreboard players operation @s score -= #highest score
scoreboard players tag @a[score_score=0,score_score_min=0] add first_place
@a[tag=first_place] 就是第一名的玩家,#highest score 就是最高的分数。
应该有其他做法,我就写最好想的了
 本帖最后由 潇潇染夕 于 2018-11-15 13:10 编辑 
/scoreboard objectives add <名称> <类型> [显示的名称
注意:<>是必须要填 []是可填可不填
具体全部教程请转到:http://**/thread-6428-1-6.htm【**部分加m、c、.n、e、t、e、a、s、e、.c、o、m、】请把、部分删除并粘贴到**部分,被屏蔽了。
目录
/scoreboard objectives add <名称> <类型> [显示的名称
注意:<>是必须要填 []是可填可不填
具体全部教程请转到:http://**/thread-6428-1-6.htm【**部分加m、c、.n、e、t、e、a、s、e、.c、o、m、】请把、部分删除并粘贴到**部分,被屏蔽了。
目录
- 回原贴
- 计分板教程
- trigger指令教程