Iron's Spell : Magic Circle

A purely client-side visual addon for Iron's Spells 'n Spellbooks that renders stunning, school-specific arcane magic circles and glowing sigils during spellcasting.
Back to Files

irons_magic_circle-1.0.2.jar

File nameirons_magic_circle-1.0.2.jar
Uploader
JPanOuJPanOu
Uploaded
Nov 13, 2026
Downloads
7.9K
Size
106.4 KB
Mod Loaders
NeoForge
File ID
9589550
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:irons-spell-magic-circle-1786965:9589550"

Learn more about Curse Maven

What's new

Changelog

All notable changes to Iron's Spell Magic Circle will be documented in this file.


[1.0.2] - 2026-11-13

🎨 Fully Customizable Layer Textures

  • Native File Picker (📂 Select File...): Players no longer need to type or copy-paste complicated file paths! Clicking Select File... opens the native Windows file chooser dialog (TinyFileDialogs) to pick any .png image directly from their computer.
  • Dedicated Textures Folder (📁 Open Folder): Opens .minecraft/config/irons_magic_circle/textures/ in Windows Explorer with one click. Any PNG files dropped into this folder are automatically detected.
  • In-Game Quick Folder Cycler (🔄 File: ...): If PNG images exist in the textures folder, a convenient cycle button appears in the GUI allowing players to switch between textures with a single click.
  • DynamicTexture GPU Upload (CustomTextureManager): Chosen external PNG images are automatically loaded and registered into Minecraft's TextureManager on the GPU as DynamicTexture, rendering seamlessly in both the in-game GUI 3D preview and the world.
  • Custom Texture Overrides for Layers 1..5 (layer1Texture to layer5Texture): Players can also still use custom ResourceLocation paths or {school} placeholder if preferred, or leave empty for school defaults.

⚡ Per-Layer Size & Rotation Speed Controls

  • Independent Layer Scaling (layer1Scale to layer5Scale): Configure individual size scale multipliers for each of the 5 layers (range: 0.1x to 3.0x).
  • Independent Layer Speeds (layer1Speed to layer5Speed): Adjust rotation speed and direction independently per layer (positive = Clockwise, negative = Counter-Clockwise, range: -10.0 to +10.0).

🎬 Display Phase Dynamics Customization

  • Phase 1: Emergence / Cast-In (ขั้นตอนเริ่มปรากฏ / สไลด์เข้า):
    • emergenceStartScale: Starting scale factor when layers first materialize.
    • emergenceSpeedMultiplier: Rotation speed multiplier during emergence.
    • layerFadeInTicks: Duration in ticks for each layer to fade in and slide inward.
    • layerStaggerTicks: Delay in ticks between each stacked layer starting its appearance.
    • layerSlideDistance: Extra distance in blocks in front of the caster from which layers slide into place.
  • Phase 2: Active / Sustained Casting (ขั้นตอนร่ายปกติ / วงเวทย์ทำงาน):
    • activeScale: Overall scale multiplier during sustained casting.
    • activeSpeedMultiplier: Overall rotation speed multiplier during active casting.
    • pulseIntensity: Idle breathing pulse intensity (0.0 to 0.5).
  • Phase 3: Fade-Out / Dissolution (ขั้นตอนสลายตัวหลังร่ายจบ):
    • fadeOutEndScale: Target scale as the circle dissolves (>1.0 expands, <1.0 shrinks).
    • fadeOutSpeedMultiplier: Rotation speed multiplier during dissolution.
    • fadeOutTicks: Total duration in ticks for the fade-out effect.
    • fadeOutDriftDistance: Distance the circle drifts forward/outward as it fades.
  • Gun Muzzle Blastwave Expansion (gunBlastExpansion):
    • Configurable explosive blast expansion multiplier when firing spell bullets.

