Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle Compatibility Improvements #6716

Merged
merged 9 commits into from
May 30, 2024

Conversation

APickledWalrus
Copy link
Member

@APickledWalrus APickledWalrus commented May 23, 2024

Description

This PR intends to fix particle compatibility between versions and fix some other issues that have arisen, especially after the 1.20.5 update (where the Particle enum saw major changes). For this, I have remade the particle definitions in the default language file. They are organized based on the Spigot Particle enum as of 1.20.6, with duplicate definitions for particles that had name changes present.

I have also gone ahead and rewritten the Data Suppliers for Particles with extra data. To ensure all particle are representable, I have made some tweaks to the way data is passed to the suppliers. For visual effects with patterns containing multiple expressions, they receive an array of values (may contain null).

This PR is not aiming to make any major changes to the Visual Effect system.

While the test suite (hopefully) passes, in-game testing still needs to be performed.


Target Minecraft Versions: any
Requirements: none
Related Issues:

@APickledWalrus APickledWalrus added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. enhancement Feature request, an issue about something that could be improved, or a PR improving something. needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. labels May 23, 2024
Copy link
Member

@Moderocky Moderocky left a comment

Choose a reason for hiding this comment

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

It looks good to me.

@Moderocky
Copy link
Member

Uh oh, the tests are failing because of a Vibration reference!

@sovdeeth sovdeeth added 2.8 Targeting a 2.8.X version release patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. labels May 29, 2024
@Moderocky Moderocky merged commit e7b17b0 into SkriptLang:dev/patch May 30, 2024
5 checks passed
sovdeeth pushed a commit to sovdeeth/Skript that referenced this pull request May 30, 2024
* first pass at updating lang entries

* Rewrite Particle lang entries

A lot of particles probably don't work though

* Add a test

* Fix block marker particles

* Add support for multiple expressions in a particle pattern

* first pass at new data suppliers

* Fix a few issues related to new suppliers

* Data supplier touchups

* Fix broken particles

---------

Co-authored-by: Moderocky <admin@moderocky.com>
@APickledWalrus APickledWalrus deleted the patch/particle-fixes branch May 30, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.8 Targeting a 2.8.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. enhancement Feature request, an issue about something that could be improved, or a PR improving something. needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants