GrzybcioRynek

Nexo

Optional Nexo hook — ID saved on listing and transaction, rebuild only when stored stack is AIR.

Compatible with: GrzybcioRynek 1.0.3Minecraft 26.2Web 0.1.0

Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.

Nexo is softdepend. No plugin = market works on vanilla ItemStack. Detection: NexoHook via reflection on com.nexomc.nexo.api.NexoItems. Success: log Wykryto Nexo! Włączono wsparcie dla niestandardowych przedmiotów. API error: warning, hook disabled.

There is no nexo.enabled key in config.yml.

API used

Nexo methodPurpose
NexoItems.idFromItem(ItemStack)ID on listing
NexoItems.itemFromId(String) + build()Recreate when stack is AIR

Empty / null ID = treated as no Nexo on that item.

Save

On sellItem and on purchase the ID lands on MarketListing.nexoId and MarketTransaction.nexoId (alongside the full ItemStack). /market admin inspect shows field Nexo:.

Recreation

CustomItemsHook.recreateItem:

  1. Clone stored stack (enchants, PDC, name stay).
  2. If type is AIR and there is nexoId and hook is on → getNexoItem(id).
  3. If Nexo does not build the item, try Oraxen (when ID present).
  4. Otherwise return the cloned stack (even AIR).

Purchase with AIR after failed rebuild: buy.not-available.

What is missing

  • ItemsAdder
  • Separate “Nexo items” GUI
  • Forcing rebuild on every load (that would break enchants on the stored stack)