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

Make event parsing more reliable #5900

Merged
merged 7 commits into from
Nov 30, 2023
Merged

Conversation

UnderscoreTud
Copy link
Member

Description

This PR makes event parsing more reliable by using a similar parsing strategy to if statements, by separating data related to the event and the actual syntax of the event so we could add data to the event pattern more easily in the future. The new event syntax will be [on] <.+> [with priority (:(lowest|low|normal|high|highest|monitor))] where <.+> is the actual syntax of the event inputted by the user (without any modifications)


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@UnderscoreTud UnderscoreTud added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Aug 10, 2023
@TheLimeGlass TheLimeGlass added the breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) label Aug 11, 2023
@Moderocky Moderocky force-pushed the master branch 3 times, most recently from bd134d0 to 3f08853 Compare September 16, 2023 16:59
@UnderscoreTud UnderscoreTud changed the base branch from master to dev/feature September 17, 2023 09:53
Co-authored-by: LimeGlass <16087552+TheLimeGlass@users.noreply.github.com>
Copy link
Member

@Pikachu920 Pikachu920 left a comment

Choose a reason for hiding this comment

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

lovely pr thank you tud

@sovdeeth sovdeeth added 2.8 Targeting a 2.8.X version release feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. labels Nov 24, 2023
@sovdeeth sovdeeth merged commit fccb68e into dev/feature Nov 30, 2023
5 checks passed
@sovdeeth sovdeeth deleted the enhancement/event-parsing branch November 30, 2023 17:16
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 breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants