Releases: SkriptLang/Skript
Saturation support
- 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?
- 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
- Fixed heal/repair effects not working
- Cleaned up some code
Some Bugs Fixed
... 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!
- 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
- 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
- Fixed a bug where you could skip click events on usable blocks by having block in main hand and sneaking
Hotfixing click events
- 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!
- 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?
- 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.