Skip to content

Releases: SkriptLang/Skript

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.

And more hotfixes

17 Mar 19:26
Compare
Choose a tag to compare
And more hotfixes Pre-release
Pre-release
  • Fixed a bug where you could skip click events on usable blocks by having block in main hand and sneaking

Hotfixing click events

17 Mar 07:15
Compare
Choose a tag to compare
Pre-release
  • Fixed click events on usable blocks not triggering with items in off hand

So, due to a schedule change I had time to do this now. Hopefully this fixes most serious problems at least :)

Close those issues!

16 Mar 19:30
Compare
Choose a tag to compare
Close those issues! Pre-release
Pre-release
  • Word "potion" now describes water bottles and ALL potions; you can use it to check if player is holding non-empty bottle
  • When adding items to players' inventories, full inventories no longer make items to go to armor slots
  • Added technical (code-level) support for ignoring item meta when comparing items

This will be last release until Friday, so if something was broken, please use previous build.

Potions, fixed again?

15 Mar 19:47
Compare
Choose a tag to compare
Potions, fixed again? Pre-release
Pre-release
  • Fixed potion compare ("tool of player is potion of instant health" etc.)
  • Potion text representation is bugged, but at least won't tell they're water bottles anymore
  • Added support for lingering and splash potions (see below for syntaxes)
  • Fixed nether portals not working...
  • Removed Minecraft 1.8 requirement for raw names

Syntaxes: [((regular|normal)|(strong|upgraded|level 2)|(extended|long)) ][((splash|exploding)|lingering) ] potion of %potioneffecttype%

Changes for dev7b:

  • Fixed dev7 breaking aliases (and kinda everything else)
  • Fixed giving water bottles giving errors

Still, BE CAREFUL with pre-releases. They might cause severe problems. This one was unlikely to damage your worlds, but who knows... Anything can happen, remember to take backups.