MC怪物驯服教程 让凶猛的怪物变得像只温顺的猫咪

来源:游戏园 2017-09-15 14:11:12

  我的世界游戏中有着非常非常多的怪物,并且怪物的种类也是非常非常多的,那么如何把凶猛的怪物变成温顺的怪物呢?相信很多人都非常的想知道,那么就请大家一起来看看吧!

  (原作者:MCSugar_cane)

  用法说明

  手持10个骨粉攻击骷髅之后该骷髅将停止所有活动,持续一段时间,在这段时间内,丢弃1个骨头和1个皮革衣服至骷髅即可驯服成功。

  指令

  编写使用版本: 1.11.2

  创建变量

  /scoreboard objectives add canbs dummy

  /scoreboard objectives add SkeletonHurt dummy

  /scoreboard objectives add stimer dummy

  /scoreboard objectives add sitem dummy

  创建队伍并关闭队伍内伤害

  /scoreboard teams add ssc

  /scoreboard teams option ssc friendlyfire false

  探测骷髅是否受伤

  scoreboard players add @e[type=Skeleton] SkeletonHurt 1 {HurtTime:10s}

  最后执行:

  scoreboard players reset @e[score_SkeletonHurt_min=1] SkeletonHurt

  使玩家用10骨粉攻击骷髅时骷髅短时间无法移动并且可驯服

  scoreboard players set @a canbs 1 {SelectedItem:{id:"minecraft:dye",Count:10b,Damage:15s}}

  execute @a[score_canbs_min=1] ~ ~ ~ scoreboard players add @e[type=Skeleton,score_SkeletonHurt_min=1,r=4,c=1] stimer 0

  scoreboard players add @e[type=Skeleton,score_stimer_min=0] stimer 1

  entitydata @e[type=Skeleton,score_stimer_min=0,score_stimer=1] {NoAI:1}

  ---

  scoreboard players tag @e[type=Skeleton,score_stimer_min=0,score_stimer=1] add kinds

  entitydata @e[type=Skeleton,score_stimer_min=120,score_stimer=120] {NoAI:0}

  ---

  scoreboard players tag @e[type=Skeleton,score_stimer_min=120,score_stimer=120] remove kinds

  ---

  scoreboard players reset @e[type=Skeleton,score_stimer_min=121] stimer

  骷髅驯服部分(玩家向骷髅丢弃一个骨头和一件完好的皮革衣服)

  scoreboard players set @e[type=Item] sitem 1 {Item:{id:"minecraft:bone",Count:1b,Damage:0s}}

  ---

  scoreboard players set @e[type=Item] sitem 2 {Item:{id:"minecraft:leather_chestplate",Count:1b,Damage:0s}}

  execute @e[type=Item,score_sitem_min=1,score_sitem=1] ~ ~ ~ execute @e[type=Item,r=1,score_sitem_min=2,score_sitem=2] ~ ~ ~ scoreboard teams join ssc @e[type=Skeleton,tag=kinds,r=1]

  execute @e[type=Item,score_sitem_min=1,score_sitem=1] ~ ~ ~ execute @e[type=Item,r=1,score_sitem_min=2,score_sitem=2] ~ ~ ~ entitydata @e[type=Skeleton,team=ssc,r=2,c=1] {Attributes:[0:{Name:"generic.maxHealth",Base:45.0d}],Health:45,ArmorItems:[0:{},1:{},2:{id:"minecraft:leather_chestplate",Damage:0s,Count:1b,tag:{display:{color:14462535}}},3:{id:"minecraft:skull",Damage:3s,Count:1b,tag:{display:{Name:"MCSugar_cane"},SkullOwner:{Id:"dd1a04d9-49ed-4b34-ab74-a7ba6ee055a9",Properties:{textures:[{Value:"eyJ0aW1lc3RhbXAiOjE0OTc5MzA3NjY1MTksInByb2ZpbGVJZCI6ImRkMWEwNGQ5NDllZDRiMzRhYjc0YTdiYTZlZTA1NWE5IiwicHJvZmlsZU5hbWUiOiJNQ1N1Z2FyX2NhbmUiLCJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmMxNDY4YTJjNzUxNGRlNWQ1ODZkMWNkYWI3Yjk2OWUxZDVhMDFlMWVkNmM2NjE4YmU5NDBiNDY4YjIxIn19fQ=="}]}}}}]}

  execute @e[type=Item,score_sitem_min=1,score_sitem=1] ~ ~ ~ execute @e[type=Item,r=1,score_sitem_min=2,score_sitem=2] ~ ~ ~ /particle heart ~ ~ ~ 0.2 0.8 0.2 0 10

  execute @e[type=Skeleton,team=ssc] ~ ~ ~ kill @e[type=Item,score_sitem_min=0,r=1]

  scoreboard players reset @a[score_canbs_min=1] canbs

  entitydata @e[type=Skeleton,team=ssc] {Anger:32767}

  -----------PARTAI:

点击查看原文

相关链接