Skip to content

Fix bookshelf and decorated pot comparisons#7696

Merged
erenkarakal merged 11 commits into
SkriptLang:dev/featurefrom
Fusezion:patch/bookshelf-inventory-type
Mar 31, 2025
Merged

Fix bookshelf and decorated pot comparisons#7696
erenkarakal merged 11 commits into
SkriptLang:dev/featurefrom
Fusezion:patch/bookshelf-inventory-type

Conversation

@Fusezion
Copy link
Copy Markdown
Contributor

@Fusezion Fusezion commented Mar 13, 2025

Description

This PR aims to fix the issue mentioned in #7620, this pr makes the inventory types of chiseled bookshelf and decorated pot use the same pattern as all other inventory types of [chiseled] bookshelf inventory and decorated pot inventory

this is technically a breaking change, however past behavior make things like target block of x is y nearly impossible to do without janky work arounds like "bookshelf" parsed as itemtype

Unsure how needed the regression test is but since this was a bug, I've gone ahead and added one, this targets dev/feature since it's the next planned release.


Target Minecraft Versions: any 1.20+ for decorated pots
Requirements: none
Related Issues: none #7620

Comment thread src/test/skript/tests/regressions/7620-can't-compare-bookshelf-with-block.sk Outdated
@Romitou Romitou added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Mar 16, 2025
@Efnilite Efnilite added the breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) label Mar 18, 2025
@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Mar 22, 2025
@Fusezion Fusezion requested a review from a team as a code owner March 30, 2025 15:06
@Fusezion Fusezion requested review from APickledWalrus and Romitou and removed request for a team March 30, 2025 15:06
@erenkarakal erenkarakal merged commit 603662f into SkriptLang:dev/feature Mar 31, 2025
@Fusezion Fusezion deleted the patch/bookshelf-inventory-type branch April 7, 2025 14:21
erenkarakal added a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
* Fix bookshelf and decorated pot comparisons

* newline ;(

* lazy fix

* Fix forgotten test change

* 100% fix intentional design, or something
- use blockdata instead

* Fix the test that I somehow broke

---------

Co-authored-by: Eren <67760502+erenkarakal@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking changes Pull or feature requests that contain breaking changes (API, syntax, etc.) bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 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.

6 participants