Skip to content

An inventory update

Pre-release
Pre-release
Compare
Choose a tag to compare
@bensku bensku released this 19 Apr 10:33
· 2583 commits to master since this release

The few previous releases were, if not small, not huge either. Well, this one isn't. Lots of new features, old bugs fixed and so on. Also, probably some new bugs. Test before you put this to your public server.

If you use addons, this release might cause you some trouble due to inventory slot handling changes. Known problems:

  • TuSKe prints errors on startup, but appears to work otherwise

The addon developers have been notified. If you are an addon developer and were not noticed, open an issue or contact me in some other way.

  • Added more information to Skript's exceptions (thanks @Pikachu920)
  • Added support for modifying remaining air better (thanks @TheLimeGlass)
  • Added an item despawn event (thanks @TheLimeGlass)
  • Added an event for item merge (thanks @TheLimeGlass)
  • Added support for exhaustion of players (thanks @TheLimeGlass)
  • Added an expression to get all offline players (thanks @TheLimeGlass)
  • Added possibility to set location of respawn in the event (thanks @TheLimeGlass)
  • Added an event for addons that is triggered just before a script is loaded (thanks @Pikachu920)
  • Added support for multiple JSON-formatted messages (thanks @Pikachu920, closes #1153)
  • Added a warning for unnecessary string conversions (thanks @Pikachu920, closes #1149)
  • Added an expression to get seed of the world (thanks @TheLimeGlass)
  • Added expressions for temperature and humidity (thanks @Pikachu920, closes #896)
  • Added support for comparing slots with numbers when they have indices
  • Added support for negation of 'on ground' condition
  • Added an expression for getting an indices of inventory slots
  • Added item frame slot support
  • Fixed a bug with documentation generator not working on new Paper versions
  • Fixed grammar issues in the README (thanks @TheLimeGlass)
  • Fixed some edge cases where some entities would not be killed correctly (thanks @Pikachu920, closes #937)
  • Fixed function return values sticking around too long (thanks @Pikachu920)
  • Fixed slots not working as specified in the Javadoc
  • Fixed inventory info expression sometimes causing exceptions (closes #1163)
  • Fixed list being parsed where they shouldn't have been (closes #1148, #842, relates to #946)
  • Fixed capitalized color codes not working (closes #1083)
  • Fixed negated comparisons with nothing (closes #1088)
  • Fixed contains condition not always working with list variables (closes #411)
  • Fixed inventory slots being incorrectly converted to text (#362)
  • Fixed event-value for the slot not always representing the correct inventory
  • Fixed functions not being executed when values are provided but do not exist (closes #1089)
  • Renamed click actions as click types, because that makes more sense
  • Reworked some slot handling, which might break some addons
  • Removed ability to cause client crashes and freeze the server using weird inventory sizes

Plus a few changes which shouldn't be visible for scripters:

  • Added an API for registering custom chat codes
  • Fixed compilation on Java 9 or newer (closes #1166)
  • Improved code quality (thanks @Nicofisi and @TheLimeGlass)

If your functions broke, try adding

execute functions with missing parameters: false

in your config.sk. It will revert back to the old, weird, behaviour, where functions are not executed at all when any parameter provided does not exist.

Release dev35b, mainly to fix some serious parser issues:

  • Fixed entities being parsed as inventory holders (closes #1126)
  • Fixed a conflict that custom inventory syntax had (closes #1202)
  • Fixed 'or' lists not working, where only 'and' lists should have been disallowed (closes #1196)
  • Fixed some regressions with item/slot to string conversion (closes #1200)
  • Improved the expression to format time (closes #1167)