夏可文 6 anni fa
parent
commit
ed63c6f8da

+ 1 - 1
data/item/functions/shop/buy_particle1.mcfunction

@@ -5,7 +5,7 @@ tag @s remove canbuy
 tag @s[scores={shop_particle_1=0,green=0..},tag=particle] add canbuy
 tellraw @s[scores={shop_particle_1=1..},tag=!show_particle_1] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功切换 ","color":"aqua"},{"text":"炫彩粒子","color":"green"}]
 tellraw @s[scores={shop_particle_1=1..},tag=show_particle_1] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经激活了 ","color":"aqua"},{"text":"炫彩粒子","color":"green"}]
-tellraw @s[scores={shop_particle_1=0,green=..0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
+tellraw @s[scores={shop_particle_1=0,green=..-1},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
 tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
 tellraw @s[tag=canbuy] ["",{"text":">> ","color":"green","bold":true},"你购买了 ",{"text":"绿光粒子","color":"green"}]
 execute as @s[tag=canbuy] run tellraw @a[tag=!canbuy] ["",{"text":">> ","color":"green","bold":true},{"selector": "@s","color":"green"}," 购买了 ",{"text":"绿光粒子","color":"green"}]

+ 1 - 1
data/item/functions/shop/buy_particle2.mcfunction

@@ -5,7 +5,7 @@ tag @s remove canbuy
 tag @s[scores={shop_particle_2=0,green=3..},tag=particle] add canbuy
 tellraw @s[scores={shop_particle_2=1..},tag=!show_particle_2] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功切换 ","color":"aqua"},{"text":"素雅粒子","color":"green"}]
 tellraw @s[scores={shop_particle_2=1..},tag=show_particle_2] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经激活了 ","color":"aqua"},{"text":"素雅粒子","color":"green"}]
-tellraw @s[scores={shop_particle_2=0,green=..2}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
+tellraw @s[scores={shop_particle_2=0,green=..2},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
 tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
 tellraw @s[tag=canbuy] ["",{"text":">> ","color":"green","bold":true},"你购买了 ",{"text":"素雅粒子","color":"green"}]
 execute as @s[tag=canbuy] run tellraw @a[tag=!canbuy] ["",{"text":">> ","color":"green","bold":true},{"selector": "@s","color":"green"}," 购买了 ",{"text":"素雅粒子","color":"green"}]

+ 1 - 1
data/item/functions/shop/buy_particle3.mcfunction

@@ -5,7 +5,7 @@ tag @s remove canbuy
 tag @s[scores={shop_particle_3=0,green=3..},tag=particle] add canbuy
 tellraw @s[scores={shop_particle_3=1..},tag=!show_particle_3] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功切换 ","color":"aqua"},{"text":"水滴粒子","color":"green"}]
 tellraw @s[scores={shop_particle_3=1..},tag=show_particle_3] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经激活了 ","color":"aqua"},{"text":"水滴粒子","color":"green"}]
-tellraw @s[scores={shop_particle_3=0,green=..2}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
+tellraw @s[scores={shop_particle_3=0,green=..2},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
 tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
 tellraw @s[tag=canbuy] ["",{"text":">> ","color":"green","bold":true},"你购买了 ",{"text":"水滴粒子","color":"green"}]
 execute as @s[tag=canbuy] run tellraw @a[tag=!canbuy] ["",{"text":">> ","color":"green","bold":true},{"selector": "@s","color":"green"}," 购买了 ",{"text":"水滴粒子","color":"green"}]

+ 1 - 1
data/item/functions/shop/buy_particle4.mcfunction

@@ -5,7 +5,7 @@ tag @s remove canbuy
 tag @s[scores={shop_particle_4=0,green=6..},tag=particle] add canbuy
 tellraw @s[scores={shop_particle_4=1..},tag=!show_particle_4] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功切换 ","color":"aqua"},{"text":"烈焰粒子","color":"green"}]
 tellraw @s[scores={shop_particle_4=1..},tag=show_particle_4] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经激活了 ","color":"aqua"},{"text":"烈焰粒子","color":"green"}]
-tellraw @s[scores={shop_particle_4=0,green=..5}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
+tellraw @s[scores={shop_particle_4=0,green=..5},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
 tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
 tellraw @s[tag=canbuy] ["",{"text":">> ","color":"green","bold":true},"你购买了 ",{"text":"烈焰粒子","color":"green"}]
 execute as @s[tag=canbuy] run tellraw @a[tag=!canbuy] ["",{"text":">> ","color":"green","bold":true},{"selector": "@s","color":"green"}," 购买了 ",{"text":"烈焰粒子","color":"green"}]

+ 1 - 1
data/item/functions/shop/buy_particle5.mcfunction

@@ -5,7 +5,7 @@ tag @s remove canbuy
 tag @s[scores={shop_particle_5=0,green=6..},tag=particle] add canbuy
 tellraw @s[scores={shop_particle_5=1..},tag=!show_particle_5] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功切换 ","color":"aqua"},{"text":"炫彩粒子","color":"green"}]
 tellraw @s[scores={shop_particle_5=1..},tag=show_particle_5] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经激活了 ","color":"aqua"},{"text":"炫彩粒子","color":"green"}]
-tellraw @s[scores={shop_particle_5=0,green=..5}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
+tellraw @s[scores={shop_particle_5=0,green=..5},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
 tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
 tellraw @s[tag=canbuy] ["",{"text":">> ","color":"green","bold":true},"你购买了 ",{"text":"炫彩粒子","color":"green"}]
 execute as @s[tag=canbuy] run tellraw @a[tag=!canbuy] ["",{"text":">> ","color":"green","bold":true},{"selector": "@s","color":"green"}," 购买了 ",{"text":"炫彩粒子","color":"green"}]

+ 1 - 1
data/item/functions/shop/buy_particle6.mcfunction

@@ -5,7 +5,7 @@ tag @s remove canbuy
 tag @s[scores={shop_particle_6=0,green=9..},tag=particle] add canbuy
 tellraw @s[scores={shop_particle_6=1..},tag=!show_particle_6] ["",{"text":">> ","color":"aqua","bold":true},{"text":"成功切换 ","color":"aqua"},{"text":"灵魂之焰","color":"green"}]
 tellraw @s[scores={shop_particle_6=1..},tag=show_particle_6] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经激活了 ","color":"aqua"},{"text":"灵魂之焰","color":"green"}]
-tellraw @s[scores={shop_particle_6=0,green=..8}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
+tellraw @s[scores={shop_particle_6=0,green=..8},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]
 tellraw @s[tag=!particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先购买粒子效果系统!","color":"red"}]
 tellraw @s[tag=canbuy] ["",{"text":">> ","color":"green","bold":true},"你购买了 ",{"text":"灵魂之焰","color":"green"}]
 execute as @s[tag=canbuy] run tellraw @a[tag=!canbuy] ["",{"text":">> ","color":"green","bold":true},{"selector": "@s","color":"green"}," 购买了 ",{"text":"灵魂之焰","color":"green"}]