加载中...
简易生物统计

简易生物统计

前置

/scoreboard objectives add 数量统计 dummy

/scoreboard objectives setdisplay sidebar 数量统计

(使计分板显示在侧边栏,便于查看数量)

主指令

⒈循环无条件:scoreboard players set §o§e▎§6▍玩家数量: 数量统计 0

⒉连锁无条件:execute as @a run scoreboard players add §o§e▎§6▍玩家数量: 数量统计 1

⒊连锁无条件:scoreboard players set §o§e▎§6▍生物数量: 数量统计 0

⒋连锁无条件:execute as @e[type=!player,type=!item,type=!arrow,type=!xp_orb,type=!snowball,type=!thrown_trident] run scoreboard players add §o§e▎§6▍生物数量: 数量统计 1

使用方法:

用scoreboard players test指令来检测特定分数进行对接

CC BY-NC-SA 4.0 Deed | 署名-非商业性使用-相同方式共享
最后更新时间:2025-10-28 01:14:44