Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changeable Max Stack Size for Items and Inventory #6698

Merged

Conversation

NotSoDelayed
Copy link
Contributor

@NotSoDelayed NotSoDelayed commented May 15, 2024

Description

This PR adds support of changeable max stack size of inventories and the recently introduced max stack size ItemMeta in Minecraft 1.20.5.

Javadocs:

Note

Using GitHub actions to test the attached test scripts due to Skript testing environment abruptly failing. My sincerely apologies for any bulk commits from fixing tests.


Target Minecraft Versions: Minecraft 1.20.5 (changeable itemstack max stack size)
Requirements: Spigot 1.20.5 (changeable max stack size ItemMeta)
Related Issues: #5020 (inventory)

@cheeezburga
Copy link
Member

Should this PR also include changes to the is stackable condition to properly reflect this new stuff?

@NotSoDelayed
Copy link
Contributor Author

Should this PR also include changes to the is stackable condition to properly reflect this new stuff?

The condition checks if the max stack size is more than 1, which to me it looks like it is fine as is, unless I’m missing something.
image

@cheeezburga
Copy link
Member

Should this PR also include changes to the is stackable condition to properly reflect this new stuff?

The condition checks if the max stack size is more than 1, which to me it looks like it is fine as is, unless I’m missing something. image

Ye I have no idea what I was thinking when I looked at the condition earlier, looks so fine. Probably a result of no sleep tbh, my bad.

@sovdeeth sovdeeth added the feature Pull request adding a new feature. label May 28, 2024
@NotSoDelayed NotSoDelayed requested a review from sovdeeth May 31, 2024 14:42
@NotSoDelayed NotSoDelayed requested a review from sovdeeth July 1, 2024 16:06
Copy link
Member

@Moderocky Moderocky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can just tweak these for Java 17 :)

@NotSoDelayed
Copy link
Contributor Author

Java 17 ready!

Copy link
Member

@cheeezburga cheeezburga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some small things

@Efnilite Efnilite added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Nov 16, 2024
@sovdeeth sovdeeth merged commit 541dc12 into SkriptLang:dev/feature Nov 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants