Bug Closed · Invalid

[BUG] Villagers Wander With Cleared AI

#6420 opened by Unknown 1 year ago

Unknownreported this bug

Villagers are wandering the map with cleared AI. The intended behavior is to stay put unless attacked or being chased by monsters. I am unable to use Profession in the options, so I have used the disguise setting instead. Profession is not functional either. It looks like they are running around trying to find a profession.

Villager:

PickaxeMerchant:
  Template: Merchant_Base
  Display: '&aPickaxe Merchant'
  Disguise: Villager setProfession TOOLSMITH setBiome PLAINS setCustomName "&2&l✦ &aPickaxe Merchant"
  Skills:
  - command{command="redacted"} @trigger ~onInteract

Merchant Base

Merchant_Base:
  Type: VILLAGER
  Faction: TheEmeraldEmpire
  Health: 50
  Damage: 2
  Level: 1
  Options:
    AlwaysShowName: true
    HealOnReload: true
    Interactable: true
    Despawn: persistent
  AIGoalSelectors:
  - clear
  - fleeFaction{f=Pillagers}
  - fleeFaction{f=Hostiles}
  - fleeFaction{f=HostileToGuards}
  - goToSpawnLocation{max=5;min=1;dt=true}
  - lookAtPlayers{range=5}
  - lookAround
  AITargetSelectors:
  - clear
  DisplayOptions:
    Billboard: CENTER
  Nameplate:
    Enabled: false
  Skills:
  - command{c=lp user <target.name> permission settemp faction.hostiletoguards true 30s} ~onDamaged 
Unknowncommented

This is unfortunately a vanilla issue, some mob types don't work very well with AI goals because they have hardcoded behaviors

Sign in to join the discussion.