HexecuteIf
by N08I40K
HexecuteIf is a Hex Casting addon that adds spells for conditional casting, block placement, inventory slot checks and item transfers.
What it does
Hex Casting, the magic system this addon extends, supplies the base spells. HexecuteIf adds several more, all of which run inside the same casting framework. Charon's Caution works as a protective check: it stops any spell cast after it when a chosen condition is met, which guards against harmful or unwanted casts made under particular circumstances. Its companion, Charon's Gambit, is the spell that performs that stopping.
The addon also covers inventory and world actions. Place Block checks whether a block can be placed at a given position, taking liquids into account. Occupied Slots returns the list of inventory slots that hold items, and Number Items Slot reports how many items a chosen slot contains. Throw Item removes a specified number of items from a slot, while Transfer Item relocates items between inventories, but only into a target slot that is currently empty.
The mod is required on the client and on the server, so both sides need it. It is released under the MIT License and is open source, with a source repository and an issue tracker. Builds are available for Fabric, Forge and Quilt on the Minecraft 1.19.2 and 1.20.1 releases. Installation needs Hex Casting, Architectury API, Cloth Config API, Kotlin for Forge and Fabric Language Kotlin, plus Fabric API on Fabric. Mod Menu is optional.
Key features
Conditional spell stopping
Charon's Caution halts any following spells when a chosen condition is met, acting as a safeguard in spell chains.
Block placement check
Place Block tests whether a block can be placed at a specified position, including checks for nearby liquids.
Slot inspection
Occupied Slots lists the inventory slots holding items, and Number Items Slot reports the count in a given slot.
Item removal and transfer
Throw Item removes a set number of items from a slot, and Transfer Item moves them to an empty target slot.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 5
Optional 1
How it compares
MoreIotas is open source under the MIT License and supports Fabric and Forge, with the same client and server environment as HexecuteIf. Hexthingy is a Fabric-only mod for 1.20.1 under the GNU Lesser General Public License v3.0 only, so it does not cover Forge or Quilt. Hex Keys is open source under the MIT License for Fabric and Forge.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| HexecuteIf | Fabric, Forge and Quilt | 1.19.2 – 1.20.1 | Client and server | 2025-11-16 |
| MoreIotas | Fabric and Forge | 1.19.2 – 1.20.1 | Client and server | 2026-06-16 |
| Hexthingy | Fabric | 1.20.1 | Client and server | 2024-12-15 |
| Hex Keys | Fabric and Forge | 1.19.2 – 1.20.1 | Client and server | 2026-04-14 |
Questions
Does HexecuteIf need Hex Casting?
Which loaders does HexecuteIf support?
Does Forge need Kotlin?
In the catalog
HexecuteIf is one of 7,216 Magic mods on ModsFinder, and one of 3,630 Magic mods for Fabric. 34,764 mods support Minecraft 1.20.1.
Similar mods
What the author says
HexecuteIf is an addon for HexCasting that provides several spells. Charon's Caution: Similar to Charon's Gambit, this spell stops subsequent spells from being cast if a certain condition is met. It acts as a protective measure, preventing potentially dangerous or unwanted spells from being performed under certain…
Official listing
- Modrinth page
- modrinth.com/mod/hexecuteif
- Owner
- N08I40K
- Published
- 2024-05-25
- Updated on Modrinth
- 2025-11-16
- Facts verified
- 2026-10-15
