我的世界指令槍械

魚竿槍(無穿墻)
前置指令
前置指令
/scoreboard objectives add HuanDtime dummy
/scoreboard objectives add ZDtime dummy
/scoreboard objectives add ZDS dummy
/scoreboard objectives add ZD dummy
然后的
a1execute @e[type=fishing_hook] ~ ~ ~ playsoundmob.zombie.woodbreak @a[r=25,scores={ZD=1..}] ~ ~ ~ 1 1 0.2循環(huán)無條件保持開啟
a2execute @e[type=fishing_hoom] ~ ~ ~ execute @a[r=1.5] ~ ~ ~ execute @s ~ ~ ~ scoreboard players remove @s[scores={ZD=1..}] ZD=1連鎖無條件保持開啟
a3execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd1" ^^^1.2連鎖有條件保持開啟
a4execute @e[name="zd1"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd連鎖有條件保持開啟
a5execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand"zd2" ^ ^ ^2.2連鎖無條件保持開啟
a6execute @e[name="zd2"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd連鎖有條件保持開啟
a7execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand"zd2" ^ ^ ^2.2連鎖無條件保持開啟
a8execute @e[name="zdn"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd連鎖有條件保持開啟
a9execute @e[tag=zd] ~ ~ ~ tp ~ ~ ~連鎖無條件保持開啟
a10execute @e[type=fishing_hook] ~ ~ ~ execute @p[r=2] ~ ~ ~ tag @p add 后坐力連鎖有條件保持開啟
a11 execute @a[tag=后坐力] ~ ~ ~ tp ~ ~ ~ facing ^ ^0.5 ^8連鎖無條件保持開啟
a12camerashake add @a[tag=后坐力] 2 0.15 positional 連鎖有條件保持開啟
a13tag @a[tag="后坐力"] remove "后坐力"連鎖無條件保持開啟
a13kill @e[type=fishing_hook]連鎖有條件保持開啟
b1scoreboard players add @e[name=zd1] ZDtime 1循環(huán)無條件保持開啟
b2scoreboard players add @e[name=zd1] ZDtime 1連鎖無條件保持開啟
b3scoreboard players add @e[name=zd1] ZDtime n+1連鎖有條件保持開啟
b4kill @e[scores={ZDtime=3..}]連鎖有條件保持開啟
c1tag @a[scores={ZD=..0}] add HuanD循環(huán)無條件保持開啟
c2tag @a [scores={ZDS=..0},tag=HuanD] add HuanDNO連鎖無條件保持開啟
c3scoreboard players add @e[tag=HuanD,tag=!HuanDNO] HuanDtime 1連鎖有條件保持開啟
c4scoreboard players remove @a[scores={HuanDtime=100..}] ZDS 30連鎖有條件保持開啟
c5scoreboard players set @a[scores={HuanDtime=100..}] ZD 30連鎖有條件保持開啟
c6tag @a[scores={HuanDtime=100..}] remove HuanD連鎖有條件保持開啟
c7scoreboard players reset @a[scores={HuanDtime=100..}] HuanDtime連鎖有條件保持開啟
c8tag @a[scores={ZDS=1..}] remove HuanDNO連鎖有條件保持開啟
d1execute @e[rxm=70,type=item,name="子彈"] ~ ~ ~ scoreboard players set @p[r=3] ZDS 30循環(huán)無條件保持開啟
d2execute @e[rxm=70,type=item,name="子彈"] ~ ~ ~ playsound random.anvil_land @s[r=3] ~ ~ ~ 2 2 2連鎖無條件保持開啟
d3execute @e[rxm=70,type=item,name="子彈"] ~ ~ ~ playsound mob.blaze.hit @p[r=3] ~ ~ ~ 1 1 1連鎖有條件保持開啟
d4kill @e[rxm=80,name="子彈"]連鎖有條件保持開啟
上面的需要用鐵砧把物品命名為子彈
e1effect @e[tag=zd] invisibility 11 true循環(huán)無條件保持開啟
e2execute @e[tag=zd] ~ ~ ~ particle minecraft:blue_flame_particle ~ ~1.45 ~連鎖無條件保持開啟
e3execute @e[tag=zd] ~ ~ ~ effect @e[tag=!zd,r=1,type=!item] instant_damage 1 0 true連鎖有條件保持開啟
e4scoreboard players add @a ZD 0連鎖有條件保持開啟
f1execute @a[tag=HuanDNO] ~ ~ ~ titleraw @s actionbar{"rawtext":[{"text":"彈藥"},{"score":{"name":"@s","objective":"ZD"}},{"next":"/"},{"score":{"name":"@s","objective":"ZDS"}}]}循環(huán)無條件保持開啟
f2execute @a[tag=!HuanD] ~ ~ ~ titleraw @s actionber{"rawtext":[{"text":"彈藥"},{"score":{"name":"@s","objective":"ZD"}},{"text":"/"},{"score":{"name":"@s","objective":"ZDS"}}]}連鎖無條件保持開啟
f3execute @a[tag=HuanD,tag=HuanDNO] ~ ~ ~ titleraw @s actionber {"rawtext":[{"text":"§b§l彈藥§e-[裝彈中]-"}]}連鎖有條件保持開啟