Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Make CondIsEnchanted look for exact enchants by default, with optional greater/equal to.

Open sovdeeth opened this issue 9 months ago • 0 comments

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

sovdeeth avatar Apr 20 '25 18:04 sovdeeth