tick20.mcfunction 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # 属性提升 1
  2. execute if score $countdown mem matches 100 run function mini:slime/game/set_attack
  3. execute if score $countdown mem matches 100 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
  4. execute if score $countdown mem matches 100 as @a at @s run function lib:sounds/error
  5. # 召唤提示 1
  6. execute if score $countdown mem matches 85 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
  7. execute if score $countdown mem matches 85 as @a at @s run function lib:sounds/error
  8. # 召唤 1
  9. execute if score $countdown mem matches 80 run function mini:slime/game/summon
  10. execute if score $countdown mem matches 80 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
  11. execute if score $countdown mem matches 80 as @a at @s run function lib:sounds/teleport
  12. # 属性提升 2
  13. execute if score $countdown mem matches 60 run function mini:slime/game/set_attack
  14. execute if score $countdown mem matches 60 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
  15. execute if score $countdown mem matches 60 as @a at @s run function lib:sounds/error
  16. # 加速
  17. execute if score $countdown mem matches 40 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "史莱姆的移动速度提高了!","color":"gold"}]
  18. execute if score $countdown mem matches ..40 run effect give @e[type=slime] speed 10 3
  19. # 召唤提示 2
  20. execute if score $countdown mem matches 25 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
  21. execute if score $countdown mem matches 25 as @a at @s run function lib:sounds/error
  22. # 召唤 2
  23. execute if score $countdown mem matches 20 run function mini:slime/game/summon
  24. execute if score $countdown mem matches 20 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
  25. execute if score $countdown mem matches 20 as @a at @s run function lib:sounds/teleport
  26. # 属性提升 3
  27. execute if score $countdown mem matches 1 run function mini:slime/game/set_attack
  28. execute if score $countdown mem matches 1 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
  29. execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/error