get_score.mcfunction 618 B

1234567
  1. scoreboard players add @s slime_score 1
  2. execute as @a[tag=!watcher] run scoreboard players operation @s temp = @s slime_score
  3. execute as @a[tag=!watcher] run scoreboard players operation @s temp %= #const_5 mem
  4. execute as @a[tag=!watcher,scores={temp=1..}] run function lib:sounds/hit
  5. execute as @a[tag=!watcher,scores={temp=0}] run function lib:sounds/levelup
  6. execute as @a[tag=!watcher,scores={temp=0}] run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"selector": "@s","color":"gold"}," 已获得 ",{"score": { "name": "@s","objective": "kill_phantom"},"color":"gold"},{"text":" 分","color":"gold"}]