灵感来自“自定义刷怪笼”。看见别人在刷怪笼里召唤出各种各样的穿装备甚至带效果的骷髅,有了个想法:末影人是否能够拥有带装备的效果呢?经过反复实验,我已经证实了一点:
用这种方法召唤出的末影人,看似是没有拿装备的,实际上会具备拿装备的效果。
代码:
/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace
{EntityId:Enderman,SpawnData:{ActiveEffects:[{Id:0,Amplifier:0,Duration:1},
{Id:0,Amplifier:0,Duration:1},
{Id:0,Amplifier:0,Duration:1},
{Id:0,Amplifier:0,Duration:1},
{Id:0,Amplifier:0,Duration:1},
{Id:0,Amplifier:0,Duration:1}],
Equipment:[{id:276,Count:1,tag:{ench:[{id:20,lvl:1},{id:20,lvl:1},{id:20,lvl:1},{id:20,lvl:1},{id:20,lvl:1},{id:20,lvl:1}]}},
{id:0,Count:1,tag:{ench:[{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1}]}},
{id:0,Count:1,tag:{ench:[{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1}]}},
{id:0,Count:1,tag:{ench:[{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1},{id:0,lvl:1}]}},
{id:0,Count:1,AttributeModifiers:[{Operation:0,UUIDLeast:1,UUIDMost:1,Amount:950.0,AttributeName:generic.attackDamage,Name:Attack_Glass},
{Operation:0,UUIDLeast:2,UUIDMost:2,Amount:950.0,AttributeName:generic.knockbackResistance,Name:Knockback_Glass},
{Operation:0,UUIDLeast:4,UUIDMost:4,Amount:990.0,AttributeName:generic.Name:Health_Glass}]}],
Attributes:[{Name:generic.attackDamage,Base:1},
{Name:generic.followRange,Base:45},
{Name:generic.knockbackResistance,Base:1},
{Name:generic.movementSpeed,Base:0.225},
{Name:generic.maxHealth,Base:1000}],
CustomName:"FireEnderman",CustomNameVisible:1},
SpawnCount:1,SpawnRange:6,RequiredPlayerRange:256,Delay:7,MinSpawnDelay:7,MaxSpawnDelay:120,MaxNearbyEntities:20}
followRange为侦测范围。就像僵尸探测村民的范围。movementSpend是速度,实际上0.3就有些偏快了。attackdamage应该是攻击伤害,填太高了会死的很惨...276id(钻石剑)中,20id为火焰伤害,就像附魔书附魔后的效果。这就等于是拿隐形装备的末影人。
也可以给它们加上头盔之类的,可以使末影人受到的伤害变少,但是看不到。