generate_bonus.mcfunction 1.9 KB

12345678910111213141516171819202122232425262728
  1. # 生成奖励物品
  2. # 清理残余实体
  3. kill @e[type=item]
  4. kill @e[type=arrow]
  5. kill @e[type=trident]
  6. # 生成 玩家数+1 个奖励
  7. execute store result score #bonus_count mem if entity @a[team=playing]
  8. scoreboard players add #bonus_count mem 1
  9. execute if score #bonus_count mem matches 1.. positioned 17.5 10.2 1967.5 run function item:bonus_item/gameparty/auto/random
  10. execute if score #bonus_count mem matches 2.. positioned 19.5 10.2 1962.5 run function item:bonus_item/gameparty/auto/random
  11. execute if score #bonus_count mem matches 3.. positioned 24.5 10.2 1960.5 run function item:bonus_item/gameparty/auto/random
  12. execute if score #bonus_count mem matches 4.. positioned 29.5 10.2 1962.5 run function item:bonus_item/gameparty/auto/random
  13. execute if score #bonus_count mem matches 5.. positioned 31.5 10.2 1967.5 run function item:bonus_item/gameparty/auto/random
  14. execute if score #bonus_count mem matches 6.. positioned 29.5 10.2 1972.5 run function item:bonus_item/gameparty/auto/random
  15. execute if score #bonus_count mem matches 7.. positioned 24.5 10.2 1974.5 run function item:bonus_item/gameparty/auto/random
  16. execute if score #bonus_count mem matches 8.. positioned 19.5 10.2 1972.5 run function item:bonus_item/gameparty/auto/random
  17. # 生成拾取背景
  18. execute positioned 17.0 10.0 1967.0 run function ltw:state/6/generate_background
  19. execute positioned 19.0 10.0 1962.0 run function ltw:state/6/generate_background
  20. execute positioned 24.0 10.0 1960.0 run function ltw:state/6/generate_background
  21. execute positioned 29.0 10.0 1962.0 run function ltw:state/6/generate_background
  22. execute positioned 31.0 10.0 1967.0 run function ltw:state/6/generate_background
  23. execute positioned 29.0 10.0 1972.0 run function ltw:state/6/generate_background
  24. execute positioned 24.0 10.0 1974.0 run function ltw:state/6/generate_background
  25. execute positioned 19.0 10.0 1972.0 run function ltw:state/6/generate_background