Parcourir la source

修改颜色,新增测试方法

LTCatt il y a 6 ans
Parent
commit
c297afd392

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

@@ -4,7 +4,7 @@
 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":"green","bold":true},"尾迹特效已 ",{"text":"关闭","color":"green"}]
 execute as @s[scores={shop_particle_s=1..}] at @s run function lib:sounds/hit
 
 scoreboard players set @s particle_type 0

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

@@ -4,7 +4,7 @@
 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":"green","bold":true},"尾迹特效已切换为 ",{"text":"绿光","color":"green"}]
 execute as @s[scores={shop_particle_s=1..}] at @s run function lib:sounds/hit
 
 scoreboard players set @s particle_type 1

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

@@ -7,7 +7,7 @@ tag @s[scores={shop_particle_s=1..,shop_particle_2=0,green=3..}] add canbuy
 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..,shop_particle_2=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹特效已切换为 ",{"text":"素雅","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..,shop_particle_2=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已切换为 ",{"text":"素雅","color":"green"}]
 execute as @s[scores={shop_particle_s=1..,shop_particle_2=1..}] at @s run function lib:sounds/hit
 
 tellraw @s[scores={shop_particle_s=1..,shop_particle_2=0,green=..2}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买它!","color":"red"}]

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

@@ -7,7 +7,7 @@ tag @s[scores={shop_particle_s=1..,shop_particle_3=0,green=3..}] add canbuy
 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..,shop_particle_3=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹特效已切换为 ",{"text":"水滴","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..,shop_particle_3=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已切换为 ",{"text":"水滴","color":"green"}]
 execute as @s[scores={shop_particle_s=1..,shop_particle_3=1..}] at @s run function lib:sounds/hit
 
 tellraw @s[scores={shop_particle_s=1..,shop_particle_3=0,green=..2}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买它!","color":"red"}]

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

@@ -7,7 +7,7 @@ tag @s[scores={shop_particle_s=1..,shop_particle_4=0,green=6..}] add canbuy
 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..,shop_particle_4=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹特效已切换为 ",{"text":"烈焰","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..,shop_particle_4=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已切换为 ",{"text":"烈焰","color":"green"}]
 execute as @s[scores={shop_particle_s=1..,shop_particle_4=1..}] at @s run function lib:sounds/hit
 
 tellraw @s[scores={shop_particle_s=1..,shop_particle_4=0,green=..5}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买它!","color":"red"}]

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

@@ -7,7 +7,7 @@ tag @s[scores={shop_particle_s=1..,shop_particle_5=0,green=6..}] add canbuy
 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..,shop_particle_5=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹特效已切换为 ",{"text":"炫彩","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..,shop_particle_5=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已切换为 ",{"text":"炫彩","color":"green"}]
 execute as @s[scores={shop_particle_s=1..,shop_particle_5=1..}] at @s run function lib:sounds/hit
 
 tellraw @s[scores={shop_particle_s=1..,shop_particle_5=0,green=..5}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石来购买它!","color":"red"}]

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

@@ -7,7 +7,7 @@ tag @s[scores={shop_particle_s=1..,shop_particle_6=0,green=9..}] add canbuy
 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..,shop_particle_6=1..}] ["",{"text":">> ","color":"aqua","bold":true},"尾迹特效已切换为 ",{"text":"魂焰","color":"aqua"}]
+tellraw @s[scores={shop_particle_s=1..,shop_particle_6=1..}] ["",{"text":">> ","color":"green","bold":true},"尾迹特效已切换为 ",{"text":"魂焰","color":"green"}]
 execute as @s[scores={shop_particle_s=1..,shop_particle_6=1..}] at @s run function lib:sounds/hit
 
 tellraw @s[scores={shop_particle_s=1..,shop_particle_6=0,green=..8}] ["",{"text":">> ","color":"red","bold":true},{"text":"你没有足够的绿宝石块来购买它!","color":"red"}]

+ 1 - 1
data/ltw/functions/init.mcfunction

@@ -56,7 +56,6 @@ scoreboard objectives add effect_floating dummy "悬浮计时"
 scoreboard objectives remove game_id
 scoreboard objectives add game_id dummy "游戏编号"
 scoreboard players set $ game_id 0
-scoreboard objectives add particle_type dummy "粒子种类"
 
 # 商店系统记分板
 scoreboard objectives add gold dummy "金粒"
@@ -83,6 +82,7 @@ scoreboard objectives add shop_particle_3 dummy "粒子效果3"
 scoreboard objectives add shop_particle_4 dummy "粒子效果4"
 scoreboard objectives add shop_particle_5 dummy "粒子效果5"
 scoreboard objectives add shop_particle_6 dummy "粒子效果6"
+scoreboard objectives add particle_type dummy "粒子种类"
 scoreboard objectives add shop_dice dummy "骰子"
 scoreboard objectives add stat_total dummy "总场次"
 scoreboard objectives add stat_win dummy "总胜场"

+ 12 - 0
data/test/functions/reset/emerald.mcfunction

@@ -0,0 +1,12 @@
+
+scoreboard objectives remove green
+scoreboard objectives remove green_total
+scoreboard objectives remove shop_particle_s
+scoreboard objectives remove shop_particle_2
+scoreboard objectives remove shop_particle_3
+scoreboard objectives remove shop_particle_4
+scoreboard objectives remove shop_particle_5
+scoreboard objectives remove shop_particle_6
+scoreboard objectives remove particle_type
+function ltw:init
+tellraw @a ["",{"text": ">> ","color": "red","bold":true},{"text":" 已重置绿宝石记分板记录!","color":"red"}]