• Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

FIXED:
- Fixed an issue with item variables not working in hover events

CHANGED:
- Scoreboards now support 128char lines (in 1.13+)
- Scoreboard lines now support text components

ADDED:
- Added support for legacy scoreboards (32char lines each)
- Added support for translatable text components
- Added an expression for formatting text components
FIXED:
- Fixed an error with block cuboid expression
- Fixed an error with recipes
- Fixed an issue with scoreboards not showing line 8

ADDED:
- Added block data as an option when setting a block with NBT (since Skript now has block data)
- Added hidden dye flag
- Added some text component syntaxes
- Added some pathfinding syntaxes
- Added an “entity physical interact” event, called when an entity physically interacts with a block (ie: trampling farmland)
- Added a “player recipe book click” event, called when a player clicks on a recipe in their recipe book
- Added an “entity pathfind event” event, called when an entity starts to pathfind
- Added a “skeleton horse trap” event, called when a skeleton horse trap summons their other skeleton horses
- Added an “anvil damage” event, called when an anvil takes damage

CHANGED:
- Changed the toggle option for scoreboards, can now just toggle (which will reverse whatever the state currently is)
- Update StructureBlock API for 1.16.2 support
- Big update to internal NBTApi (just some code cleanup)
  • Like
Reactions: DHStyle and Diclo
CHANGED:
- Updated support for 1.16.2 NBT
- Better error handling when NBT support is unavailable (for future releases of Minecraft)

NOTE:
- Still no support for 1.16.2 structures until the StructureBlock API has been updated
CHANGED:
- Changed the spawn entity with NBT effect to use consumers internally. This means the NBT will be applied to the entity BEFORE it actually spawns in the world, which means adding things like invisible to an armor stand, will make sure the armor stand is not visible for a split second. (This will only work on versions of Spigot that have the consumer class for spawning - I believe this was added in 1.11.x)
- Changed the NBT of object expression to be able to get FULL NBT of an item. This is the just like the item nbt except it will also contain the item's namespace and item stack size.
ex:
code_language.skript:
# Player's tool being a diamond sword of sharpness 3
send "%nbt of player's tool%"
#output -> {Enchantments:[{id:"minecraft:sharpness",lvl:3s}],Damage:0}

send "%full nbt of player's tool%"
#output -> {id:"minecraft:diamond_sword",tag:{Damage:0,Enchantments:[{id:"minecraft:sharpness",lvl:3s}]},Count:1b}

ADDED:
- Added an expression to get an item from an NBT string. Could be useful in conjunction with `full nbt of item` for serializing.
code_language.skript:
set {_i} to item from nbt "{id:""minecraft:diamond_sword"",tag:{Damage:0,Enchantments:[{id:""minecraft:sharpness"",lvl:3s}]},Count:1b}"

FIXED:
- Fixed an issue with nested tags not returning lists
- Fixed an issue with nested tags throwing an NPE when tag is invalid
  • Like
Reactions: Diclo
ADDED:
- Added a syntax to check if a player has discovered a recipe (This is only available on 1.16+ since that is when Bukkit added this method)
%players% (has|have) [not] discovered recipe[s] %strings%
  • Like
Reactions: DHStyle and Diclo
CHANGED:
- Changed the syntax for BlockData when running Skript 2.5-beta1+ due to Skript adding its own block data system
Old:
code_language.skript:
block[ ](data|state) [(tags|tag %-string%|without update[s])]"

New:
The part within the parenthesis is no longer optional. (Again, only on Skript 2.5-beta1+)
code_language.skript:
block[ ](data|state) (tags|tag %-string%|without update[s])"
If using Skript 2.5-beta1+ simply remove the quotes around your block data and replace commas with a semi colon,
example:
code_language.skript:
#from
set block data of target block to "campfire[lit=false,waterlogged=true]"
#to
set block data of target block to campfire[lit=false;waterlogged=true]
FIXED:
- Fixed an issue with nested tags not working and/or throwing errors
- Fixed an issue with getting/settings block NBT from a non tile entity throwing errors

CHANGED:
- Added an option to setting block data to not update neighbouring blocks.
  • Like
Reactions: Diclo
FIXED:
- Fixed an issue with not being able to store enchants on a slot of an inventory

CHANGED:
- Updated StructureBlockLib version (I dont think anything actually changed)
- Added an auto-disabler for Structure elements when a new MC version comes out, and StructureBlockLib has not updated yet. This message will let users know why exactly its not working.
- Added "state" to the syntax of block data elements, since Minecraft actually calls them BlockStates where as Bukkit calls them BlockData
CHANGED:
- Structures now work again in 1.16.1

FIXED:
- Fixed an issue with NBT in inventory slots
FIXED:
- Fixed a small issue with virtual furnaces throwing errors
- Fixed an issue where input slots of virtual furnaces kept smelting even if the output slot was full, thus losing items.
- Fixed an issue with null NBT throwing invalid error, now it will pass

ADDED:
- Added support to retrieve UUIDs from NBT (NBT actually stores UUIDs in a split format, this joins it together)
- Added changers to bounds coord expression for adding/subtracting to/from coords rather than just setting them
- Added an option to modify NBT of an inventory slot

NOTES:
- Structure elements for 1.16+ still not working. These elements use an API called StructureBlockLib, which has still not updated for 1.16.x yet.
  • Like
Reactions: Diclo