Skript
Skript copied to clipboard
Add support for itemstacks in item cooldown expression/condition
Description
This PR aims to add support for itemstacks for the cooldown expression and condition. This change adds support for the cooldown group of itemstacks.
This PR does not add support for setting a cooldown group, that is left for when components are handled/when someone implements paper's components
With the implementation of itemstacks I've decided to change how they were grabbed and handled, in addition with the design of the system I was not 100% sure if using getMaterial properly support all x when people still had aliases
The new system runs them through a map for getAll and then follows it with a flat map to an itemstack list
Why no Test?
Test were not included in this PR as I am not sure how to go around implementing them, as I don't believe junit would be able to actually run a proper test on a fake player.
Target Minecraft Versions: 1.20.5+ Requirements: none Related Issues: #7429