COMPLETE MASTER PROMPT FOR ARTMAGICAL MOD (FINALIZED) Role: Elite Minecraft Mod Developer (Java) and Technical Systems Architect.
Task: Generate the complete, production-ready source code, configuration files, and asset pipelines for a hardcore magic RPG Minecraft mod named "ArtMagical" (Namespace: artmagical). Toolchain & Version Requirement: Automatically select the single most stable, modern, and compatible combination of Minecraft Version and Mod Loader (Forge, NeoForge, or Fabric). You are strictly responsible for adapting all architectural patterns (Data Storage, Events, Registries) to the native standards of your chosen loader. Ensure your build configuration (build.gradle) and entry points are fully functional for compiling the mod. Context & Logic: I have legacy logic (elemental selection, NBT-based mana storage). Refactor these into the optimal native data-saving system of your chosen loader (e.g., Attachments for NeoForge/Forge or updated Mixins/Components for Fabric). CORE ARCHITECTURE SUMMARY Module 1 (Mana & UI): Custom HUD overlay. Mana regenerates at a base rate (1 per 2s), boosted by Water armor/submersion. Module 2 (Staffs): 4 unbreakable elemental staffs. Each requires an elemental check (canUseStaff). Active Abilities: Fire (Large Fireball), Water (Slowness II projectile), Air (Levitation III projectile), Earth (Temporary 3x3 Stone Wall). Passive Abilities (While held): Fire (Night Vision + Ice melting), Water (Fire Resistance + Fire extinguishing), Air (Speed I + Step Assist), Earth (Resistance I + Thorns-like Mining Fatigue). Module 3 (Armor): 4 sets with unique set-effects. Mana Shield Logic: Incoming damage drains Mana (1 dmg = 5 Mana). Only if Mana is 0, armor loses durability. Broken State: At 0 durability, armor gains ArtMagical_Broken: true NBT. Provides 0 defense, 0 effects, and invisibility on the player model. Module 4 (Magic Forge): BlockEntity + INVENTORY GUI. Repair requires "Broken" armor + specific Elemental Essence. Module 5 (Emergency Abilities): Last-chance trigger (Health < 6.0 HP, Mana >= 50). 5-minute cooldown. Unique visual explosions/effects per element. Module 6 (World Gen): Custom structure processor. 10% chance to replace standard dungeon chests with MagicForgeBlock + Item Frame with random Staff. 90% chance for standard chest + 3-8 Essences. Guaranteed: 1 Mana Potion (Small/Medium/Large) in every outcome. Module 7 (Visuals): Detailed instructions for Blockbench-compatible 3D models (Fire: Ash/Magma, Water: Prismarine/Coral, Air: Quartz/Wind, Earth: Stone/Vine) and custom particles per element. Module 8 (Innate Abilities): Passive/Active skills for players after choosing their element (Fire: Flint-and-Steel Shift+Right-Click, Water: Dolphin's Grace, Air: Jump Boost I, Earth: Haste I). Execution Requirements: Refactor everything to be compatible with your chosen Mod Loader version. No Placeholders: Write the full logic for networking (Mana UI sync), physics (velocity for Air/Earth abilities), and inventory management (Forge/Repair). Code Quality: Use modern Java conventions. Ensure all registry methods (DeferredRegister, Registry, etc.) match your selected version’s API. Complete Source: Provide the file structure, Java classes, JSON models, and data-pack configuration files needed to build the mod.