二分法指令商店(Bug已修復(fù))

以下命令方塊兒全部設(shè)定為無條件
execute @a ~~~ scoreboard players operation @s 金幣2 =@s金幣
execute @a[scores={價格=1..}] ~~~ scoreboard players operation @s 金幣2 -=@s 價格
title @a[scores={金幣2=..-1,價格=0..}] title §l§c金幣不足!
title @a[scores={金幣2=0..,價格=0..3] title §l§a購買成功!
execute @a[scores={金幣2=0..,價格=0..}] ~~~ scoreboard players operation @s 金幣 -= @s 價格
execute @a[scores={金幣2=0..,價格=0..}] ~~~ clone ~~-3~ ~~-3~ ~~1~
execute @a[scores={金幣2=0..,價格=0..}] ~~~ setblock ~~1~ air 0 destroy
kill @e[type=item,name=“木桶”]
execute @a[scores={金幣2=0..,價格=0..}] ~~~ title as subtitle §b @e[type=item,dy=2,c=1] §f已放入您的背包
execute @a[scores={金幣2=0..,價格=0..}] ~~~ playsound random.levelup @s
scoreboard players reset @a 價格
下面這條指令是用在商店中的可以無限復(fù)制在商店中具體怎么使用看視頻
scoreboard players set @p[dy=2] 價格
商店的結(jié)構(gòu)看視頻不可更換儲存容器