雷鸣剑,我的世界雷鸣剑怎么做

我的世界是个生存探险类的手游, 在游戏当中可以制作很多动西, 比如武器都可以制作出来的, 其中雷鸣剑是大家都喜欢的一把武器, 每当杀死一个都会出现雷电落地的特效, 下面就给大家介绍下我的世界雷鸣剑怎么做 。

下面直接给出指令的时候会给大家讲解一下的:
刚开始的时候就要先创建四个计分板:
/scoreboard objectives add ss dummy
/scoreboard objectives add sc dummy
/scoreboard objectives add zc stat.damageDealt
/scoreboard objectives add mz dummy
下面的指令第一个循环接后面连锁
/scoreboard players set [url=home.php?mod=space&uid=311230]@A[/url] sc 2 {SelectedItem:{id:"minecraft:golden_sword",Count:1b,Damage:0s,tag:{display:{Name:"雷鸣剑"}}}}
这一跳指令是用来探测各位玩家手中持名雷鸣剑的金剑, 而且设定改玩家sc为2分 。
/scoreboard players remove @a[score_sc_min=1] sc 1
给sc至少为1的玩家减去一分, 结合上一条指令, 可以让玩家在手持雷鸣剑的时候分数为1, 一旦不在手中分数归零 。
/scoreboard players set @e[type=!Player] ss 1 {HurtTime:10s}
是用来探测生物受伤, 设定ss为1分
/execute @a[score_zc_min=1,score_sc_min=1,score_sc=2] ~ ~ ~ /scoreboard players set @e[score_ss_min=1,r=5,type=!Player] mz 1
探测手持雷鸣剑, 而且对造成伤害的玩家的周围的受伤的生物, 设定mz为1分
/scoreboard players add @e[score_mz_min=1] mz 1
能够给mz至少为1的生物加分
/execute @e[score_mz_min=10,score_mz=10] ~ ~ ~ /summon Lightning_bolt ~ ~ ~
当一个生物mz加到10分时(0.5秒, 20分为一秒, 可自己更改落雷的延迟时间)给生物召唤闪电 。
/scoreboard players set @a[score_zc_min=1] zc 0
清零并且造成伤害
/scoreboard players set @e[score_mz_min=11] mz 0
清零延迟
然后再给自己一个名为雷鸣剑的金剑就完成啦:
/give @p minecraft:golden_sword 1 0 {ench:[{id:19s,lvl:2s}],display:{Name:"雷鸣剑"},Unbreakable:1}

解析结束, 下面是OOC部分:
刚开始我们要手动输入四条指令创建计分板:
/scoreboard objectives add ss dummy
/scoreboard objectives add sc dummy
/scoreboard objectives add zc stat.damageDealt
/scoreboard objectives add mz dummy
然后执行ooc:
/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 ~6 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @e[score_mz_min=11] mz 0",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~5 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @a[score_zc_min=1] zc 0",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~4 ~0 chain_command_block 1 replace {Command:"/execute @e[score_mz_min=10,score_mz=10] ~ ~ ~ /summon Lightning_bolt ~ ~ ~",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~3 ~0 chain_command_block 1 replace {Command:"/scoreboard players add @e[score_mz_min=1] mz 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~2 ~0 chain_command_block 1 replace {Command:"/execute @a[score_zc_min=1,score_sc_min=1,score_sc=2] ~ ~ ~ /scoreboard players set @e[score_ss_min=1,r=5,type=!Player] mz 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~1 ~0 chain_command_block 1 replace {Command:"/scoreboard players set @e[type=!Player] ss 1 {HurtTime:10s}",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~0 ~0 chain_command_block 1 replace {Command:"/scoreboard players remove @a[score_sc_min=1] sc 1",auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-1 ~0 chain_command_block 1 replace {Command:/scoreboard players set @a sc 2 {SelectedItem:{id:"minecraft:golden_sword",Count:1b,Damage:0s,tag:{display:{Name:"雷鸣剑"}}}},auto:1b}},{id:commandblock_minecart,Command:setblock ~2 ~-2 ~0 repeating_command_block 1 replace {Command:/testfor @a,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]}]}]}
【雷鸣剑,我的世界雷鸣剑怎么做】最后再手动给自己武器就完成了, 雷鸣剑的制作介绍就到这里了, 后续精彩内容都在手游网哦!

    推荐阅读