tick20.mcfunction 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  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 effect give @e[type=slime] speed 2 6
  18. execute if score $countdown mem matches 40 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的速度提高了!","color":"red"}]
  19. execute if score $countdown mem matches 40 as @a at @s run function lib:sounds/error
  20. # 属性提升 3
  21. execute if score $countdown mem matches 20 run function mini:slime/game/set_attack
  22. execute if score $countdown mem matches 20 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "史莱姆的攻击力提高了!","color":"red"}]
  23. execute if score $countdown mem matches 20 as @a at @s run function lib:sounds/error
  24. # 召唤提示 2
  25. execute if score $countdown mem matches 6 run tellraw @a ["",{"text": ">> ","color":"gold","bold": true},{"text": "新的史莱姆将在 5 秒后空投到球场中央!","color":"gold"}]
  26. execute if score $countdown mem matches 6 as @a at @s run function lib:sounds/error
  27. # 召唤 2
  28. execute if score $countdown mem matches 1 run function mini:slime/game/summon
  29. execute if score $countdown mem matches 1 run tellraw @a ["",{"text": ">> ","color":"red","bold": true},{"text": "新的史莱姆已空投!","color":"red"}]
  30. execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/teleport