generate_bonus.mcfunction 1.8 KB

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