promotional bannermobile promotional banner

Avoid Dance

Adds Evasion, Parry and Deflect, automatic player defenses that can cancel physical hits; armor toughness becomes Deflect chance, and pack makers add the other stats and Parry Weapons.
A successful Parry plays a short guard pose with the parrying hand. Other players see it too.

A successful Parry plays a short guard pose with the parrying hand. Other players see it too.

Description

Avoid Dance gives players three automatic defenses against physical attacks: Evasion, Parry and Deflect. When a defense works, the whole hit is cancelled: no damage, no knockback, no potion effect and no armor wear. Pack makers decide where the stats come from: items, foods, statuses, set bonuses, qualities or scripts.

Out of the box only Deflect works: for players, armor toughness no longer lowers damage and gives a chance to Deflect hits instead. Evasion starts working once items, foods, statuses, scripts or other mods give Evasion stats. Parry starts working once the config lists Parry Weapons.

AI usage disclaimer: This mod was developed with AI-agent assistance using this agent workflow. The project owner reviewed the work during development.

The three defenses

A raised shield still blocks first. A hit is checked only when the shield did not stop any of it. Then Evasion is tried, then Parry, then Deflect. The first one that works cancels the hit.

  • Evasion: dodges a melee hit or a projectile from the front (a 180 degree arc). An evaded arrow flies on and can hit something behind you. The chance comes from Evasion Rating (25 rating is 20%, 100 rating is 50%) plus Evasion Chance (flat percentage points), up to 95%.
  • Parry: turns aside a melee hit from the front (a 120 degree arc) with a Parry Weapon in your hand. It has no roll: when the conditions are met, it always works. Your attack must be fully charged; any swing, even a miss, blocks Parry until it recharges. Parrying does not reset the charge. After a Parry, Parry is on cooldown for 5 seconds, shared by both hands. Parry Recovery Speed shortens it: +25% makes it 4 seconds.
  • Deflect: stops a melee hit or a projectile from any direction. A deflected arrow is destroyed and hits nothing else. The chance comes from your armor toughness (8 toughness, a full diamond set, is 20%) plus Deflect Chance points, up to 95%.

Scripts and other mods can also grant Guaranteed Evasion: for a set time, you dodge every hit that Evasion could dodge.

Only physical hits are checked: melee attacks, arrows and other physical projectiles such as llama spit and shulker bullets. Fire, magic, explosions, fireballs, wither skulls and guardian lasers go through as usual. Only players get these defenses; mobs do not.

Armor toughness

Armor points still lower the damage of hits that get through. A full diamond set now takes the damage of 20 armor with no toughness. Mobs keep the usual toughness. This change is always on; with deflect_cap_percent set to 0, toughness gives players nothing.

What you see and hear

  • Each defense has its own sound, and nearby players hear it: a swish for Evasion, a weapon clash for Parry, a hard impact for Deflect.
  • A Parry plays a short guard pose with the parrying hand, in first and third person. Other players see it too.
  • An icon near the hotbar shows while Parry is on cooldown. A client config option hides it.
  • Item tooltips show bonuses in blue, grouped by slot, for example +10 Evasion Rating under "When in offhand:". A Parry Weapon's tooltip says which hand can parry, for example "Can parry in either hand".
  • /avoidance stats shows your chances, Guaranteed Evasion, the Parry cooldown left, and whether each hand is ready to parry. Operators can check other players' stats.

Configuration

config/avoiddance.cfg sets the chance formulas, the caps, the arcs, the Parry cooldown and the rules below. The lists in its rules section start empty, so no item gives a bonus and nothing can parry until you add entries:

S:item_bonuses <
    spartanweaponry:dagger_iron>offhand=evasion_rating:10
    minecraft:diamond_chestplate>chest=deflect_chance:5
 >
S:parry_weapons <
    minecraft:iron_sword
    spartanweaponry:parrying_dagger_iron=offhand
 >
S:attack_overrides <
    arrow/minecraft:arrow=evasion:false
 >
  • Item bonuses count only while the item is in the named slot: mainhand, offhand, head, chest, legs or feet.
  • Parry Weapons can parry in either hand, or only in the main hand or the offhand.
  • Attack overrides turn a defense on or off for one kind of attack. The example above stops arrows from being evaded; they can still be deflected.

/avoidance reload (operators) reloads these three lists without a restart. Other settings need a restart. The pack maker guide explains every setting, the formulas and the stat names.

Installation

Install Avoid Dance on the server and on every client. It needs MixinBooter; Cleanroom already includes it. The server sends its item lists to players. If installed, Just Another Stamina System must be 1.3.0 or newer, Just Another Food System 1.2.0 or newer, and CraftTweaker 4.1.20 or newer.

Integrations

Each integration turns on by itself when its mod is installed. Avoid Dance's four stats are player attributes (avoiddance.evasionRating, avoiddance.evasionChance, avoiddance.deflectChance, avoiddance.parryRecoverySpeed), so mods that add attributes can raise them. Use adding modifiers (operation 0, or add).

Just Another Stamina System

  • While you are exhausted (stamina at 0 or below), you cannot Evade or Parry, and Guaranteed Evasion does not help. Deflect still works. The config can turn this off.
  • Just Another Stamina System's shield rules come first: a partial block lets only the rest of the hit through, with no defense check. If it does not let the shield block, the hit is checked as usual.

