Ver Fonte

修改名称为尾迹特效

LTCatt há 6 anos atrás
pai
commit
a5047b218c

+ 2 - 2
data/item/functions/shop/buy_particle0.mcfunction

@@ -1,10 +1,10 @@
 # 关闭粒子 (0 e)
 # 触发器ID 102
 
-tellraw @s[scores={shop_particle_s=0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先在左侧购买尾迹效果才能切换尾迹种类!","color":"red"}]
+tellraw @s[scores={shop_particle_s=0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先在左侧购买尾迹特效才能切换尾迹种类!","color":"red"}]
 execute as @s[scores={shop_particle_s=0}] at @s run function lib:sounds/error
 
-tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你关闭了自己的尾迹效果","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你关闭了自己的尾迹特效","color":"aqua"}]
 execute as @s[scores={shop_particle_s=1..}] at @s run function lib:sounds/hit
 
 scoreboard players set @s particle_type 0

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

@@ -1,10 +1,10 @@
 # 绿光粒子 (0 e)
 # 触发器ID 103
 
-tellraw @s[scores={shop_particle_s=0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先在左侧购买尾迹效果才能切换尾迹种类!","color":"red"}]
+tellraw @s[scores={shop_particle_s=0}] ["",{"text":">> ","color":"red","bold":true},{"text":"你需要先在左侧购买尾迹特效才能切换尾迹种类!","color":"red"}]
 execute as @s[scores={shop_particle_s=0}] at @s run function lib:sounds/error
 
-tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹效果已切换为 ",{"text":"绿光","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹特效已切换为 ",{"text":"绿光","color":"aqua"}]
 execute as @s[scores={shop_particle_s=1..}] at @s run function lib:sounds/hit
 
 scoreboard players set @s particle_type 1

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

@@ -2,7 +2,8 @@
 # 触发器ID 104
 execute unless entity @s[scores={shop_particle_2=0..}] run scoreboard players set @s shop_particle_2 0
 tag @s remove canbuy
-tag @s[scores={shop_particle_2=0,green=3..},tag=particle] add canbuy
+tag @s[scores={shop_particle_s=1,shop_particle_2=0,green=3..}] 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},tag=particle] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买这个粒子!","color":"red"}]

+ 3 - 3
data/item/functions/shop/buy_particle_system.mcfunction

@@ -4,10 +4,10 @@ execute unless entity @s[scores={shop_particle_s=0..}] run scoreboard players se
 tag @s remove canbuy
 tag @s[scores={shop_particle_s=0,green=18..}] add canbuy
 
-tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经购买了尾迹效果了!","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..}] ["",{"text":">> ","color":"aqua","bold":true},{"text":"你已经购买了尾迹特效了!","color":"aqua"}]
 tellraw @s[scores={shop_particle_s=0,green=..17}] ["",{"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"}]
+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"}]
 
 scoreboard players add @s[tag=canbuy] shop_particle_s 1
 scoreboard players remove @s[tag=canbuy] green 18