Skip to content

Add Nexo custom block support#474

Merged
tastybento merged 4 commits intodevelopfrom
copilot/add-nexo-block-support
Mar 18, 2026
Merged

Add Nexo custom block support#474
tastybento merged 4 commits intodevelopfrom
copilot/add-nexo-block-support

Conversation

Copy link
Contributor

Copilot AI commented Mar 18, 2026

  • Explore codebase and understand custom block architecture
  • Add Nexo API dependency to pom.xml (repository + dependency + version property)
  • Create NexoCustomBlock.java in oneblocks/customblock/ (similar to ItemsAdderCustomBlock)
  • Create NexoListener.java in listeners/ (similar to ItemsAdderListener, listens for NexoItemsLoadedEvent)
  • Update AOneBlock.java to register Nexo support when Nexo plugin is present
  • Fix build: exclude all transitive deps from Nexo dependency (libby-bukkit, triumph-gui unavailable)
  • Run code review and address feedback
  • Run CodeQL security check (no alerts)
  • Run dependency vulnerability check (no vulnerabilities)
Original prompt

This section details on the original issue you should resolve

<issue_title>Support for Nexo block and item</issue_title>
<issue_description>### Is your feature request related to a problem?

No

Describe the solution you'd like.

Need to be able to spawn Nexo blocks within the block during phases.

Describe alternatives you've considered.

There is no alternative

Agreements

  • I have searched for and ensured there isn't already an open issue regarding this.
  • I have ensured the feature I'm requesting isn't already in the latest supported BentoBox build or Addons.

Other

No response</issue_description>

Comments on the Issue (you are @copilot in this section)

@tastybento Nexo docs: https://docs.nexomc.com/ https://docs.nexomc.com/community-guides/api https://jd.nexomc.com/1.15/

The aim is to be able to specify Nexo blocks in the phases so that they can be generated by the magic block just like vanilla blocks. See https://jd.nexomc.com/1.8/com/nexomc/nexo/api/NexoBlocks.html
This would require the Nexo Plugin and the code must check if the Nexo plugin is there or not - it is NOT required, just optional.</comment_new>


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI and others added 2 commits March 18, 2026 23:10
- Add NexoCustomBlock class using NexoBlocks API for placing blocks
- Add NexoListener for NexoItemsLoadedEvent to reload phases on Nexo reload
- Register Nexo creators in AOneBlock.onLoad() when Nexo plugin is present
- Add Nexo Maven repository and dependency (provided scope) to pom.xml

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for Nexo block and item Add Nexo custom block support Mar 18, 2026
Copilot AI requested a review from tastybento March 18, 2026 23:13
@tastybento
Copy link
Member

@copilot There are dependency issues with the building. Fix them.

Nexo's transitive deps (libby-bukkit, triumph-gui) are not
available in configured Maven repositories. Since Nexo is a
provided-scope dependency only needed for API compilation,
exclude all its transitive dependencies.

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot There are dependency issues with the building. Fix them.

Fixed in 932ee9f. The Nexo dependency had transitive dependencies (net.byteflux:libby-bukkit:1.3.1 and dev.triumphteam:triumph-gui:3.2.0-SNAPSHOT) that weren't available in any of the configured Maven repositories. Since Nexo is provided scope and we only need its API classes at compile time, I excluded all transitive dependencies with a wildcard exclusion.

@tastybento tastybento marked this pull request as ready for review March 18, 2026 23:26
@sonarqubecloud
Copy link

@tastybento tastybento merged commit 52c712c into develop Mar 18, 2026
3 checks passed
@tastybento tastybento deleted the copilot/add-nexo-block-support branch March 18, 2026 23:29
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.

Support for Nexo block and item

2 participants