我的世界命令方块攻略详情 关于怪物强化

作者:MCSugar_cane 来源:我的世界官方论坛 更新时间: 2017-08-23 13:22:00
导读 大家好,下面是小编给大家带来的我的世界命令方块攻略详情 关于怪物强化,希望能帮到大家!

  【本文转自我的世界官方论坛,原作者:MCSugar_cane】

  说在前面:...好像没什么可以说的

  怪物强化

  ————————————————Abnormalmonster————————————————

  三个会用到的变量

  scoreboard objectives add zdamage stat.damageTaken

  scoreboard objectives add zhit dummy

  scoreboard objectives add ZHurt dummy

  用于随机的盔甲架

  partA:

  直接在地上粗暴地摆放6个盔甲架,赋予它们不同的使命

  scoreboard players set @e[type=ArmorStand,c=1] zhit 1

  scoreboard players set @e[type=ArmorStand,c=1] zhit 2

  scoreboard players set @e[type=ArmorStand,c=1] zhit 3

  scoreboard players set @e[type=ArmorStand,c=1] zhit 4

  partB:

  scoreboard players set @e[type=ArmorStand,c=1] ZHurt 100

  scoreboard players set @e[type=ArmorStand,c=1] ZHurt 12

  探测部分

  僵尸受伤:

  execute @a ~ ~ ~ scoreboard players add @e[type=!Player,r=8] ZHurt 1 {HurtTime:10s}

  僵尸的强化partC:

  execute @e[score_ZHurt_min=3,score_ZHurt=3] ~ ~ ~ tellraw @a[r=8] [{"selector":"@e[score_ZHurt_min=3,score_ZHurt=3]","color":"gold"},{"text":" 的防御越加强大了","color":"dark_red"}]

  ---

  scoreboard players set @e[score_ZHurt_min=3,score_ZHurt=3] ZHurt 4

  ---

  effect @e[score_ZHurt_min=4] resistance 10 1 true

  ---

  execute @e[score_ZHurt_min=6,score_ZHurt=6] ~ ~ ~ tellraw @a[r=8] [{"selector":"@e[score_ZHurt_min=6,score_ZHurt=6]","color":"gold"},{"text":" 越加灵敏了","color":"dark_aqua"}]

  ---

  scoreboard players set @e[score_ZHurt_min=6,score_ZHurt=6] ZHurt 7

  ---

  effect @e[score_ZHurt_min=7] speed 10 1 true

  ---

  scoreboard players operation @e[type=!ArmorStand,score_ZHurt_min=10,score_ZHurt=10] ZHurt = @r[type=ArmorStand,score_ZHurt_min=1] ZHurt

  其中"scoreboard players operation @e[type=!ArmorStand,score_ZHurt_min=10,score_ZHurt=10] ZHurt = @r[type=ArmorStand,score_ZHurt_min=1] ZHurt"与partB结合起到随机作用,用于判定怪物是否涅槃!(几率1/2)

  Tips: 如果想使几率更低多摆放几个ZHurt=100的盔甲架就好了,几率为 [ZHurt=12]的个数/[ZHurt=12]的个数+[ZHurt=100]的个数

  涅槃成功:

  execute @e[type=!ArmorStand,score_ZHurt_min=12,score_ZHurt=12] ~ ~ ~ tellraw @a[r=8] [{"selector":"@e[score_ZHurt_min=12,score_ZHurt=12,type=!ArmorStand]","color":"gold"},{"text":" 涅槃了!","color":"gold","bold":"true"}]

  ---

  effect @e[type=Zombie,score_ZHurt_min=12,score_ZHurt=12] instant_damage 2 10 true

  ---

  effect @e[type=Skeleton,score_ZHurt_min=12,score_ZHurt=12] instant_damage 2 10 true

  ---

  effect @e[type=Spider,score_ZHurt_min=12,score_ZHurt=12] instant_health 2 10 true

  ---

  effect @e[type=!ArmorStand,score_ZHurt_min=12,score_ZHurt=12] health_boost 100000 3 true

  ---

  execute @e[type=!ArmorStand,score_ZHurt_min=12,score_ZHurt=12] ~ ~ ~ particle mobSpellAmbient ~ ~1 ~ .4 .8 .4 1 150

  ---

  scoreboard players set @e[type=!ArmorStand,score_ZHurt_min=12,score_ZHurt=12] ZHurt 13

  ---

  effect @e[type=!ArmorStand,score_ZHurt_min=13] strength 10 0 true

  涅槃失败就不用管他了,因为涅槃失败的怪物其Zhurt已经到了100,就没有用了...没有用了

  zhit,zdamage的调用将在下一页提到~

  By MCSugar_cane

  来自遥远的2016年7月

  怪物强化

  ————————————————Abnormalzombie————————————————

  玩家受伤效果:

  execute @a[score_zdamage_min=1] ~ ~ ~ particle reddust ~ ~ ~ 0.2 0.5 0.2 0 40 force

  僵尸小小小小小小强化 (使其不会着火)

  entitydata @e[type=Zombie] {Fire:-10s}

  zhit调用部分

  partD

  

