-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced Implementations
While the vast majority of Enchantment Core's power lies in its declarative, data-driven JSON systems, true mod compatibility and complex behaviors often require diving back into Java.
This section covers the developer-facing Java registries and pipelines designed for deep customization, allowing you to seamlessly hook your own custom logic, visuals, and math into the core ecosystem.
While the library provides a massive suite of built-in effects, you will inevitably need to create your own unique interaction payloads. Learn the architectural best practices for registering custom EnchantmentEntityEffect components to Minecraft while guaranteeing they remain fully compatible with Enchantment Core's dynamic configuration wrappers.
If standard linear curves or polynomial math fall short, you can inject your own logic directly into the ecosystem. Learn how to create and register entirely new mathematical formulas or API-aware variables into the vanilla LevelBasedValue registry.
The SpellFieldAnchorEntity is invisible by default, and its standard visual configuration only supports 2D sprites. Learn how to utilize the AnchorRendererRegistry's delegation pipeline to bypass default rendering entirely, allowing you to attach complex 3D geometry (like spinning crystals) or bespoke shaders to your localized spell fields.
Vanilla Minecraft rigidly enforces how enchantment tooltips are displayed (Name + Roman Numeral Level). If you are building an RPG-styled progression system or a heavy magic overhaul, this default formatting often falls short. Learn how to use the TooltipFormatterRegistry to intercept, rewrite, and beautifully format enchantment tooltips to support custom lore and dynamic descriptions.
Want to learn more about the configuration engine powering Enchantment Core?
Check out Config Understood, the official wiki for Config Overhauled, for a deep dive into dynamic property generation and state synchronization!