我的世界制作僵尸出身动画及方块破坏方法分享

时间:2017-10-24 09:11:11  来源:APP178手游网整理
我的世界移动版

我的世界移动版

即时 策略 141.4M

我的世界中的命令方块可以让我们实现非常多奇特的效果,今天小编给大家分享的是我的世界制作僵尸出生动画及僵尸破坏方块方法,一起来了解一下吧!

我的世界制作僵尸出身动画及方块破坏方法分享

整体思路: 先说僵尸生成动画,其实这就是将新生成的僵尸传送到地表下,为了防止僵尸窒息这里我在僵尸地表下位置的方块处替换为了空气。当玩家附近存在在地表下的僵尸时,便使僵尸上升直到其处在地表上。

僵尸破坏方块就比较简单了,只需要一个计时和纵向的检测即可。为了降低难度,如果僵尸在破坏方块(计时增长)的过程中受到伤害,则该僵尸需重新破坏方块(计时)。

顺带一提,如果要使僵尸可以更加灵活,可以使其可以搭建方块以触及在上方的玩家。只需要延迟定时执行:如果玩家下方有僵尸,便将僵尸升高一定距离时在僵尸处放置一个方块。具体代码见链接

僵尸出生动画:创建变量:

/scoreboard objectives add ZombieBorn dummy

高频部分:

/scoreboard players add @e[type=Zombie] ZombieBorn 0

/entitydata @e[type=Zombie,score_ZombieBorn_min=0,score_ZombieBorn=0] {NoAI:1,Silent:1,Invulnerable:1}

/tp @e[type=Zombie,score_ZombieBorn_min=0,score_ZombieBorn=0] ~ ~-3 ~

/execute @e[type=Zombie,score_ZombieBorn_min=0,score_ZombieBorn=0] ~ ~ ~ ~ ~1 ~ air 0 replace

/scoreboard players set @e[type=Zombie,score_ZombieBorn_min=0,score_ZombieBorn=0] ZombieBorn 1

/execute @a[m=0] ~ ~ ~ scoreboard players set @e[type=Zombie,score_ZombieBorn_min=1,score_ZombieBorn=1,r=7] ZombieBorn 2

/tp @e[type=Zombie,score_ZombieBorn_min=2,score_ZombieBorn=2] ~ ~0.4 ~

/entitydata @e[type=Zombie,score_ZombieBorn_min=-1,score_ZombieBorn=-1] {NoAI:0,Silent:0,Invulnerable:0}

/execute @e[type=Zombie,score_ZombieBorn_min=2,score_ZombieBorn=2] ~ ~ ~ /particle blockcrack ~ ~.5 ~ 0.3 0.2 0.3 0 4 normal @a 2

/execute @e[type=Zombie,score_ZombieBorn_min=2,score_ZombieBorn=2] ~ ~ ~ detect ~ ~ ~ minecraft:air 0 /scoreboard players set @e[type=Zombie,r=0,c=1] ZombieBorn -1

僵尸破坏方块:创建变量:

/scoreboard objectives add BrokeTimer dummy

/scoreboard objectives add ZHurt dummy

基础高频:

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

/scoreboard players reset @e[type=Zombie,score_ZHurt_min=1] BrokeTimer

/scoreboard players set @e[type=Zombie,score_ZHurt_min=1] ZHurt 0

/execute @a[m=0] ~ ~ ~ scoreboard players add @e[type=Zombie,r=10] BrokeTimer 1

/scoreboard players set @e[type=Zombie,score_BrokeTimer_min=201] BrokeTimer 50

脚下方块破坏:

/execute @a[m=0] ~ ~2 ~ execute @e[type=Zombie,score_BrokeTimer_min=200,r=1] ~ ~ ~ setblock ~ ~-1 ~ air 0 destory

/execute @a[m=0] ~ ~3 ~ execute @e[type=Zombie,score_BrokeTimer_min=200,r=1] ~ ~ ~ setblock ~ ~-1 ~ air 0 destory

/execute @a[m=0] ~ ~4 ~ execute @e[type=Zombie,score_BrokeTimer_min=200,r=1] ~ ~ ~ setblock ~ ~-1 ~ air 0 destory

四周方块破坏:

/execute @e[score_BrokeTimer_min=200,type=Zombie] ~ ~ ~ fill ~-0.25 ~ ~-0.25 ~0.25 ~2 ~0.25 air 0 destroy

以上就是我的世界制作僵尸出身动画及方块破坏方法分享啦,了解更多精彩内容,敬请关注APP178我的世界专区和APP178手游网~

点击展开全文

热门游戏+更多

镇魂街:天生为王

镇魂街:天生为王

查看
我叫MT:归来

我叫MT:归来

查看
异世代:光与魔法

异世代:光与魔法

查看
三国志战略版

三国志战略版

查看
原始传奇

原始传奇

查看
三国志幻想大陆

三国志幻想大陆

查看
率土之滨

率土之滨

查看
新倚天屠龙记

新倚天屠龙记

查看

相关内容

新游推荐+更多

小小蚁国

小小蚁国

查看
蛋仔派对

蛋仔派对

查看
春秋封神

春秋封神

查看
长安幻想

长安幻想

查看

游戏盘点+更多

咪噜游戏盒子好玩又能赚钱的手游

返回顶部