查看: 627|回复: 0

战士钓鱼竿技能ooc(需要两个计分板与一个tag)

[复制链接]

该用户从未签到

1

主题

0

帖子

14

积分

初来乍到

UID
752
云币
0
金钱
13
好评
0
性别
保密
在线时间
0 小时
注册时间
2020-3-19
发表于 2020-3-19 18:14:02 | 显示全部楼层 |阅读模式 IP:浙江温州
首先给战士职业的人上一个zs标签,:scoreboard players tag 玩家名 add zs再输入/scoreboard添加一个胡萝卜竿的计分板,并且此计分板要名为jn       胡萝卜钓竿的id我忘记了,所以自己创建吧
还需要创建一个time      /scoreboard objectives add time dummy
然后在命令方块里面打入:/summon falling_block ~ ~1.5 ~ {Time:1,Block:"minecraft:redstone_block",Motion:[0d,-1d,0d],Passengers:[{id:falling_block,Time:1,Block:"minecraft:activator_rail",Passengers:[{id:commandblock_minecart,Command:"blockdata ~ ~-2 ~ {auto:0b,Command:\"\"}"},{id:commandblock_minecart,Command:"setblock ~2 ~10 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_time_min=120] ~ ~ ~ scoreboard players set @s time 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~9 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,tag=zscd,score_time_min=120] ~ ~ ~ scoreboard players tag @s remove zscd\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~8 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,tag=zscd,score_time_min=120] ~ ~ ~ replaceitem entity @s slot.hotbar.1 minecraft:carrot_on_a_stick 1 0 {ench:[{id:51s,lvl:1s}],display:{Name:\\\"技能---无畏冲锋\\\",Lore:[\\\"『---------------------』\\\",\\\"     右键释放:\\\",\\\"    无畏冲锋\\\",\\\"『---------------------』\\\",]}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~7 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,tag=zscd,score_time_min=120] ~ ~ ~ tellraw @s \\\"\\\\u00a7e<系统> \\\\u00a7b技能 \\\\u00a76\\\\u00a7l无畏冲锋 \\\\u00a7b已准备完毕\\\"\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~6 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,tag=zscd] ~ ~ ~ scoreboard players add @s time 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ scoreboard players set @s jn 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ scoreboard players tag @s add zscd\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ replaceitem entity @s slot.hotbar.1 minecraft:barrier 1 0 {ench:[{id:0s,lvl:1s}],display:{Name:\\\"冷却中\\\"}}\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ clear @s carrot_on_a_stick\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ tellraw @s \\\"\\\\u00a7e<系统> \\\\u00a7b已释放技能 \\\\u00a76\\\\u00a7l无畏冲锋\\\"\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ effect @s strength 1 5\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ effect @s speed 1 5\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-2 ~0 chain_command_block 1 replace {Command:\"execute @a[tag=zs,score_jn_min=1] ~ ~ ~ effect @s absorption 2 10\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~ ~1 ~ command_block 0 replace {auto:1b,Command:\"fill ~ ~ ~ ~ ~-2 ~ air\"}"},{id:commandblock_minecart,Command:"kill @e[type=commandblock_minecart,r=1]"}]}]}

打完之后,拉一下拉杆,会在附近出现一行命令方块,把最底下的连锁型命令方块改成循环开启的命令方块,然后右键钓鱼竿,即可释放技能


楼主热帖
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号

本版积分规则

手机版|小黑屋|秋月社区

|网站地图

GMT+8, 2024-11-25 06:35 , Processed in 0.063470 second(s), 27 queries , Gzip On.

Powered by Qiu Yue X3.4 Licensed

© 2019-2024 Comsenz Inc.