Skip to content

Comments

Add Oraxen furniture mechanic support for island levelling#397

Merged
tastybento merged 3 commits intodevelopfrom
390_oraxen_furniture
Feb 20, 2026
Merged

Add Oraxen furniture mechanic support for island levelling#397
tastybento merged 3 commits intodevelopfrom
390_oraxen_furniture

Conversation

@tastybento
Copy link
Member

@tastybento tastybento commented Feb 20, 2026

Summary

Relates to #390

  • Oraxen furniture is entity-based (item displays / armor stands) rather than block-based, so it was completely invisible to the existing chunk block scanner.
  • After the block scan completes, a new handleOraxenFurniture() step iterates the entities in every island chunk, identifies Oraxen furniture base entities within the island's protected bounds, and counts each one using the same "oraxen:<id>" namespaced key already used for noteblock/stringblock mechanics.
  • Only the base entity of each furniture piece is counted (via OraxenHook.isBaseEntity()) to prevent double-counting multi-entity furniture.
  • When Oraxen is not present the new step is a no-op.

Configuration

Furniture values are configured in blockconfig.yml exactly like other Oraxen items:

blocks:
  oraxen:my_chair: 5
  oraxen:my_table: 3

Test plan

  • Place Oraxen furniture (furniture mechanic) on an island and run /is level — furniture should contribute to the level.
  • Verify noteblock / stringblock mechanics still work as before.
  • Verify that when Oraxen is not installed the calculation completes without errors.
  • Verify furniture outside the island's protected bounds is not counted.

tastybento and others added 3 commits February 19, 2026 22:58
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>
@sonarqubecloud
Copy link

@tastybento tastybento linked an issue Feb 20, 2026 that may be closed by this pull request
2 tasks
@tastybento tastybento merged commit ff0e8ee into develop Feb 20, 2026
3 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.

Oraxen Furniture Mechanic Support

1 participant