mc_Ye_HSWS 发表于 2020-3-19 18:14:02

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

首先给战士职业的人上一个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:,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 ~ ~ ~ scoreboard players set @s time 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~9 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ scoreboard players tag @s remove zscd\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~8 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ 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 ~ ~ ~ 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 ~ ~ ~ scoreboard players add @s time 1\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ scoreboard players set @s jn 0\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ scoreboard players tag @s add zscd\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ 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 ~ ~ ~ clear @s carrot_on_a_stick\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ tellraw @s \\\"\\\\u00a7e<系统> \\\\u00a7b已释放技能 \\\\u00a76\\\\u00a7l无畏冲锋\\\"\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ effect @s strength 1 5\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ effect @s speed 1 5\",auto:1b}"},{id:commandblock_minecart,Command:"setblock ~2 ~-2 ~0 chain_command_block 1 replace {Command:\"execute @a ~ ~ ~ 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"}]}]}

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


页: [1]
查看完整版本: 战士钓鱼竿技能ooc(需要两个计分板与一个tag)