Skip to content

Location with Yaw/Pitch#8351

Merged
APickledWalrus merged 8 commits intodev/featurefrom
feature/location-with-yaw-pitch
Jan 21, 2026
Merged

Location with Yaw/Pitch#8351
APickledWalrus merged 8 commits intodev/featurefrom
feature/location-with-yaw-pitch

Conversation

@UnderscoreTud
Copy link
Copy Markdown
Member

Problem

Currently, getting a location of something with a specific yaw/pitch is not the most intuitive thing, either requiring a long location function/expression call with the location's x, y, z and world (e.g. location({_loc}'s x, {_loc}'s y, {_loc}'z, {_loc}'s world, yaw, pitch), or spread out to multiple lines, as follows:

set {_location} to location of player
set yaw of {_location} to yaw
set pitch of {_location} to pitch

Solution

Add an expression to return a location with the specified yaw and/or pitch, for example player's location with yaw 15 and pitch 20

Testing Completed

ExprWithYawPitch.sk

Supporting Information


Completes: none
Related: none
AI assistance: none

@UnderscoreTud UnderscoreTud requested review from a team as code owners January 5, 2026 14:21
@UnderscoreTud UnderscoreTud requested review from Burbulinis and sovdeeth and removed request for a team January 5, 2026 14:21
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jan 5, 2026
@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Jan 5, 2026
@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Jan 6, 2026
@github-project-automation github-project-automation bot moved this to In Review in 2.15 Releases Jan 6, 2026
@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.15 Releases Jan 21, 2026
@skriptlang-automation skriptlang-automation bot added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jan 21, 2026
@APickledWalrus APickledWalrus merged commit d16e094 into dev/feature Jan 21, 2026
10 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.15 Releases Jan 21, 2026
@skriptlang-automation skriptlang-automation bot added the completed The issue has been fully resolved and the change will be in the next Skript update. label Jan 21, 2026
@APickledWalrus APickledWalrus deleted the feature/location-with-yaw-pitch branch January 21, 2026 22:55
@skriptlang-automation skriptlang-automation bot removed the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jan 21, 2026
sovdeeth pushed a commit to sovdeeth/Skript that referenced this pull request Feb 9, 2026
sovdeeth added a commit that referenced this pull request Apr 2, 2026
* Add Origin-applying SyntaxRegistry (#8376)

* Add reduce/fold Expression (#8353)

* Location with Yaw/Pitch (#8351)

* Test framework: support directory resources (#8377)

* Test framework: support directory resources

* use walkFileTree

* oops forgot imports

* Pattern Stringification Customization (#8391)

* Implement StringificationProperties

* Package cleanup

* Fix missing call in GroupPatternElement stringification (#8449)

Fix GroupPatternElement stringification

* Stabilise damage source experiment (#8414)

* Stabilise damage source experiment

* Replace STABLE with MAINSTREAM

* Remove experiment from damage source test

* Remove unstable API usage supression

---------

Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>

* Add vector(n) (#8412)

* Init commit

* Fix not registering overloading for old namespaces

* Standardize Module usage + add child modules (#8346)

* child module support

* Create child modules and move over existing Bukkit addon modules.

* Update newer modules

* Clean up

* Requested changes and additional conversions

Just tags left!

* convert last module

* standardize package hierarchies

* remove bad imports

* fix bad examples

* Replace ChildAddonModule with HierarchicalAddonModule, move display/interaction modules into entity module, few other requested changes

* requested changes

* varargs registrar (thanks blue!)

* Use addonmodule javadocs to point to other useful tools

* Requested Changes

* Requested Changes

* Added option to compress file backups (#8396)

* Add fast path for integer strings in variable name comparator (#8483)

* Initial conversion

* Some more conversion

* fixes

* Update StructCommand.java

* no tests

---------

Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
Co-authored-by: mibers <midaswoah2@gmail.com>
Co-authored-by: _tud <98935832+UnderscoreTud@users.noreply.github.com>
Co-authored-by: devdinc <234956748+devdinc@users.noreply.github.com>
Co-authored-by: Tiberiu Sabău <96194994+tibisabau@users.noreply.github.com>
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Co-authored-by: Pesek <42549665+Pesekjak@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completed The issue has been fully resolved and the change will be in the next Skript update. feature Pull request adding a new feature.

Projects

Status: Done - Awaiting Release

Development

Successfully merging this pull request may close these issues.

4 participants