Merged
Conversation
Examples: %bskyblock_island_limit_cobblestone% %bskyblock_island_limit_netherrack% These are fixed values from the blockconfig.yml file
…eholder Add block limit count placeholder
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Oraxen furniture is entity-based (item displays / armor stands) rather than block-based, so it was invisible to the existing chunk block scanner. This change adds a post-scan step that iterates entities in each island chunk, identifies Oraxen furniture base entities within the island's protected bounds, and counts them using the same "oraxen:<id>" namespaced key as the existing block mechanic support. Furniture values can be configured in blockconfig.yml using the item ID (e.g. oraxen:my_chair: 5). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MockBukkit dev-9b384aa is built against Paper API 1.21.11-R0.1-SNAPSHOT. Aligning the project's Paper dependency eliminates the version-mismatch warning and allows all 22 tests to pass cleanly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MockBukkit dev-9b384aa is built against Paper API 1.21.11-R0.1-SNAPSHOT. Aligning the project's Paper dependency eliminates the version-mismatch warning and allows all 22 tests to pass cleanly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update Paper API to 1.21.11 to match MockBukkit
Add Oraxen furniture mechanic support for island levelling
…ion #389 Nexo is the successor to Oraxen and has its own API for custom blocks and furniture. This adds full support for both: Custom blocks (noteblock, stringblock, chorusblock mechanics): - NexoBlocks.customBlockMechanic(Location) detects any Nexo custom block at a location during the async chunk scan, counted as "nexo:<id>" - NexoItems.exists/idFromItem detects Nexo items inside containers Furniture mechanic: - After the block scan, NexoFurniture.furnitureMechanic(Entity) scans entities in each island chunk; entities with a non-null mechanic are the furniture base entities and are counted as "nexo:<id>" Configuration: - Values are set in blockconfig.yml using the item ID, e.g.: nexo:my_chair: 5 - isNexo() helper in Level respects the disabled-plugin-hooks config list - BlockConfig.isOther() validates nexo: keys via NexoItems.exists() - Utils.prettifyObject() strips the nexo: prefix for display names Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add Nexo custom block and furniture support for island levelling
- getObjectFromConfigKey: return configKey as-is for unresolved keys instead of only returning when ItemsAdder confirms it; custom block strings (oraxen:x, nexo:x, namespace:id) are stored as String keys in mdCount/uwCount so they must be returned as strings - getItemIdentifier: add Oraxen (OraxenHook.getNamespacedId) and Nexo (NexoItems.idFromItem) checks for _island_count_mainhand - getBlockIdentifier: add Oraxen (OraxenHook.getOraxenBlockID), Nexo (NexoBlocks.customBlockMechanic), and ItemsAdder (ItemsAdderHook.getInCustomRegion) checks for _island_count_looking Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix custom block count/value/limit placeholders for Oraxen, Nexo, ItemsAdder #391
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.