RLCombat

  • Parry waits for RLCombat's offhand attack timer too. If you just swung your offhand, you cannot Parry until it is ready again.
  • If RLCombat does not attack with your offhand item, a Parry with that item waits for the main-hand timer.

Just Another Food System

For pack makers: foods in config/jafs/foods.json can give Avoid Dance stats while they are active, with the properties avoiddance:evasion_rating, avoiddance:evasion_chance, avoiddance:deflect_chance and avoiddance:parry_recovery_speed (operation flat).

[
  { "id": "mypack_nimble_stew", "match": [ { "item": "minecraft:rabbit_stew" } ], "fullDuration": 600,
    "modifiers": [ { "property": "avoiddance:evasion_rating", "operation": "flat", "amount": 25 } ] }
]

Statusworks

For pack makers: statuses can add Avoid Dance stats while they last.

import mods.statusworks.Statuses;

Statuses.define("mypack:quickstep")
    .limit(1)
    .expiration("shared")
    .defaultDuration(200)
    .contributeAttribute("avoiddance.evasionRating", "add", "fixed", 25.0)
    .register();

Setworks

For pack makers: set bonuses can add Avoid Dance stats.

#loader setworks
import mods.setworks.Setworks;

Setworks.set("mypack:scout_gear")
    .name("Scout Gear")
    .piece("helm", "head", <minecraft:leather_helmet>)
    .piece("boots", "feet", <minecraft:leather_boots>);

Setworks.bonus("mypack:scout_bonus", "mypack:scout_gear", 2, "+10 Evasion Rating")
    .attribute("avoiddance.evasionRating", 10, "add");

Quality Tools

For pack makers: qualities can add Avoid Dance stats. Use the attribute names above with operation 0, in a quality file in config/qualitytools/Quailities/ (Quality Tools spells the folder this way).

{
  "slot": "chest",
  "whitelist": [ { "slot": "chest" } ],
  "blacklist": [],
  "qualities": [
    { "name": "quality.nimble.name", "color": "aqua", "weight": 100,
      "attributes": [ { "name": "avoiddance.evasionRating", "amount": 10, "operation": 0 } ] }
  ]
}

CraftTweaker

For pack makers: scripts can give and remove stat bonuses, grant Guaranteed Evasion, name attacks for the attack overrides, and react to each defense. Script bonuses end at death; set them again on respawn.

import mods.avoiddance.AvoidDance;
import mods.avoiddance.ParryEvent;

events.onAvoidDanceParry(function(event as ParryEvent) {
    AvoidDance.grantGuaranteedEvasion(event.defender, "mypack:riposte", 40);
});

This example makes you dodge every hit Evasion could dodge in the 2 seconds after a Parry. The pack maker guide lists every call and event field.

Works alongside

  • Spartan Weaponry and Spartan Shields: their weapons can be listed like any other item; their shields block first, like vanilla shields.
  • ShieldBreak: its shield rules run first; Avoid Dance checks only hits that no shield stopped.
  • Universal Tweaks Armor Curve: armor points follow its formula; toughness still only gives Deflect chance.

For mod developers

Other mods can give stat bonuses, grant Guaranteed Evasion, name their attacks, and listen for Evasion, Parry and Deflect events. See the API guide.

Source

GitHub

Avoid Dance Team

profile avatar
  • 1
    Followers
  • 57
    Projects
  • 7.1K
    Downloads

More from MahghuuulsView all

  • Threatworks project image

    Threatworks

    Configurable threat targeting for supported hostile mobs, with gear bonuses and taunts through mod integrations.

    • 33
    • November 24, 2026
  • No Vanilla XP project image

    No Vanilla XP

    Disables vanilla player experience, XP orbs, and the XP bar while leaving vanilla XP costs untouched for modpacks.

    • 7
    • November 24, 2026
  • Only So Many Enchants project image

    Only So Many Enchants

    Enforces a single configurable limit on how many distinct enchantments any item or enchanted book can carry across loot, trading, enchanting, anvils, commands, mobs, and existing saves.

    • 7
    • November 23, 2026
  • AgentTestToolkit project image

    AgentTestToolkit

    Lets an AI assistant test your mod: it sets up the world, takes small player actions, and logs what the game did.

    • 169
    • November 22, 2026
  • Threatworks project image

    Threatworks

    Configurable threat targeting for supported hostile mobs, with gear bonuses and taunts through mod integrations.

    • 33
    • November 24, 2026
  • No Vanilla XP project image

    No Vanilla XP

    Disables vanilla player experience, XP orbs, and the XP bar while leaving vanilla XP costs untouched for modpacks.

    • 7
    • November 24, 2026
  • Only So Many Enchants project image

    Only So Many Enchants

    Enforces a single configurable limit on how many distinct enchantments any item or enchanted book can carry across loot, trading, enchanting, anvils, commands, mobs, and existing saves.

    • 7
    • November 23, 2026
  • AgentTestToolkit project image

    AgentTestToolkit

    Lets an AI assistant test your mod: it sets up the world, takes small player actions, and logs what the game did.

    • 169
    • November 22, 2026