Skip to content

Entity PathFind Event & Pathfinding Target Expression#8501

Open
AnOwlBe wants to merge 8 commits intoSkriptLang:dev/featurefrom
AnOwlBe:feature/EvtEntityPathFind
Open

Entity PathFind Event & Pathfinding Target Expression#8501
AnOwlBe wants to merge 8 commits intoSkriptLang:dev/featurefrom
AnOwlBe:feature/EvtEntityPathFind

Conversation

@AnOwlBe
Copy link
Copy Markdown

@AnOwlBe AnOwlBe commented Mar 14, 2026

Problem

Skript doesn't have it and I see it being very useful for eg spawning a bee and limiting it to a certain area it can path find to

Solution

Added a entity pathfind event eg on entity pathfind:
broadcast "%event-location%"
Added an expression for pathfinding target eg
on entity pathfind:
broadcast "%pathfinding target%"

Testing Completed

Tested without addons on mc 1.21.11 event, expression & event-values work fine

Supporting Information

---

Related: #8417
AI assistance: none

@AnOwlBe AnOwlBe requested a review from a team as a code owner March 14, 2026 04:51
@AnOwlBe AnOwlBe requested review from Burbulinis and UnderscoreTud and removed request for a team March 14, 2026 04:51
@AnOwlBe
Copy link
Copy Markdown
Author

AnOwlBe commented Mar 14, 2026

^ Still working on this don't review yet

Copy link
Copy Markdown
Member

@Efnilite Efnilite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in your description, instead of saying "skript doesnt have it", explain the value and potential use cases of adding it. looks good

Comment on lines +65 to +68
@Override
public Class<? extends Event>[] supportedEvents() {
return CollectionUtils.array(EntityPathfindEvent.class);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be after init

@sovdeeth sovdeeth changed the base branch from master to dev/feature March 23, 2026 22:24
@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Mar 23, 2026
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Apr 1, 2026
AnOwlBe and others added 4 commits April 1, 2026 18:08
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
….java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
….java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
….java

Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Pull request adding a new feature. needs reviews A PR that needs additional reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants