Browse Source

修复骰子temp的bug

HerobrineXia 6 năm trước cách đây
mục cha
commit
47b2cc2aca

+ 2 - 1
data/lib/functions/roll_dice/draw.mcfunction

@@ -1,3 +1,4 @@
 scoreboard players add @s gold 9
 scoreboard players add @s gold 9
 function item:shop/refresh_gold
 function item:shop/refresh_gold
-tag @a remove self
+tag @a remove self
+scoreboard players set @s temp 0

+ 1 - 0
data/lib/functions/roll_dice/lose.mcfunction

@@ -1,2 +1,3 @@
 # 无事发生
 # 无事发生
+scoreboard players set @s temp 0
 tag @a remove self
 tag @a remove self

+ 1 - 0
data/lib/functions/roll_dice/super_lose.mcfunction

@@ -1,5 +1,6 @@
 scoreboard players set @s gold 0
 scoreboard players set @s gold 0
 function item:shop/refresh_gold
 function item:shop/refresh_gold
+scoreboard players set @s temp 0
 tag @a remove self
 tag @a remove self
 tag @s add self
 tag @s add self
 tellraw @a[tag=!self] ["",{"text":">> ","color":"red","bold":true},{"selector": "@s","color":"red"}," 非到了一个境界,倾家荡产,被老板丢出了赌博房!"]
 tellraw @a[tag=!self] ["",{"text":">> ","color":"red","bold":true},{"selector": "@s","color":"red"}," 非到了一个境界,倾家荡产,被老板丢出了赌博房!"]

+ 1 - 0
data/lib/functions/roll_dice/super_win.mcfunction

@@ -1,5 +1,6 @@
 scoreboard players add @s gold 243
 scoreboard players add @s gold 243
 function item:shop/refresh_gold
 function item:shop/refresh_gold
+scoreboard players set @s temp 0
 tag @a remove self
 tag @a remove self
 tag @s add self
 tag @s add self
 tellraw @a[tag=!self] ["",{"text":">> ","color":"gold","bold":true},{"selector": "@s","color":"gold"}," 欧到了一个境界,从老板那赢得了3金块!"]
 tellraw @a[tag=!self] ["",{"text":">> ","color":"gold","bold":true},{"selector": "@s","color":"gold"}," 欧到了一个境界,从老板那赢得了3金块!"]

+ 1 - 0
data/lib/functions/roll_dice/win.mcfunction

@@ -1,3 +1,4 @@
 scoreboard players add @s gold 18
 scoreboard players add @s gold 18
 function item:shop/refresh_gold
 function item:shop/refresh_gold
+scoreboard players set @s temp 0
 tag @a remove self
 tag @a remove self