Skip to content

Add CraftEngine custom block support#496

Open
Copilot wants to merge 4 commits intodevelopfrom
copilot/add-support-for-craftengine
Open

Add CraftEngine custom block support#496
Copilot wants to merge 4 commits intodevelopfrom
copilot/add-support-for-craftengine

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 9, 2026

CraftEngine is a custom block/item plugin similar to ItemsAdder and Nexo. The existing OneBlockCustomBlockCreator registry pattern already supports dynamic registration, so no architectural changes were needed.

Changes

  • CraftEngineCustomBlockOneBlockCustomBlock impl using CraftEngineBlocks.byId() for validation and CraftEngineBlocks.place() for placement
  • CraftEngineListener — Reloads phase data on CraftEngineReloadEvent (same pattern as NexoListener/ItemsAdderListener)
  • AOneBlock.onLoad() — Registers short-form and map-based creators when CraftEngine is present
  • pom.xmlcraft-engine-core:0.0.67 and craft-engine-bukkit:0.0.67 (provided, transitive deps excluded) + repo.momirealms.net/releases/ repository

Phase YAML usage

# Map form
- type: craftengine
  id: default:palm_log
  probability: 10

# Short form
- default:palm_log
  probability: 10

Copilot AI linked an issue Apr 9, 2026 that may be closed by this pull request
2 tasks
Copilot AI and others added 2 commits April 9, 2026 12:44
Add CraftEngineCustomBlock, CraftEngineListener, and register them
in AOneBlock.onLoad() following the same pattern as Nexo and
ItemsAdder integrations. Add craft-engine-bukkit dependency to pom.xml.

Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/98ee3d0c-05a3-457b-8bce-42c0463fde3a

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/98ee3d0c-05a3-457b-8bce-42c0463fde3a

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for CraftEngine blocks and items Add CraftEngine custom block support Apr 9, 2026
Copilot AI requested a review from tastybento April 9, 2026 12:48
@tastybento tastybento marked this pull request as ready for review April 11, 2026 01:10
@tastybento
Copy link
Copy Markdown
Member

@copilot There are errors in the compilation. Try and fix them.

The craft-engine-bukkit API references types from craft-engine-core
(Key, CustomBlock), so both modules are needed on the compile classpath.

Agent-Logs-Url: https://github.com/BentoBoxWorld/AOneBlock/sessions/02b4b996-4f28-499b-accc-6899a91de52a

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

Copilot AI commented Apr 11, 2026

@copilot There are errors in the compilation. Try and fix them.

Fixed in 1a48e8a. The issue was that the wildcard exclusion on craft-engine-bukkit also excluded its transitive dependency craft-engine-core, which contains Key and CustomBlock types used by the bukkit API. Added craft-engine-core as an explicit provided dependency (with its own wildcard exclusion) so both modules are on the compile classpath.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • repo.momirealms.net
    • Triggering command: /usr/lib/jvm/temurin-21-jdk-amd64/bin/java /usr/lib/jvm/temurin-21-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/AOneBlock/AOneBlock org.codehaus.plexus.classworlds.launcher.Launcher compile (dns block)
    • Triggering command: /usr/lib/jvm/temurin-21-jdk-amd64/bin/java /usr/lib/jvm/temurin-21-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/AOneBlock/AOneBlock org.codehaus.plexus.classworlds.launcher.Launcher compile -q (dns block)
    • Triggering command: /usr/lib/jvm/temurin-21-jdk-amd64/bin/java /usr/lib/jvm/temurin-21-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/AOneBlock/AOneBlock org.codehaus.plexus.classworlds.launcher.Launcher dependency:resolve -q (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

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.

CraftEngine support

2 participants