Skip to content

Releases: SkriptLang/Skript

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.

Anvil inventories?

30 Mar 18:43
Compare
Choose a tag to compare
Anvil inventories? Pre-release
Pre-release
  • Added support for anvil and chest (black hole, once closed, contents are lost) inventories
  • Fixed biomes when running on Spigot 1.9 (they work exactly as before)
  • Added support for item expression in click events (no need to manually check hands!)

Effects:
Opening inventories (full new syntax): (open|show) (((crafting [table]|workbench)|chest|anvil) (view|window|inventory|)|%-inventory%) (to|for) %players%
Expressions:
Event item (as before, new events supported): [the] item

Hotfix for dev10

26 Mar 11:45
Compare
Choose a tag to compare
Hotfix for dev10 Pre-release
Pre-release
  • Fixed heal/repair effects not working
  • Cleaned up some code

Some Bugs Fixed

25 Mar 14:07
Compare
Choose a tag to compare
Some Bugs Fixed Pre-release
Pre-release

... and hopefully not many new bugs introduced

  • Fix 1.8 compatibility issue with getItemInHand vs. getItemInMainHand (remember, still not officially supported)
  • Damaging entities now changes the damage cause AFTER damage event is called, instead of not changing it all
  • Added expression for last damage cause of entity
  • Fixed adding lists of items to inventories
  • Fixed inventory space checks, now considers 1.9 Spigot changes

Syntaxes:
Last damage cause: last damage cause of %livingentities%
Damage expression changed to: damage %slots/livingentities/itemstack% by %number% [heart[s]][ with fake cause %-damagecause%]

There are still some bugs left, but I think it is soon time for final V10 release. Quick TODO list for it:

  • Fix issues which can be fixed without too big rewrites
  • Create working updater for Skript
  • Update aliases packaged with plugin
  • Add some new features
    The bug rewrites (tag aliases-rework, for example) will come in next major release. First I need to create something stable enough.

New event!

21 Mar 14:47
Compare
Choose a tag to compare
New event! Pre-release
Pre-release
  • Added plant growth event (for wheat, etc.)

Syntax: (plant|crop|block) grow[(th|ing)] [[of] %itemtypes%]
Note that the event does not contain actual block data. While I intend to fix that, of %itemtypes% syntax works, and %block at location% too.

Click events fixed

19 Mar 13:28
Compare
Choose a tag to compare
Click events fixed Pre-release
Pre-release
  • Reworked click event hand detection
  • Fixed oak doors not being considered as usable blocks
  • Fixed not being able to get event from non-usable item when clicking air
  • Fixed several ways to skip event handling (to open locked chests)

In the end, I really wonder why Bukkit AIR material is considered to be a block...

Edit: Re-release to remove debug messages. I forgot to recompile after removing them from source.