我的世界1.8原版爆裂箭命令方块解读

战略攻 人气:2.19W

我的世界1.8原版爆裂箭命令方块解读。我的世界1.8原版游戏中并没有爆裂箭这个实体方块,但是可以通过方块加上红石电路实现。本期教程中将会通过实例给大家讲解1.8原版爆裂箭命令方块原理。

我的世界1.8原版爆裂箭命令方块解读

minecraft1.8原版是没有爆裂箭的,这个指令可以实现射出的箭碰到方块就发生爆炸。

没有羊毛覆盖的请无视,粉色羊毛下

/execute @e[type=Arrow] ~ ~ ~ detect ~ ~-1 ~ air 0 /say bomb

/execute @e[type=Arrow] ~ ~ ~ detect ~ ~1 ~ air 0 /say bomb

/execute @e[type=Arrow] ~ ~ ~ detect ~1 ~ ~ air 0 /say bomb

/execute @e[type=Arrow] ~ ~ ~ detect ~-1 ~ ~ air 0 /say bomb

/execute @e[type=Arrow] ~ ~ ~ detect ~ ~ -1~ air 0 /say bomb

/execute @e[type=Arrow] ~ ~ ~ detect ~ ~ 1~ air 0 /say bomb

的命令方块分别是(从前向后)

绿色羊毛下面的是,顺序与上面保持一致。

execute @e[type=Arrow] ~ ~ ~ /summon Fireball ~ ~ ~{ExplosionPower:2,direction:[0.0,-10.0,0.0],Motion:[0.0,0.0,0.0]}

/execute @e[type=Arrow] ~ ~ ~ /summon Fireball ~ ~ ~{ExplosionPower:2,direction:[0.0,10.0,0.0],Motion:[0.0,0.0,0.0]}

/execute @e[type=Arrow] ~ ~ ~ /summon Fireball ~ ~ ~{ExplosionPower:2,direction:[10.0,0.0,0.0],Motion:[0.0,0.0,0.0]}

/execute @e[type=Arrow] ~ ~ ~ /summon Fireball ~ ~ ~{ExplosionPower:2,direction:[-10.0,0.0,0.0],Motion:[0.0,0.0,0.0]}

/execute @e[type=Arrow] ~ ~ ~ /summon Fireball ~ ~ ~{ExplosionPower:2,direction:[0.0,0.0,-10.0],Motion:[0.0,0.0,0.0]}

/execute @e[type=Arrow] ~ ~ ~ /summon Fireball ~ ~ ~{ExplosionPower:2,direction:[0.0,0.0,10.0],Motion:[0.0,0.0,0.0]}

补充:也就是前面检测的xyz轴是什么,后面direction:三个坐标就对应写,

/kill @e[type=Arrow]

并最好乘10

后面橙色羊毛命令都是:

就是前面的命令方块分别检测叫做箭的实体周围6个方块是不是空气,因为射出的箭的周围一定是空气的,如果不是,说明射中了。飞行途中,箭周围是空气,比较器输出信号,熄灭红石火把,后面的命令并不会被触发,当某个命令方块检测到箭射中了(周围不是空气),就熄灭比较器,红石火把亮起,触发后面的命令,也就是召唤出一个威力为2的火球,向不是空气的那一面飞去,击中目标后会爆炸,比较器再次检测这个命令方块,如果执行成功,就把名叫箭的实体删除掉(杀掉)。

这个系统也有弊端那就是,如果离物体太近射箭,前面的命令方块可能根本不会检测到箭被设了出来,这时将箭拿回来即可。

这个系统在游戏卡的时候也可能会不起作用。