Skip to content

Comments

Release 2.22.1#401

Merged
tastybento merged 20 commits intomasterfrom
develop
Feb 21, 2026
Merged

Release 2.22.1#401
tastybento merged 20 commits intomasterfrom
develop

Conversation

@tastybento
Copy link
Member

No description provided.

tastybento and others added 20 commits October 11, 2025 16:00
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
@sonarqubecloud
Copy link

@tastybento tastybento merged commit 045a634 into master Feb 21, 2026
5 checks passed
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.

1 participant