欢迎光临散文网 会员登陆 & 注册

鱼竿枪

2023-03-04 12:30 作者:饕饕鬄餮  | 我要投稿

鱼竿枪1.0版本 新增了随机降温

鱼竿枪1.5版本 新增了随机升温

---------------------------------------------------------------------------------------------------

先创建计分板

/scoreboard objectives add 弹计时 dummy

/scoreboard objectives add 备用子弹 dummy

/scoreboard objectives add 子弹 dummy

/scoreboard objectives add 枪温度 dummy

/scoreboard objectives add 随机温度 dummy

/scoreboard objectives add 升温 dummy

------------------------------------------------------------------

execute @e[type=fishing_hook] ~ ~ ~ playsound mob.zombie.woodbreak @p[r=25] ~ ~ ~ 1 1 0.2

(循环/无条件/保持开启)

/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

(连锁/有条件/保持开启)

特例如果摆放命令方块的前面挡住了,要往左边放,切记!!!

朝左边的第一个命令方块换成((连锁/无条件/保持开启)!!!

--------------------------------------------------------------------------------------------------------------------------

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=111..120}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}   (循环/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=101..110}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍▍▍▍▍▍§7▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=91..100}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍▍▍▍▍§7▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=81..90}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍▍▍▍§7▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=71..80}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍▍▍§7▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=61..70}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍▍§7▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=51..60}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍▍§7▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=41..50}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍▍§7▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=31..40}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍▍§7▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=21..30}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍▍§7▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=11..20}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍▍§7▍▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},scores={子弹=9..10}] ~ ~ ~ 

titleraw @s actionbar {"rawtext":[{"text":"子弹数量:§b▍§7▍▍▍▍▍▍▍▍▍▍▍"},{"text":"\n§7射程: §c15"},{"text":"  温度:"},

{"score":{"name":"@s","objective":"枪温度"}},{"text":"§b\n备用子弹数量:"},{"score":{"name":"@s","

objective":"备用子弹"}}]}    (连锁/无条件/保持开启)

/execute @a[scores={子弹=0}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"备用子弹数量:"},{"

score":{"name":"@s","objective":"备用子弹"}},{"text":"\n§7-低头换弹-"}}]}    (连锁/无条件/保持开启)

/execute @a[scores={子弹=-1}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"因为您的子弹为负数10秒后重新分发5发子弹:"},{"

score":{"name":"@s","objective":"弹计时"}}]}    (连锁/无条件/保持开启)

-----------------------------------------------------------------------------------------------------------------------------------------

/execute @e[type=item,name="弹夹"] ~ ~ ~ scoreboard players add @p[r=3] 备用子弹 30

   (循环/无条件/保持开启)

/kill @e[name="弹夹"]

    (连锁/无条件/保持开启)

--------------------------------------------------------

/effect @e[tag=zd] invisibility 1 1 true

   (循环/无条件/保持开启)

/execute @e[tag=zd] ~ ~ ~ particle minecraft:blue_particle ~ ~1.45 ~

    (连锁/无条件/保持开启)

/execute @e[type=armor_stand,tag=zd] ~ ~ ~ damage @[tag=!zd,r=1] 100 

这个是伤害可以改只能改100这个数字最小1最大无限

    (连锁/有条件/保持开启)

/execute @e[type=armor_stand,tag=zd] ~ ~ ~ damage @a[r=0.5] 20

这个也一样这能数字

    (连锁/有条件/保持开启)

/kill @e[tag=zd]    (连锁/无条件/保持开启)

-------------------------------------------------------------------------------------------

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 10

(脉冲/无条件/保持开启)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 9

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 8

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 7

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 6

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 5

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 4

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 3

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 2

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 1

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 弹计时 0

(连锁/无条件/保持开启/延迟20)

/execute @a[scores={子弹=-210000000..-1}] ~~~ give @s fishing_rod

(连锁/无条件/保持开启)

/execute @a[scores={子弹=-210000000..-1}] ~~~ scoreboard players set @s 子弹 5

(连锁/无条件/保持开启)

/setblock 坐标1 air

(连锁/无条件/保持开启)

-------------------------------------------------------------------------------------------

/execute @a[scores={子弹=-210000000..-1}] ~~~ setblock 坐标1 redstond_block

(循环/无条件/保持开启)

/execute @a[scores={子弹=-210000000..-1}] ~~~ clear @s fishing_rod

(连锁/无条件/保持开启)

--------------------------------------------------------------------------------------------

/execute @a[scores={子弹=121..}] ~~~ scoreboard players set @s 子弹 120

   (循环/无条件/保持开启)

/execute @a[scores={备用子弹=901..}] ~~~ scoreboard players set @s 备用子弹 900

   (循环/无条件/保持开启)

/execute @a[scores={子弹=0..119},rxm=88] ~~~ execute @s[score={备用子弹=119..}] ~~~ scoreboard players remove @s 备用子弹 60

   (循环/无条件/保持开启)

/scoreboard players add @p 子弹 60

    (连锁/有条件/保持开启)

/execute @a[score={子弹=120}] ~ ~ ~ tp @s ~ ~ ~ 0 0

    (连锁/有条件/保持开启)

------------------------------------------------------------------------------------------------------------

/execute @a[scores={枪温度=1..210000000}] ~ ~ ~ scoreboard players random @s 随机温度 5 9

(循环/无条件/保持开启/延迟40)

/execute @a[scores={枪温度=1..210000000}] ~ ~ ~ scoreboard players operation @s 枪温度 -= @s 随机温度

(连锁/无条件/保持开启)

/execute @a[scores={枪温度=-210000000..-1}] ~ ~ ~ scoreboard players set @s 枪温度 0

鱼竿枪的评论 (共 条)

分享到微博请遵守国家法律