Skip to content

Split block requirements from item requirements#59

Merged
Muspah merged 6 commits into
uskyblock:masterfrom
minoneer:block-requirements
Dec 9, 2024
Merged

Split block requirements from item requirements#59
Muspah merged 6 commits into
uskyblock:masterfrom
minoneer:block-requirements

Conversation

@minoneer

@minoneer minoneer commented Dec 9, 2024

Copy link
Copy Markdown
Member

Block and item requirements were handled identically previously for challenges. This never really made sense conceptually, as they are two different things and are treated differently internally. With Minecraft 1.21.X, this broke due to changes in how the server handles ItemStack creation. ItemStacks can no longer be obtained for Materials that are not an item, e.g., nether portal blocks.

This PR splits the implementation of item and block requirements. It fixes #58.

I removed the AWE integration because the missing dependency stopped the project from compiling. AWE has been abandoned for ~2 years and is unlikely to be revived. The focus should be on FAWE in the future if fast regeneration is desired.

AsynchWorldEdit has been abandoned for over 2 years and does not work with current server versions. We should focus on supporting FAWE going ahead.
This resolves an issue in newer Spigot versions where non-item blocks in challenge requirements prevent the plugin from loading.
Fixes uskyblock#58
@Muspah

Muspah commented Dec 9, 2024

Copy link
Copy Markdown
Member

LGTM, thanks!

@Muspah Muspah merged commit 8644963 into uskyblock:master Dec 9, 2024
@minoneer minoneer deleted the block-requirements branch February 3, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to support MC 1.21.1

2 participants