把1.8的summon指令在1.9使用发现不能更改生命了,就看看1.9生物的NBT更改,结果变成这样了。
Attributes:[0:{Base:20.0d,Name:"generic.maxHealth"},1:{Base:0.0d,Modifiers:[0:{UUIDMost:5747729377520602548L,UUIDLeast:-6925835965278459737L,Amount:0.024581487588757268d,Operation:0,Name:"Random spawn bonus"}],Name:"generic.knockbackResistance"},2:{Base:0.23000000417232513d,Name:"generic.movementSpeed"},3:{Base:2.0d,Name:"generic.armor"},4:{Base:35.0d,Modifiers:[0:{UUIDMost:7935446027480351665L,UUIDLeast:-5794684799426720450L,Amount:-0.02320155132426581d,Operation:1,Name:"Random spawn bonus"}],Name:"generic.followRange"},5:{Base:3.0d,Name:"generic.attackDamage"},6:{Base:0.07434207625740882d,Name:"zombie.spawnReinforcements"}]
然后我试着让僵尸敲门,接着村民就....吓了我一跳。
然后我就发现了僵尸村民的新NBT:
IsVillager:1b
输入1b会让生成出来的僵尸变成僵尸村民,皮肤进行了改变...但这是不可逆的,改成0b不会变回普通僵尸
VillagerProfession:0
被杀死的村民的种类,也就是僵尸村民的皮肤是和哪种村民混合的。
生成一个可怕的僵尸村民:
/summon Zombie ~ ~1 ~ {IsVillager:1b,VillagerProfession:0}