Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Add support for setting maximum stack size of inventory

Open TheLimeGlass opened this issue 2 years ago • 0 comments

Suggestion

https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/Inventory.html#setMaxStackSize(int) https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/Inventory.html#getMaxStackSize()

Add support for setting maximum stack size in inventory

Why?

Skript doesn't have this yet.

Other

SkQuery has this for code reference https://github.com/SkQuery/SkQuery/blob/9c73a59b57c5dbcd24de5ed65c5855ccc54c2641/src/main/java/com/w00tmast3r/skquery/elements/expressions/ExprItemStackSize.java

Skript currently has

[the] max[imum] stack[[ ]size] of %itemtype% 
%itemtype%'[s] max[imum] stack[[ ]size] 

So watch out for syntax conflicts.

Agreement

  • [X] I have read the guidelines above and affirm I am following them with this suggestion.

TheLimeGlass avatar Aug 09 '22 02:08 TheLimeGlass