execute @a[score_zdamage_min=1] ~ ~ ~ execute @e[type=Zombie,r=2] ~ ~ ~ scoreboard players set @e[type=Zombie,r=2] zhit -1

---

scoreboard players operation @e[type=Zombie,score_zhit=-1,score_zhit_min=-1] zhit = @r[type=ArmorStand,score_zhit_min=1] zhit

---

scoreboard players set @a[score_zdamage_min=1] zdamage 0


  partD的意思是将攻击到玩家的僵尸赋予随机技能即zhit=1~4的随机值(与partA相照应,这种照应可使文章结构完整.主题突出,能增强文章的严谨性.)

  3个技能1个没有技能(3/4的几率触发技能)

  

execute @e[type=Zombie,score_zhit=2,score_zhit_min=2] ~ ~ ~ tellraw @p {"text":"僵尸尝到了人血,处于亢奋状态!","color":"dark_green"}

effect @e[type=Zombie,score_zhit=2,score_zhit_min=2] speed 15 1 true

effect @e[type=Zombie,score_zhit=2,score_zhit_min=2] strength 10 1 true


  execute @e[type=Zombie,score_zhit=3,score_zhit_min=3] ~ ~ ~ tellraw @p {"text":"附近的生物似乎都注意到了你!","color":"dark_red"}

  execute @e[type=Zombie,score_zhit=3,score_zhit_min=3] ~ ~ ~ entitydata @e[r=30,type=!Player] {Anger:32767}

  zhit4:

  execute @e[type=Zombie,score_zhit=4,score_zhit_min=4,tag=] ~ ~ ~ tellraw @p {"text":"僵尸变异了......","color":"dark_red","bold":"true"}

  execute @e[type=Zombie,score_zhit=4,score_zhit_min=4,tag=] ~ ~ ~ particle smoke ~ ~ ~ 0.3 0.8 0.3 0 100

  execute @e[type=Zombie,score_zhit=4,score_zhit_min=4,tag=] ~ ~ ~ summon PigZombie ~ ~ ~ {Attributes:[{Name:"generic.movementSpeed",Base:0.4f}],Anger:32767,ArmorDropChances:[0f,0f,0f,0f],ArmorItems:[0:{},1:{},2:{},3:{id:"minecraft:cactus",Count:1b,Damage:0s}]}

  kill @e[type=Zombie,score_zhit=4,score_zhit_min=4,tag=]

  结束/重置:

  scoreboard players set @e[type=Zombie,score_zhit_min=1] zhit 0

  Tips:上诉所有指令应按照顺序执行!强烈建议使用高频,在1.10.2运行来着???忘了...很久之前码在记事本里的

  TTips:zhit4b部分会改变僵尸的nbt,如果僵尸身上会掉落任务道具,请手动赋予相应僵尸tag...这里 "tag=" 的意思是对没有tag的僵尸执行

  TTTips:觉得有用就那个。。。就是那个。。。。。小。。。什么麦啥的。。。:p

评论