大家好,相信很多玩家在《我的世界》中都会遇到关于僵尸的各种问题,比如如何制作僵尸出生动画、如何让僵尸破坏方块,以及如何防止僵尸的攻击等等。我将为大家详细讲解这些知识点,希望能够帮助到大家。
一、僵尸出生动画制作
我们来看如何制作僵尸出生动画。这个动画的实现原理是将新生成的僵尸传送到地表下方,然后在玩家附近存在地表下的僵尸时,使僵尸上升至地表。
1. 创建变量:
/scoreboard objectives add ZombieBorn dummy
2. 高频部分:
/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
二、僵尸破坏方块方法
僵尸破坏方块的方法相对简单,只需要一个计时器和纵向的检测即可。如果僵尸在破坏方块的过程中受到伤害,则该僵尸需要重新破坏方块。
1. 创建变量:
/scoreboard objectives add BrokeTimer dummy
/scoreboard objectives add ZHurt dummy
2. 基础高频:
/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
3. 脚下方块破坏:
/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
4. 四周方块破坏:
/execute@e[score_BrokeTimer_min=200,type=Zombie]~~~ fill~-0.25~~-0.25~0.25~2~0.25 air 0 destroy
三、其他问题解答
我将针对一些玩家提出的问题进行解答。
1. 如何放置僵尸?
- 在生存模式下,可以开启内置修改器来刷僵尸;在创造模式下,打开物品栏,在杂项里找到生成蛋,然后对着地面右键即可。
2. 如何防止僵尸砸门?
- 使用6个铁锭制作铁门,僵尸砸不开铁门。在困难模式下,僵尸才会破木门。铁门需要红石电路打开。粘活塞也可以制作自动门。
3. 如何防止僵尸破坏火把、岩浆?
- 可以使用南瓜头放置末影人。
4. 如何召唤大僵尸?
- 打开创造模式,使用指令/summon Giant
。
5. 如何防止僵尸变成玩家?
- 玩家无法变成僵尸,但可以搜索变形MOD。
6. 如何捕捉僵尸?
- 利用陷阱来捕捉僵尸,制作一个只有一个开口的空地,另一边放一个按钮开关的门,将僵尸引到空地上,然后用方块堵上开口,通过按钮控制的门出去。
7. 为什么僵尸、末影人等放不出来?
- 在和平模式下,被放置的怪物会立即消失。将难度改为简单及以上即可。
8. 为什么家里有僵尸?
- 当亮度小于7时,家里就会刷出僵尸。可以使用火把来防止僵尸的生成。
就是我为大家分享的《我的世界》僵尸相关知识,希望对大家有所帮助。
郑重声明:
以上内容均源自于网络,内容仅用于个人学习、研究或者公益分享,非商业用途,如若侵犯到您的权益,请联系删除,客服QQ:841144146
相关阅读
逆水寒游戏画质与视角调整全攻略
2025-08-18 13:20:10《明日方舟》技能解析:夕角色技能强度测评及使用攻略
2025-08-16 12:11:38奥比岛生存攻略:新手到高手的蜕变
2025-08-11 18:33:00《冒险岛之梦》攻略揭秘:游戏设置、梦幻钥匙获取、主线任务及梦之石用途
2025-08-03 15:13:11梦幻西游手游:空间鲜花分配攻略与优化配置全解析
2025-07-18 09:49:40