Skip to content

Conversation

sovdeeth
Copy link
Member

@sovdeeth sovdeeth commented Apr 20, 2025

Description

Current behavior means if {_x} is enchanted with sharpness 2 succeeds if {_x} has sharpness 5. This is a bit unintuitive imo, so this PR changes the default so that no longer succeeds. Only sharpness 2 would count. is enchanted with sharpness still matches all levels. To have the old behavior, you now use is enchanted with sharpness 2 or better.

It's a breaking change, but a beneficial one in my opinion.

Also fixes a double-evaluation bug with the condition.


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

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
@sovdeeth sovdeeth added enhancement Feature request, an issue about something that could be improved, or a PR improving something. breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) labels Apr 20, 2025
@sovdeeth sovdeeth requested a review from a team as a code owner April 20, 2025 18:39
@sovdeeth sovdeeth requested review from Pikachu920 and erenkarakal and removed request for a team April 20, 2025 18:39
@sovdeeth sovdeeth changed the title Make CondIsEnchanted look for exact enchants be default, with optional greater/equal to. Make CondIsEnchanted look for exact enchants by default, with optional greater/equal to. Apr 20, 2025
@sovdeeth sovdeeth moved this to In Review in 2.12 Releases May 14, 2025
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label May 15, 2025
@erenkarakal erenkarakal added feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. and removed needs reviews A PR that needs additional reviews labels May 20, 2025
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

I have a few thoughts that I would like to discuss before this is merged. Not strict requirements by any means.

@APickledWalrus APickledWalrus linked an issue Jun 4, 2025 that may be closed by this pull request
1 task
@erenkarakal erenkarakal moved this from Awaiting Merge to In Review in 2.12 Releases Jun 5, 2025
sovdeeth added 2 commits June 14, 2025 12:22
@sovdeeth sovdeeth removed the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Jun 14, 2025
@sovdeeth sovdeeth requested a review from APickledWalrus June 14, 2025 19:30
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

epic

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Merge in 2.12 Releases Jun 25, 2025
@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 Jun 25, 2025
@sovdeeth sovdeeth merged commit 0737eda into SkriptLang:dev/feature Jun 30, 2025
5 checks passed
@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 Jun 30, 2025
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done in 2.12 Releases Jun 30, 2025
@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 Jun 30, 2025
Burbulinis pushed a commit to Burbulinis/Skript that referenced this pull request Jul 9, 2025
…l greater/equal to. (SkriptLang#7816)

* Make exact the default and greater than the opt-in

* allow greater than and lesser than or equal to

* add tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
Status: Done - Released
Development

Successfully merging this pull request may close these issues.

is enchanted condition docs update for level
4 participants