Feature Release 2.8.0 #6335
APickledWalrus
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Skript 2.8.0
Skript 2.8.0 is here for everyone to enjoy! This release contains many new features and bug fixes to improve the Skript experience.
Below, you can familiarize yourself with the changes. As always, report any issues to our issues page! Per our new release model, we plan to release 2.8.1 on February 1st to continue addressing bugs. In the event of any critical issues, an emergency patch release may come sooner.
Happy Skripting!
⚠ Breaking Changes
target entity of playerexpression has been improved and now uses raytracing to find the player's target. This should cut down on false positives significantly, but the change in behavior may cause issues for some users who relied on its quirks."xyz"as a player would return the first online player to contain"xyz"somewhere in their name. Now, it only returns players that start with"xyz". See 🛠 Change player parsing to usename starting with#5875 for more.on growevent. The grow event now has many more options to specify how you want it to listen. These changes mean that code that useson grow of xmay fire twice as often as expected.durability of %item%now actually returns the durability (a pick with durability 103/160, for example, returns 103) instead of the prior behavior, where it would act likedamage of %item%(returning 57 for 103/160).<none>for a whole chain if one of the operations is illegal. Previously, adding1 + "hello"would treat"hello"as0and just return1. This now returns<none>. However, the behavior of adding things to unset values hasn't changed.1 + {_none}still returns1.Changelog
Additions
raw index of slotexpression.loop-(counter|iteration)[-%number%]for both normal and while loop and improved performance for loop-value.items in inventoryexpression.tool changeevent'sevent-slotand for thehotbar slotexpression. Also allows the ommission of the player inhotbar slotwhen using it in events that have an event-player.is jumpingfor living entities condition. (Paper 1.15+)ready arroweventsheareffect.is climbingfor living entities condition.Free/Max/Total Server Memoryexpression.damageexpression.event-itemandevent-slotto the resurrect event. If no totem is present, these values arenone.returnsaliases forfunctiondefinition.playerandofflineplayerfunctions.<keybind:value>).apply bone mealeffect.on moveevent.isNaN(number)to check if a number is NaN.Bug Fixes
cursor slotnot always returning the correct item ininventory clickevents.differenceexpression.parsed asexpression returning arrays or throwing exceptions.dropsin 1.20.2+.Removals
Changes
furnace slotexpressions and fixes numerous issues with them.elementexpression and adds the ability to A, get the first or last x elements of a list, and B, get the elements in a range from x to y in the list.on growevent. Fixes an issue where listening toon grow of sugarcaneor any other full-block plant, like cacti or pumpkins, would never fire. Adds more functionality to specify what exactly to listen for.case-insensitive variablesconfig option visible by default in the config file.block changeevent and adds block and blockdata event values.decreaseas an alias forreduce, e.g.decrease {_var} by 2.and withbeforefade outin thetitleeffect.continueto continue outer loops.target entityexpression to use raytracing for a player's target. This should make it much more accurate, but may change behavior slightly. Also adds an option to change the ray size and to ignore blocks.use player uuids in variable namesconfig option enabled.API Changes
Timespan#getTicksandTimespan#fromTicksfrom returning ints to returning longs. DeprecatedTimespan#getTicks_iandTimespan#fromTicks_idue to API name change.Direction#getDirectionwhich returns a vector.%objects%to avoid UnparsedLiterals.ExpressionType#NORMALwas removed.ExpressionType#EVENTwas added for EventValueExpressions. A new default register method was added to EventValueExpression.WILLto PropertyCondition to allow for easy registration for conditions likeplayer will consume the firework charge.SyntaxElementInfo#ctoSyntaxElementInfo#elementClass. This field will be made private in 2.9. Please use theSyntaxElementInfo#getElementClass()getter instead.Inventory SlottoSlot.MarkedForRemovalannotations withApiStatus.ScheduledForRemoval.cleanup()method in JUnit tests.Click here to view the full list of commits made since 2.7.3
Notices
Help Us Test
We have an official Discord community for beta testing Skript's new features and releases. We're currently testing a new version of skript-reflect and we would love some more testers!
Thank You
Special thanks to the contributors whose work was included in this version:
As always, if you encounter any issues or have some minor suggestions, please report them at https://github.com/SkriptLang/Skript/issues.
If you have any bigger ideas or input for the future of Skript, you can share those too at https://github.com/SkriptLang/Skript/discussions.
This discussion was created from the release Feature Release 2.8.0.
Beta Was this translation helpful? Give feedback.
All reactions