地鐵逃生服必備‖撬棍開(kāi)箱指令

地鐵逃生服必備‖撬棍開(kāi)箱指令
前置
/scoreboard objectives add 撬棍 dummy
指令
scoreboard players add @a 撬棍 0
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=0..}] ^ ^1.5 ^1 detect ~ ~ ~ bedrock 0 scoreboard players add @s 撬棍 1
execute @a[hasitem={item=stick,quantity=..0,location=slot.weapon.mainhand},scores={撬棍=1..}] ~ ~ ~ scoreboard players set @s 撬棍 0
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=1..}] ^ ^1.5 ^1 detect ~ ~ ~ air 0 scoreboard players set @s 撬棍 0
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=100..}] ^ ^1.5 ^1 detect ~ ~ ~ bedrock 0 fill ~~~~~~ air
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=100..}] ~~~ playsound random.anvil_land @s ~~~ 1 3
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=100..}] ~~~ scoreboard players set @s 撬棍 -100
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=-1}] ~~~ playsound random.levelup @s ~~~ 1 2
scoreboard players add @a[scores={撬棍=..-1}] 撬棍 1
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=1..}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"translate":"%%7","with":{"rawtext":[{"selector":"@s[scores={撬棍=90..}]"},{"selector":"@s[scores={撬棍=70..}]"},{"selector":"@s[scores={撬棍=50..}]"},{"selector":"@s[scores={撬棍=30..}]"},{"selector":"@s[scores={撬棍=10..}]"},{"selector":"@s[scores={撬棍=1..}]"},{"text":"§l§a ▅▅▅▅▅§r"},{"text":"§l§a ▅▅▅▅▅§r"},{"text":"§l§e ▅▅▅▅§f▅§r"},{"text":"§l§g ▅▅▅§f▅▅§r"},{"text":"§l§6 ▅▅§f▅▅▅§r"},{"text":"§l§c ▅§f▅▅▅▅§r"},{"text":"§l§f ▅▅▅▅▅§r"}]}},{"text":"\n§c[§b正在拋開(kāi)基巖§c]§r"}]}
execute @a[hasitem={item=stick,quantity=1..,location=slot.weapon.mainhand},scores={撬棍=..-1}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"translate":"%%7","with":{"rawtext":[{"selector":"@s[scores={撬棍=-90..}]"},{"selector":"@s[scores={撬棍=-70..}]"},{"selector":"@s[scores={撬棍=-50..}]"},{"selector":"@s[scores={撬棍=-30..}]"},{"selector":"@s[scores={撬棍=-10..}]"},{"selector":"@s[scores={撬棍=-1..}]"},{"text":"§l§a▅▅▅▅▅§r"},{"text":"§l§a▅▅▅▅▅§r"},{"text":"§l§e▅▅▅▅§f▅§r"},{"text":"§l§g▅▅▅§f▅▅§r"},{"text":"§l§6▅▅§f▅▅▅§r"},{"text":"§l§c▅§f▅▅▅▅§r"},{"text":"§l§f▅▅▅▅▅§r"}]}},{"text":"\n§c[§b撬棍冷卻中§c]§r"}]}