HomeJavaModsBetter Spellcasting
Better Spellcasting

 

 

Please make sure that your Iron's Spellbooks version is up to date!

 

Better Spellcasting

Bind spells to your weapon attacks!

This mod allows you to attach spells from Iron's Spells 'n Spellbooks to individual weapon attacks in a combo chain. 

Features

How It Works

Define spells in your weapon's Better Combat JSON file:

diamond_sword.json

{
  "attributes": {
    "attack_range": 2.5,
    "category": "sword",
    "attacks": [
      {
        "hitbox": "HORIZONTAL_PLANE",
        "damage_multiplier": 1,
        "angle": 120,
        "upswing": 0.5,
        "animation": "bettercombat:one_handed_slash_horizontal_right",
        "swing_sound": {
          "id": "bettercombat:sword_slash"
        },
        "spell": "irons_spellbooks:firebolt",
        "level": 1,
        "target": "TARGET"
        "trigger": "on_attack"       }, { "hitbox": "HORIZONTAL_PLANE", "damage_multiplier": 1, "angle": 120, "upswing": 0.5, "animation": "bettercombat:one_handed_slash_horizontal_left", "swing_sound": { "id": "bettercombat:sword_slash" }, "spell": "irons_spellbooks:blood_slash", "level": 4, "target": "TARGET"
        "trigger": "on_attack"       }, { "hitbox": "FORWARD_BOX", "damage_multiplier": 1, "angle": 0, "upswing": 0.5, "animation": "bettercombat:one_handed_stab", "swing_sound": { "id": "bettercombat:sword_slash", "pitch": 1.2 }, "spell": "irons_spellbooks:heal", "level": 1, "target": "SELF"
      "trigger": "on_hit"       } ] } }

In this example, a diamond sword would cast Firebolt on the first attack, Blood Slash on the second, and Heal (on yourself) on the third!

Spell Properties

Limitations

🚀 Need a server? Use code Kayn at checkout for 25% off your first month with BisectHosting.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Better Spellcasting is a free Minecraft Java mod. Compatible with Minecraft 1.20.1, 1.21.1. Downloaded 183,280 times (via CurseForge). Download it and open it directly in the game.

Explore more