本帖最后由 BlackCB. 于 2020-2-19 16:17 编辑 
使用修改了owner.M和owner.L的雪球攻击僵尸猪人
被封路或者是曾被封路的僵尸猪人好像就完全没办法传播愤怒.从头到尾都没有出现愤怒的音效,只有被攻击的僵尸猪人举起了手
然后试了一下手动传播转移HurtBy标签,无果
浮在半空的盔甲架是攻击者,雪球已确认过携带它的uuid



Anger那个数据值不用看辽,我后面关掉了
使用修改了owner.M和owner.L的雪球攻击僵尸猪人
被封路或者是曾被封路的僵尸猪人好像就完全没办法传播愤怒.从头到尾都没有出现愤怒的音效,只有被攻击的僵尸猪人举起了手
然后试了一下手动传播转移HurtBy标签,无果
浮在半空的盔甲架是攻击者,雪球已确认过携带它的uuid



Anger那个数据值不用看辽,我后面关掉了
盔甲架非适格的愤怒对象...
⊙v⊙ 发表于 2020-2-18 16:24
盔甲架非适格的愤怒对象...
用了Pillager,情况一样
唤魔者尖牙指定仇恨实体uuid试试?
玩家运行如下函数:
实测在 20w07a 可以吸引仇恨。
代码:
- summon minecraft:zombie_pigman ~ ~ ~ {Tags:["A"]}
 
- summon minecraft:zombie_pigman ~ ~ ~ {Tags:["A"]}
 
- summon minecraft:zombie ~ ~ ~ {Tags:["B"]}
 
- execute at @e[tag=A,limit=1] run summon minecraft:snowball ~ ~3.5 ~ {Tags:["snowball"],Motion:[0.0d,-10.0d,0.0d]}
 
- execute as @e[tag=snowball] run data modify entity @s owner.L set from entity @e[limit=1,tag=B] UUIDLeast
 
- execute as @e[tag=snowball] run data modify entity @s owner.M set from entity @e[limit=1,tag=B] UUIDMost