LTCatt 6 лет назад
Родитель
Сommit
6846b45e6c

+ 4 - 4
data/item/functions/bonus_item/rank/random.mcfunction

@@ -9,7 +9,7 @@ scoreboard players operation $t_quality mem *= $c_10 mem
 scoreboard players operation $t_quality mem += $random mem
 
 # 根据品质生成不同的物品
-execute if score $t_quality mem matches ..25 run function item:bonus_item/rank/white
-execute if score $t_quality mem matches 25..60 run function item:bonus_item/rank/green
-execute if score $t_quality mem matches 60..84 run function item:bonus_item/rank/blue
-execute if score $t_quality mem matches 85.. run function item:bonus_item/rank/purple
+execute if score $t_quality mem matches ..15 run function item:bonus_item/rank/white
+execute if score $t_quality mem matches 15..54 run function item:bonus_item/rank/green
+execute if score $t_quality mem matches 55..79 run function item:bonus_item/rank/blue
+execute if score $t_quality mem matches 80.. run function item:bonus_item/rank/purple

+ 10 - 9
data/ltw/functions/state/6/generate_bonus.mcfunction

@@ -1,15 +1,16 @@
 # 生成奖励物品
 kill @e[type=item]
 
-execute store result score $t_player_count mem if entity @a[tag=!watcher]
-execute if score $t_player_count mem matches 1.. positioned 9.0 12.5 2012.5 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 2.. positioned 5.0 12.5 2012.5 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 3.. positioned 1.5 12.5 2009.0 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 4.. positioned 1.5 12.5 2005.0 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 5.. positioned 5.0 12.5 2001.5 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 6.. positioned 9.0 12.5 2001.5 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 7.. positioned 12.5 12.5 2005.0 run function item:bonus_item/rank/random
-execute if score $t_player_count mem matches 8.. positioned 12.5 12.5 2009.0 run function item:bonus_item/rank/random
+execute store result score $t_bonus_count mem if entity @a[tag=!watcher]
+scoreboard players add $t_bonus_count mem 1
+execute if score $t_bonus_count mem matches 1.. positioned 9.0 12.5 2012.5 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 2.. positioned 5.0 12.5 2012.5 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 3.. positioned 1.5 12.5 2009.0 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 4.. positioned 1.5 12.5 2005.0 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 5.. positioned 5.0 12.5 2001.5 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 6.. positioned 9.0 12.5 2001.5 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 7.. positioned 12.5 12.5 2005.0 run function item:bonus_item/rank/random
+execute if score $t_bonus_count mem matches 8.. positioned 12.5 12.5 2009.0 run function item:bonus_item/rank/random
 
 # 生成拾取窗口
 execute as @e[type=item] at @s run fill ~-0.2 ~ ~-0.2 ~0.2 ~ ~0.2 air