Releases: SkriptLang/Skript
And more bug fixes...
- Fixed a bug with functions (post validation, again)
- Fixed a bug with WorldGuard support (issue #74)
Bug fixes
Skript Timings!
- 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
- 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?
- 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!
- 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
- 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
- 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
- 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!
- Fixed a typo (pull request 1)
- Fixed cakes' and item frames' right click handling
Edit: dev11d to remove debug messages