00ll00 il y a 6 ans
Parent
commit
579396abd8

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_apple 1
 scoreboard players remove @s[tag=canbuy] gold 36
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_apple 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_armor 1
 scoreboard players remove @s[tag=canbuy] gold 9
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_armor 1
 scoreboard players remove @s[tag=canbuy] gold 36
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_armor 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_armor 1
 scoreboard players remove @s[tag=canbuy] gold 243
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_arrow 1
 scoreboard players remove @s[tag=canbuy] gold 9
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_arrow 1
 scoreboard players remove @s[tag=canbuy] gold 36
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_arrow 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ function item:shop/special_bgm
 scoreboard players remove @s[tag=canbuy] gold 9
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_bow 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_firework 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_orange 1
 scoreboard players remove @s[tag=canbuy] gold 243
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ function item:shop/special_pig
 scoreboard players remove @s[tag=canbuy] gold 1
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_potion_rst 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_potion_spd 1
 scoreboard players remove @s[tag=canbuy] gold 36
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_potion_spd 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_weapon 1
 scoreboard players remove @s[tag=canbuy] gold 9
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_weapon 1
 scoreboard players remove @s[tag=canbuy] gold 36
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_weapon 1
 scoreboard players remove @s[tag=canbuy] gold 81
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy

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

@@ -12,4 +12,5 @@ scoreboard players add @s[tag=canbuy] shop_weapon 1
 scoreboard players remove @s[tag=canbuy] gold 243
 execute as @s[tag=!canbuy] at @s run function lib:sounds/error
 execute as @s[tag=canbuy] at @s run function lib:sounds/levelup
-execute as @s[tag=canbuy] run function item:shop/refresh_gold
+execute as @s[tag=canbuy] run function item:shop/refresh_gold
+tag @s remove canbuy