Skip to content

Releases: SkriptLang/Skript

Bug fixes

06 May 18:23
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release
  • Fixed a memory leak with timings (note: there might be few more, needs testing)
  • Fixed some bugs with biomes (issue #73)
  • Biome "void" is now again known as "void" (not "void biome"); please report if you get errors with damage causes

Skript Timings!

04 May 18:49
Compare
Choose a tag to compare
Skript Timings! Pre-release
Pre-release
  • Fixed functions not always working as expected with "allow function calls before definations" config option
  • Added (experimental) Skript timings

Timings?
You can now log how much time your scripts take when using events. Use /sk timings start to start the timing, then /sk timing stop to stop it. You'll get timings-X.log file in Skript's directory root.

As said, it might not work in all cases. For example, it takes some RAM while in use and probably crashes the server if you don't have enough. Also, parsing big enough timing report will take some time, which might freeze your server...

Please report any bugs you find :) This was not easy feature to create, but I think it will be worth it. Now when this is over, I'll probably try to fix some reported bugs...

Edit: Memory leak found. Be careful with timings...

Some fixes for clicks

25 Apr 14:22
Compare
Choose a tag to compare
Some fixes for clicks Pre-release
Pre-release
  • Fixed a bug with eye of ender click handling
  • Fixed a bug that made click events not work with food when eating was not possible (not hungry)

Just a quick fix, nothing critical here.

You want to ignore those errors and just make it run?

24 Apr 11:49
Compare
Choose a tag to compare
  • Added config option "addon safety checks", which defaults to false and is not present unless you manually add it; enables additional checks here and there to remove null classes...

Warning: If this option fixes your problems, something is wrong with your addons and/or Skript. Please open ticket here and on addons' issue tracker once you know which addon was causing problems.

Unbreakable tools? Yes!

23 Apr 18:14
Compare
Choose a tag to compare
Pre-release
  • Fixed looping players with delay (wait X seconds/ticks)
  • Added support for mount events (for testing!)
  • Added unbreakable item expression

Events:
Mount: mount[ing]
Dismount: dismount[ing]
Expression vehicle should work with both of them.

Expressions:
Unbreakable items: unbreakable %itemtypes%

As always, please report any bugs you notice there :)

Functions enhanced

18 Apr 14:20
Compare
Choose a tag to compare
Functions enhanced Pre-release
Pre-release
  • Added optional function post-checking (see below for more information)
  • Added support for some new inventory events (which not all do work)
  • Skript's version number now follows Github tagging (now: 2.2-dev13)
  • Fixed potion item expression not working when running Skript in debug mode
  • Probably fixed #48 (portal region enter throwing exceptions)

Events:
Inventory Click: [player] inventory(-| )click[ing] [[at] %itemtypes%] (VERY BUGGY)
Prepare Craft Item: player craft[ing] [[of] %itemtypes%] (this seems to be not very reliable either)

I have plans to fix those events soon, especially if someone really needs them. Please open an issue if you do :)

Function post-checking
This enables you to write function calls before you define the functions. The feature is experimental, but should work just fine. You can toggle it on in your config file (which should have been updated automatically to have the option).

When enabled, functions' existence is not checked when a function call is met - instead, checking is done after all scripts are loaded. Possible caveats:

  • There are many different ways to (re)load scripts, did I remember to add checks for all?
  • Post-validation might slow down loading scripts
  • Error messages in case of missing functions come after all other messages...
  • Missing functions CAN spam your console with exceptions if you don't immediately fix those

Particle support v3

11 Apr 16:06
Compare
Choose a tag to compare
Particle support v3 Pre-release
Pre-release
  • Fixed and improved particle support drastically
  • Hotfixed regions, again
  • Made dropping items without velocity (using normal expression with without velocity) possible

Note: colored dust and both potion swirl particles are buggy

For particles names, see language file. It is also possible to set offsets (dX, dY, dZ), and speed of particle. Following is added to end of every (non buggy, see above) expression:
[with [offset of %number%, %number%(,| and) %number%][[and ]speed %number%]]
Example:
play 100 (dust of oak wood with speed 0) above clicked block

Effects:
Visual effect (updated):
(play|show) %visualeffects% (on|%directions%) %entities/locations% [(to %-players%|in (radius|range) of %number%)]
OR
(play|show) %number% %visualeffects% (on|%directions%) %entities/locations% [(to %-players%|in (radius|range) of %number%)] (if you want to specify amount of particles)

Update: Released dev12c to fix broken entity effects (same download link)

Update 2: Playing multiple effects no longer accepts entity as parameter

Particle support v2

10 Apr 12:06
Compare
Choose a tag to compare
Particle support v2 Pre-release
Pre-release
  • Added support for most of Minecraft's particles
  • Fixed error with void biome vs. void damage
  • Added support for levitation

Quick reference for new (and old) visual effects supported

Dev 12.. Not yet!

03 Apr 17:41
Compare
Choose a tag to compare
Dev 12.. Not yet! Pre-release
Pre-release
  • Fixed a typo (pull request 1)
  • Fixed cakes' and item frames' right click handling

Edit: dev11d to remove debug messages

Saturation support

31 Mar 15:18
Compare
Choose a tag to compare
Saturation support Pre-release
Pre-release
  • Added support for saturation

Expressions:
Saturation: [the] saturation [of %players%]

Note that saturation is not same as food level, i.e. you don't see it directly as player.