Skip to content

API Reference

JohnSmith474 edited this page Sep 21, 2026 · 3 revisions

Welcome to the API Reference for Enchantment Core. This section provides comprehensive, technical documentation for the data-driven systems, custom codecs, and strict JSON schemas that power the library.

Whether you are writing raw JSON files by hand or utilizing the Data Generation (Datagen) framework, this reference acts as your definitive guide to the exact parameters, defaults, and functional behaviors of every component in the Enchantment Core ecosystem.

The API Reference is divided into three primary categories:

Learn how EnchantmentCore intercepts Minecraft's standard enchantment codec. This section details the wrapper schemas required to substitute static vanilla properties (such as max_level, weight, and anvil_cost) with dynamic Config Overhauled properties, allowing for live, in-game configuration.

Explore the extensive library of custom mathematical formulas and configuration-aware codecs injected into the vanilla LevelBasedValue registry. This section covers everything from simple polynomial and diminishing_returns curves to complex config_aware delegates that shift their logic based on active runtime states.

The core dictionary of operational payloads. This section catalogs the data-driven properties for:

  • Server-Side Entity Effects: Advanced interactions such as targeted explosions, multi-jumps, and damage streaks.
  • Item-Based Components: Mechanics governing tool/weapon behaviors like projectile homing, fluid walking, and auto-smelting.
  • The Spell Field API: The highly modular, spatial evaluation engine used to construct complex Area of Effect (AoE) topologies and volumetric spell logic natively in JSON.

Clone this wiki locally