🖥️ Interactive In-Game Configuration GUI (MagicCircleConfigScreen)

  • Live 3D Rotating Preview: Real-time rendering inside the configuration GUI showcasing the magic circle spinning in 3D with live visual updates for every slider and texture input.
  • School & Layer Switcher: Test how textures and animations appear on any of the 9 magic schools and across 1 to 5 layers.
  • Cast Simulation (Simulate Cast): Dedicated button in the preview window to test the entire Emergence -> Active -> Fade-out animation lifecycle directly in GUI.
  • Mod Menu Integration: Registered IConfigScreenFactory so players can open the GUI directly via Mods -> Iron's Spell Magic Circle -> Config.
  • In-Game Keybind (MagicCircleKeyHandler): Players can press O (configurable in Controls -> Key Binds -> Iron's Spell Magic Circle) at any time to open the configuration screen without leaving gameplay.

🔮 Dynamic Addon School Detection & Fallback Tinting

  • Dynamic Registry Scanning (SchoolVisualHelper): Automatically queries SchoolRegistry.REGISTRY for any schools registered by third-party Iron's Spells addons at runtime (Void, Astral, Poison, Sound, etc.).
  • Native Addon Asset Lookup: Seamlessly loads custom layer textures if provided by the addon or resource pack under <addonNamespace>:textures/magic_circle/<schoolPath>/layer_<1..5>.png.
  • Automatic Dynamic Geometric Fallback Tinting: If an addon school lacks dedicated PNG textures, the mod automatically falls back to pristine geometric rings (evocation glyphs) and dynamically tints them with the addon's exact targeting color (schoolType.getTargetingColor()), preventing missing textures or black-and-purple squares.
  • Dynamic GUI School Switcher: The in-game configuration screen automatically lists all registered addon schools in its switcher button, enabling players to preview any addon school with real-time 3D rotation.

📐 Responsive Dynamic Layout & Text Overlap Resolution

  • Zero-Overlap Label Positioning: Redesigned label and button coordinate flow so that all section headers (e.g., Custom Layer Texture:, Create & Name Custom Preset:, Saved Custom Presets:) compute their vertical positions dynamically with strict padding clearances, completely eliminating text overlapping on top of buttons.
  • Adaptive Screen-Size Scaling:
    • Automatically calculates available vertical and horizontal space (availableContentH, controlsW, previewPanelW) based on current window size and Minecraft GUI Scale setting.
    • Dynamically adjusts button/slider row heights (14px, 16px, or 18px), margins, and gap sizes when the game window is shrunk or running on high GUI scales (Auto / 3 / 4), preventing widgets from overflowing or clipping past the screen borders.
  • Clamped 3D Preview Frame:
    • Live 3D magic circle preview frame now scales dynamically between top controls and the bottom simulate button.
    • Preview circle radius is strictly clamped within the frame boundaries (maxSafeRadius = 0.44f * min(boxW, boxH)), preventing large custom scales from spilling outside the frame outline.
  • Preset List Pagination: Added automatic page controls ([◀ Prev] [Page X/Y] [Next ▶]) when custom or standard preset lists exceed screen height, keeping all presets accessible without clipping through the bottom action bar.
  • Responsive Action Bar: Bottom action buttons (Reset, Save Preset, Cancel, Apply) now scale their widths dynamically with screen width, ensuring they never collide or wrap awkwardly on narrow resolutions.

💾 Preset Save / Load / Delete System (PresetManager)

  • Custom Preset Maker & Naming:
    • Dedicated Custom Presets interface where players can enter any custom name into the text box and click 💾 Save to create a reusable .json preset.
    • Added 💾 Save Preset... shortcut directly on the bottom action bar across ALL tabs (Layers, Phases, General) for instant 1-click access.
    • Custom presets list with ▶ Load (instant 3D preview and apply), ✎ Update (overwrite preset with current slider values), and ✕ (delete preset).
  • 5 Standard Built-In Presets Included:
    1. Standard Arcane: Balanced rotation speeds, default scales, organic staggered emergence.
    2. Turbine Overdrive: High-speed rapid alternating spinning layers (up to 4.2x) with snappy explosive emergence.
    3. Eldritch Ritual: Slow ceremonial rotation (0.3x - 0.6x) with grand scale, extended slide-in, and lingering dissolve drift.
    4. Compact Tactical: Scaled down (0.72x) and low opacity (0.30) designed for optimal visibility during PvP and fast combat.
    5. Supernova Burst: Massive expanding burst emergence (0.2x expanding to 1.35x) with intense shader bloom glow and heavy blastwave.
    • Includes a Customize button on each standard preset to load its parameters directly into the Custom Maker for easy tweaking and renaming.
  • File Management & Sharing:
    • Saved under .minecraft/config/irons_magic_circle/presets/<name>.json.
    • Added 📁 Open Presets Folder... button to open the directory directly in Windows Explorer for easy sharing and backup.

This mod has no additional files