Skip to content

Flee From Weapons AI Issues with Pathfinding and Sheep Eating Grass #1358

@RavenTreeGames

Description

@RavenTreeGames

CraftBook Version

5.0.0-SNAPSHOT build 4901

Platform Version

Paper 1.21.8 build 60

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using a version of CraftBook compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

When an entity like sheep is specified for the "Flee From Weapons", then sheep no longer eat grass blocks.
Additionally, entities specified for this mechanic seem to have broken pathfinding as the following happens:

  • they will only leave the block they stand on if attracted to food or fleeing a weapon. They only turn around in the same spot
  • when "fleeing" a person armed with a weapon, they always go the same direction. Even if it's towards the person with the weapon. This is easiest to see within a fenced in area.

Expected Behavior

Expected behavior:

  • sheep eat available grass blocks after they've been shorn of wool
  • entities will move around randomly until attracted by food or threatened by someone armed with a weapon
  • when "fleeing" the pathfinding should be directed away from the one armed with the weapon regardless of where they are

Reproduction Steps

  1. Update Config file to have BetterAI = true
  2. Have entities specified for the "Flee From Weapons"

Anything Else?

I'm currently using WorldEdit 7.3.16
MobGriefing is set to true

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:pendingPending acceptance or closure.type:bugIncorrect behavior, not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions