下面小編為大家?guī)?lái)我的世界超級(jí)雪人制作教程,其實(shí)就是用命令方塊制作出強(qiáng)大的雪人,你可以通過(guò)使用命令修改雪人的血量還有攻擊屬性等等,想DIY自己的雪人保鏢嗎?那就一起來(lái)看看吧!
編寫使用版本: 1.11.2
說(shuō)在前面: 此物不適合用在(gamerule mobGriefing=true)時(shí)的建筑周圍!不要問(wèn)我為什么!
Super SnowMan | 超級(jí)雪人
全劇終
Mentally retarded snowman | 智障雪人
創(chuàng)建變量用于雪球加強(qiáng)/scoreboard objectives add SFTimer dummy
雪人位置處有綠寶石方塊實(shí)體時(shí)給雪人添加issp1標(biāo)簽并清除綠寶石方塊scoreboard players tag @e[type=Item] add emeraldblock {Item:{id:“minecraft:emerald_block”,Count:1b,Damage:0s},OnGround:1b}
execute @e[type=Item,tag=emeraldblock] ~ ~ ~ scoreboard players tag @e[type=Snowman,r=1,c=1] add issp1
execute @e[type=Snowman,tag=issp1] ~ ~ ~ kill @e[type=Item,tag=emeraldblock,r=1,c=1]
修改雪人最大50生命值,并添加issp標(biāo)簽移除issp1,issp1用來(lái)單次執(zhí)行清除item與修改雪人nbt。[rcb]entitydata @e[type=Snowman,tag=issp1] {Attributes:[0:{Name:“generic.maxHealth”,Base:50.0d},1:{Name:“generic.movementSpeed”,Base:0.2d}],Health:50,ActiveEffects:[{Id:10,Amplifier:0,Duration:50000,ShowParticles:0b}]}
scoreboard players tag @e[type=Snowman,tag=issp1] add issp
scoreboard players tag @e[type=Snowman,tag=issp] remove issp1
復(fù)制代碼賦予具有issp標(biāo)簽的雪人扔出的雪球isss標(biāo)簽[rcb]
execute @e[type=Snowman,tag=issp] ~ ~ ~ scoreboard players tag @e[type=Snowball,r=3] add isss
雪人加強(qiáng)部分:[rcb]
execute @e[type=Snowman,tag=issp] ~ ~ ~ effect @e[type=!Snowman,r=2] wither 3 3 true
execute @e[type=Snowman,tag=issp] ~ ~ ~ effect @e[type=!Snowman,r=3] slowness 5 1 true
execute @e[type=Snowman,tag=issp] ~ ~ ~ /fill ~-1 ~-1 ~-1 ~1 ~1 ~1 air 0 replace packed_ice
execute @e[type=Snowman,tag=issp] ~ ~ ~ /fill ~ ~ ~ ~ ~ ~ snow_layer 0 replace air
execute @e[type=Snowman,tag=issp] ~ ~ ~ particle flame ~ ~ ~ 0.3 1 0.3 0.01 5 force
雪球加強(qiáng)部分:[rcb]execute @e[type=Snowball,tag=isss] ~ ~ ~ execute @e[type=!Armor_Stand,tag=!isss,r=2] ~ ~ ~ summon Armor_Stand ~ ~ ~ {CustomName:“pice”,NoBasePlate:1,NoGravity:1,Invisible:1}
scoreboard players add @e[type=Armor_Stand,name=pice] SFTimer 1
execute @e[type=Armor_Stand,name=pice,score_SFTimer_min=1,score_SFTimer=10] ~ ~ ~ fill ~ ~ ~ ~ ~1 ~ packed_ice 0 replace air
execute @e[type=Armor_Stand,name=pice,score_SFTimer_min=79] ~ ~ ~ fill ~ ~ ~ ~ ~1 ~ air 0 replace packed_ice
kill @e[type=Armor_Stand,name=pice,score_SFTimer_min=80]
--------------
execute @e[type=Snowball,tag=isss] ~ ~ ~ execute @e[type=!Snowball,r=2] ~ ~ ~ fill ~ ~ ~ ~ ~1 ~ packed_ice 0 replace air
execute @e[type=Snowball,tag=isss] ~ ~ ~ effect @e[type=!Snowman,r=2] wither 4 2 true
scoreboard players add @e[type=Snowman,tag=issp] SFTimer 1
execute @e[type=Snowman,tag=issp,score_SFTimer_min=150] ~ ~ ~ execute @e[type=Snowball,tag=isss] ~ ~ ~ summon Fireball ~ ~ ~ {direction:[0:0.0,1:0.0,2:0.0],Motion:[0:0.0,1:0.0,2:0.0],ExplosionPower:2}
scoreboard players set @e[type=Snowman,tag=issp,score_SFTimer_min=188] SFTimer -12
這里的SFTimer起到一個(gè) 延遲循環(huán)執(zhí)行的作用,讓zz雪人在某些時(shí)段扔出的雪球變?yōu)榫哂袀蜁?huì)炸毀建筑的火球并讓冰塊隔一段時(shí)間消失
拓展
使雪球擁有更多功能,或使雪人擁有更多技能,例如每隔一段時(shí)間用隱形蝙蝠在雪人四周飛行,再每隔一段時(shí)間execute 蝙蝠 ~ ~ ~ summon FallingSand ~ ~2 ~ {Block:packed_ice,Time:1,DropItem:0,HurtEntities:0},如果被FS碎冰砸中則無(wú)法移動(dòng)一段時(shí)間。。。。[Try more]