# Soul Codex
A dark magic mod for Forge 1.20.1. Record the souls of any creature, summon them to fight for you, or transform into them to inherit their abilities.
Soul Codex introduces a fully fleshed-out Soul Magic system. Record mobs, manage your Soul Energy, and use them for summoning, transformation, or sacrifice.
## ️ Disclaimer
This mod is purely fictional and created for gaming and entertainment purposes only. No real-world practices are involved.
## 🩸 Core Gameplay
* Soul Recording: When you defeat a creature, its soul is automatically recorded in your Codex. You can also sneak + right-click other players to record their "Skin" (used only for transformation, not summoning).
* Soul Energy: You gain Soul Energy by taking damage or dealing damage. Energy is consumed when summoning or transforming.
* Summoning: Summon recorded mobs to fight alongside you! They will follow their owner, and they won't attack other players or their summons (unless provoked via command).
* Transformation: Transform into any recorded creature. You will inherit its Max Health, Attack, Defense, and Movement Speed, along with special abilities like Flight, Wall Climbing, Water Breathing, Fire Immunity, and Slow Falling.
* PvP Support: Includes commands like /soulcodex summonpvp to toggle PvP interactions.
## The Sacrifice System
* Sacrifice Mobs: Sacrifice a recorded soul to permanently gain +1 Max Health.
* Sacrifice Yourself: You can choose to sacrifice your own Max Health to obtain the "Tear of Atonement".
* Tear of Atonement: Right-click to randomly record a new uncollected mob OR remove a "Sacrificed" status from your Codex.
* Drop Chance: The Tear of Atonement can also drop by slaying recorded mobs, with a drop rate formula of 100 * (1 - e^(-x/25))%.
## 🧮 Summoning Cost Formula (Hardcore)
The energy cost scales dynamically with the selected duration (in seconds):
* <= 120 seconds: ceil(e^(duration / 20) * (MaxHealth / (duration / 2)))
* > 120 seconds: ceil(120s_cost * duration / 120)
## 🛠️ How to Obtain & UI
* First Death: You will automatically obtain the Soul Codex upon your first death. If dropped or lost, its contents are saved in the player's "Soul Vault" and can be reforged.
* Creative Mode: Available in the creative inventory.
* Commands: /soulcodex give, /soulcodex energy <amount>, /soulcodex form, /soulcodex model.
* UI Features: Custom GUI with collection logs, transformation countdown, and a summon recall button.