类型
丰富的(BB 代码):
### 主词条 ###
### 循环 == R peat
### 连锁 == C hain
### 脉冲 == O nce
###
### 红石控制 == rd redstone
### 保持开启 == st stay start
###
### 1t == 延迟选项 1
### 20t == 延迟选项 20
### 以此类推
### 1s = 20t (命令刻)
###
### no == 无条件
### if == 有条件
###
### 命令方块格式 :
### R-st-no-0t
### /say 循环 无条件 保持开启 0tick --运行
###
前置
丰富的(BB 代码):
scorebroad objectives add PlayerJoinEvent dummy
###添加名为PlayerJoinEvent的计分板
gamerule commandblockoutput false
### 关闭命令方块提示
### 如果已经关闭可以不选
gamerule sendcommandfeedback false
### 关闭玩家命令反馈
### 如果想要保持看到玩家命令这个状态的话可以不选
本体
丰富的(BB 代码):
### R-st-no-5t 新指令串
scoreboard players add @a PlayerJoinEvent 0
### 给所有玩家加分
### C-st-no-0t
execute @a[scores={PlayerJoinEvent=0}] ~~~ tellraw @a {"rawtext":[{"text":"§b玩家:§e"},{"selector":"@s"},{"text":"内容"}]}
### 输出内容,需要自定义使用
### C-st-if-0t
title @a title §r
### 初始化标题
### C-st-if-0t
title @a subtitle §e@a[scores={PlayerJoinEvent=0}] 加入了游戏
###加载副标题给全体玩家
### C-st-if-0t
execute @a ~~~ playsound note.pling @s
### 播放声音, 其中 note.pling 可以替换为其他的, 例如 note.bass
### R-st-no-20t 新指令串
scoreboard players reset * PlayerJoinEvent
### 重置分数
### C-st-if-0t
scoreboard players set @a add 1
### 用于屏蔽在线玩家, 1 可以替换为任何和0不相同的整数,不能用浮点数
思路
代码:
### 大致思路:
### 监测玩家人数
### 如果发生变化
### 那么给所有玩家赋分
### 分数达到目标要求时触发
### 所有玩家分数重置
### 给所有玩家附上特定分值