魚竿槍

魚竿槍1.0版本 新增了隨機(jī)降溫
魚竿槍1.5版本 新增了隨機(jī)升溫
---------------------------------------------------------------------------------------------------
先創(chuàng)建計(jì)分板
/scoreboard objectives add 彈計(jì)時(shí) dummy
/scoreboard objectives add 備用子彈 dummy
/scoreboard objectives add 子彈 dummy
/scoreboard objectives add 槍溫度 dummy
/scoreboard objectives add 隨機(jī)溫度 dummy
/scoreboard objectives add 升溫 dummy
------------------------------------------------------------------
execute @e[type=fishing_hook] ~ ~ ~ playsound mob.zombie.woodbreak @p[r=25] ~ ~ ~ 1 1 0.2
(循環(huán)/無條件/保持開啟)
/execute @a[scores={子彈=0..210000000}] ~~~ scoreboard players remove @s 子彈 1
(連鎖/有條件/保持開啟)
/execute @a[scores={槍溫度=1..100}] ~ ~ ~ scoreboard players random @s 升溫 2 5
(連鎖/有條件/保持開啟)
/execute @a[scores={槍溫度=1..100}] ~ ~ ~ scoreboard players operation @s 槍溫度 += @s 升溫
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd1" ^ ^ ^1.2
(連鎖/有條件/保持開啟)
execute @e[name="zd1"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd2" ^ ^ ^2.2
(連鎖/有條件/保持開啟)
execute @e[name="zd2"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd3" ^ ^ ^3.2
(連鎖/有條件/保持開啟)
execute @e[name="zd3"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd4" ^ ^ ^4.2
(連鎖/有條件/保持開啟)
execute @e[name="zd4"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd5" ^ ^ ^5.2
(連鎖/有條件/保持開啟)
execute @e[name="zd5"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd6" ^ ^ ^6.2
(連鎖/有條件/保持開啟)
execute @e[name="zd6"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd7" ^ ^ ^7.2
(連鎖/有條件/保持開啟)
execute @e[name="zd7"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd8" ^ ^ ^8.2
(連鎖/有條件/保持開啟)
execute @e[name="zd8"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd9" ^ ^ ^9.2
(連鎖/有條件/保持開啟)
execute @e[name="zd9"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd10" ^ ^ ^10.2
(連鎖/有條件/保持開啟)
execute @e[name="zd10"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd11" ^ ^ ^11.2
(連鎖/有條件/保持開啟)
execute @e[name="zd11"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd12" ^ ^ ^12.2
(連鎖/有條件/保持開啟)
execute @e[name="zd12"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd13" ^ ^ ^13.2
(連鎖/有條件/保持開啟)
execute @e[name="zd13"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd14" ^ ^ ^14.2
(連鎖/有條件/保持開啟)
execute @e[name="zd14"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
execute @e[type=fishing_hook] ~ ~ ~ execute @p ~ ~ ~ summon armor_stand "zd15" ^ ^ ^15.2
(連鎖/有條件/保持開啟)
execute @e[name="zd15"] ~ ~ ~ detect ~ ~1 ~ air 0 tag @s add zd
(連鎖/有條件/保持開啟)
特例如果擺放命令方塊的前面擋住了,要往左邊放,切記!??!
朝左邊的第一個(gè)命令方塊換成((連鎖/無條件/保持開啟)?。?!
--------------------------------------------------------------------------------------------------------------------------
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=111..120}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}???(循環(huán)/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=101..110}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍▍▍▍▍▍§7▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=91..100}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍▍▍▍▍§7▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=81..90}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍▍▍▍§7▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=71..80}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍▍▍§7▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=61..70}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍▍§7▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=51..60}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍▍§7▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=41..50}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍▍§7▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=31..40}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍▍§7▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=21..30}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍▍§7▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=11..20}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍▍§7▍▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子彈=9..10}] ~ ~ ~?
titleraw @s actionbar {"rawtext":[{"text":"子彈數(shù)量:§b▍§7▍▍▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"??溫度:"},
{"score":{"name":"@s","objective":"槍溫度"}},{"text":"§b\n備用子彈數(shù)量:"},{"score":{"name":"@s","
objective":"備用子彈"}}]}????(連鎖/無條件/保持開啟)
/execute @a[scores={子彈=0}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"備用子彈數(shù)量:"},{"
score":{"name":"@s","objective":"備用子彈"}},{"text":"\n§7-低頭換彈-"}}]}????(連鎖/無條件/保持開啟)
/execute @a[scores={子彈=-1}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"因?yàn)槟淖訌棡樨?fù)數(shù)10秒后重新分發(fā)5發(fā)子彈:"},{"
score":{"name":"@s","objective":"彈計(jì)時(shí)"}}]}????(連鎖/無條件/保持開啟)
-----------------------------------------------------------------------------------------------------------------------------------------
/execute @e[type=item,name="彈夾"] ~ ~ ~ scoreboard players add @p[r=3] 備用子彈 30
???(循環(huán)/無條件/保持開啟)
/kill @e[name="彈夾"]
????(連鎖/無條件/保持開啟)
--------------------------------------------------------
/effect @e[tag=zd] invisibility 1 1 true
???(循環(huán)/無條件/保持開啟)
/execute @e[tag=zd] ~ ~ ~ particle minecraft:blue_particle ~ ~1.45 ~
????(連鎖/無條件/保持開啟)
/execute @e[type=armor_stand,tag=zd] ~ ~ ~ damage @[tag=!zd,r=1] 100?
這個(gè)是傷害可以改只能改100這個(gè)數(shù)字最小1最大無限
????(連鎖/有條件/保持開啟)
/execute @e[type=armor_stand,tag=zd] ~ ~ ~ damage @a[r=0.5] 20
這個(gè)也一樣這能數(shù)字
????(連鎖/有條件/保持開啟)
/kill @e[tag=zd]????(連鎖/無條件/保持開啟)
-------------------------------------------------------------------------------------------
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 10
(脈沖/無條件/保持開啟)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 9
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 8
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 7
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 6
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 5
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 4
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 3
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 2
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 1
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 彈計(jì)時(shí) 0
(連鎖/無條件/保持開啟/延遲20)
/execute @a[scores={子彈=-210000000..-1}] ~~~ give @s fishing_rod
(連鎖/無條件/保持開啟)
/execute @a[scores={子彈=-210000000..-1}] ~~~ scoreboard players set @s 子彈 5
(連鎖/無條件/保持開啟)
/setblock 坐標(biāo)1 air
(連鎖/無條件/保持開啟)
-------------------------------------------------------------------------------------------
/execute @a[scores={子彈=-210000000..-1}] ~~~ setblock 坐標(biāo)1 redstond_block
(循環(huán)/無條件/保持開啟)
/execute @a[scores={子彈=-210000000..-1}] ~~~ clear @s fishing_rod
(連鎖/無條件/保持開啟)
--------------------------------------------------------------------------------------------
/execute @a[scores={子彈=121..}] ~~~ scoreboard players set @s 子彈 120
???(循環(huán)/無條件/保持開啟)
/execute @a[scores={備用子彈=901..}] ~~~ scoreboard players set @s 備用子彈 900
???(循環(huán)/無條件/保持開啟)
/execute @a[scores={子彈=0..119},rxm=88] ~~~ execute @s[score={備用子彈=119..}] ~~~ scoreboard players remove @s 備用子彈 60
???(循環(huán)/無條件/保持開啟)
/scoreboard players add @p 子彈 60
????(連鎖/有條件/保持開啟)
/execute @a[score={子彈=120}] ~ ~ ~ tp @s ~ ~ ~ 0 0
????(連鎖/有條件/保持開啟)
------------------------------------------------------------------------------------------------------------
/execute @a[scores={槍溫度=1..210000000}] ~ ~ ~ scoreboard players random @s 隨機(jī)溫度 5 9
(循環(huán)/無條件/保持開啟/延遲40)
/execute @a[scores={槍溫度=1..210000000}] ~ ~ ~ scoreboard players operation @s 槍溫度 -= @s 隨機(jī)溫度
(連鎖/無條件/保持開啟)
/execute @a[scores={槍溫度=-210000000..-1}] ~ ~ ~ scoreboard players set @s 槍溫度 0