mojira.dev
MC-159864

Patrol follower AI circles around the area of where the leader/captain died

If a patrol leader/captain was killed, the remaining follower will circle around a random area of where it's leader/captain died. Their PatrolTarget XYZ will be stuck permanently on one position near the patrol leader/captain's death. For example, the patrol in the attachment video death position is XYZ: 88.599 / 4.00000 / -112.599 and as I press F3 + N to get their data, their PatrolTarget is set to 82, 4, -110. Also affects snapshot 19w34a.

How to Reproduce

  1. Spawn patrol captain and patrol followers (Commands are shown below)

  2. When killing the patrol leader:

    /kill @e[type=pillager,nbt={PatrolLeader:1b}]
  1. The patrol followers would walk around the area where the captain died.

 

Workaround

Simply use the /data command to set their Patrolling tag to 0b.

Attachments

Comments 4

Commands to spawn the patrol leader/ patrol follower:

/summon minecraft:pillager ~ ~1 ~ {CanJoinRaid:1b,PatrolLeader: 1b,PatrolTarget: {X:0,Y:0,Z:0},PersistenceRequired:0b,Patrolling: 1b,HandItems:[{id: "minecraft:crossbow", Count: 1b, tag: {Damage: 0}}, {}], Wave: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 2.0f], ArmorItems: [{}, {}, {}, {id: "minecraft:white_banner", Count: 1b, tag: {BlockEntityTag: {Patterns: [{Pattern: "mr", Color: 9}, {Pattern: "bs", Color: 8}, {Pattern: "cs", Color: 7}, {Pattern: "bo", Color: 8}, {Pattern: "ms", Color: 15}, {Pattern: "hh", Color: 8}, {Pattern: "mc", Color: 8}, {Pattern: "bo", Color: 15}]}, display: {Name: '{"color":"gold","translate":"block.minecraft.ominous_banner"}'}}}], CanPickUpLoot: 1b,}
/summon minecraft:pillager ~ ~1 ~ {CanJoinRaid:1b,PatrolLeader:0b,PatrolTarget: {X: 0, Y: 0, Z: 0},PersistenceRequired: 0b,Patrolling:1b,HandItems: [{id: "minecraft:crossbow", Count: 1b, tag: {Damage: 0}}, {}], Wave: 0, ArmorDropChances: [0.085f, 0.085f, 0.085f, 0.085f], ArmorItems: [{}, {}, {}, {}],CanPickUpLoot: 1b}

 

I assume that this doesn't happen if the patrol leader drops its banner, which is then picked up by one of the remaining pillagers?

Its does happen when the leader drops its banner because illagers can only pick up ominous banners during a raid.

DrownedZombie

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4, 19w34a

Retrieved