Skip to content

Add support for non mob/player entities in EffLook#8553

Open
CJH3139 wants to merge 2 commits intoSkriptLang:dev/featurefrom
CJH3139:cjh/efflook
Open

Add support for non mob/player entities in EffLook#8553
CJH3139 wants to merge 2 commits intoSkriptLang:dev/featurefrom
CJH3139:cjh/efflook

Conversation

@CJH3139
Copy link
Copy Markdown
Contributor

@CJH3139 CJH3139 commented Apr 17, 2026

Problem

#8453

Solution

Added an else when the livingentity is neither a player nor a mob in PaperEntityUtils

Testing Completed

!spawn mannequin
!make last spawned mannequin look at me
(Also tested with armorstands)

Supporting Information


Completes: #8453
Related: none
AI assistance: none

@CJH3139 CJH3139 requested a review from a team as a code owner April 17, 2026 08:48
@CJH3139 CJH3139 requested review from Burbulinis and TheMug06 and removed request for a team April 17, 2026 08:48
@skriptlang-automation skriptlang-automation Bot added the needs reviews A PR that needs additional reviews label Apr 17, 2026
Copy link
Copy Markdown
Contributor

@ShaneBeee ShaneBeee left a comment

Choose a reason for hiding this comment

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

Small things I noticed

Comment thread src/main/java/ch/njol/skript/effects/EffLook.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffLook.java Outdated
@CJH3139 CJH3139 requested a review from ShaneBeee April 17, 2026 17:18
ShaneBeee

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

@ShaneBeee ShaneBeee left a comment

Choose a reason for hiding this comment

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

Thanks for those changes.
At quick glance this looks good to me!

Comment on lines +110 to +112
Location base = entity instanceof LivingEntity living ? living.getEyeLocation() : entity.getLocation();
Location loc = base.add(vector);
entity.lookAt(loc.getX(), loc.getY(), loc.getZ(), entityAnchor);
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.

I'm a little suspicious of this. Can you explain + test this case to me and why living entities act different?

@github-project-automation github-project-automation Bot moved this to In Review in 2.15 Releases Apr 21, 2026
@sovdeeth sovdeeth added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Apr 21, 2026
@sovdeeth sovdeeth removed this from 2.15 Releases Apr 24, 2026
@github-project-automation github-project-automation Bot moved this to In Review in 2.16 Releases Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature request, an issue about something that could be improved, or a PR improving something. needs reviews A PR that needs additional reviews

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants