Skip to content

Add more memory/brain API #6162

@tahmid-23

Description

@tahmid-23

Is your feature request related to a problem?

No

Describe the solution you'd like.

Currently, it is very difficult to interface with an entity's memory and brain.
With Piglins, AI is managed by a static class and it is difficult to even use NMS to modify their behavior.
Events for changes in activities and adding or replacing memories would be useful.
However, I am not sure how viable this is since an entity's brain does not have reference to its owner entity.

Describe alternatives you've considered.

changes in memory could be simply done from the entity itself rather than the brain, however this seems unviable to change every call to updating activities/memories with new changes / entities being added.

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported Paper build.

Other

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions