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
-
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 player
expression 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 grow
event. 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 x
may 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"
as0
and 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 slot
expression.loop-(counter|iteration)[-%number%]
for both normal and while loop and improved performance for loop-value.items in inventory
expression.tool change
event'sevent-slot
and for thehotbar slot
expression. Also allows the ommission of the player inhotbar slot
when using it in events that have an event-player.is jumping
for living entities condition. (Paper 1.15+)ready arrow
eventshear
effect.is climbing
for living entities condition.Free/Max/Total Server Memory
expression.damage
expression.event-item
andevent-slot
to the resurrect event. If no totem is present, these values arenone
.returns
aliases forfunction
definition.player
andofflineplayer
functions.<keybind:value>
).apply bone meal
effect.on move
event.isNaN(number)
to check if a number is NaN.Bug Fixes
cursor slot
not always returning the correct item ininventory click
events.difference
expression.parsed as
expression returning arrays or throwing exceptions.drops
in 1.20.2+.Removals
Changes
furnace slot
expressions and fixes numerous issues with them.element
expression 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 grow
event. Fixes an issue where listening toon grow of sugarcane
or any other full-block plant, like cacti or pumpkins, would never fire. Adds more functionality to specify what exactly to listen for.case-insensitive variables
config option visible by default in the config file.block change
event and adds block and blockdata event values.decrease
as an alias forreduce
, e.g.decrease {_var} by 2
.and with
beforefade out
in thetitle
effect.continue
to continue outer loops.target entity
expression 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 names
config option enabled.API Changes
Timespan#getTicks
andTimespan#fromTicks
from returning ints to returning longs. DeprecatedTimespan#getTicks_i
andTimespan#fromTicks_i
due to API name change.Direction#getDirection
which returns a vector.%objects%
to avoid UnparsedLiterals.ExpressionType#NORMAL
was removed.ExpressionType#EVENT
was added for EventValueExpressions. A new default register method was added to EventValueExpression.WILL
to PropertyCondition to allow for easy registration for conditions likeplayer will consume the firework charge
.SyntaxElementInfo#c
toSyntaxElementInfo#elementClass
. This field will be made private in 2.9. Please use theSyntaxElementInfo#getElementClass()
getter instead.Inventory Slot
toSlot
.MarkedForRemoval
annotations 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