← Назад к ресурсам

Mobbility [Addon: Combat Roll]

Gives mobs player dodging abilities for Combat Roll - dodge attacks with roll animations just like players.

Modrinth mobs

Описание

![Showcase](https://cdn.modrinth.com/data/Es8xro21/images/1a30601fe94fe70523d1a10b644df036b7512bd9.gif) ## Features - **Player-Like Dodging**: Mobs dodge attacks with roll animations, just like players - **Automatic Ability**: All mobs gain dodge capability on spawn - **Combat Roll Integration**: Uses Combat Roll mod mechanics - **Configurable**: Dodge chance, ranged/melee dodge, spell cast interruption ## How It Works Event-based dodge detection system (no AI goals): **Fabric Events:** - `ServerLivingEntityEvents.ALLOW_DAMAGE` - Detects melee and projectile hits before damage applies - `UseItemCallback.EVENT` - Detects ranged weapon usage (bow, crossbow, trident) - `MobbilityEvents.SPELL_CAST_START` - Detects spell casts targeting the mob **Forge Events:** - `LivingAttackEvent` - Detects melee and projectile hits before damage applies - `ArrowLooseEvent` - Detects player bow shots with charge calculation - `LivingEntityUseItemEvent.Finish` - Detects crossbow/trident usage - `MobbilityEvents.SPELL_CAST_START` - Detects spell casts targeting the mob **Dodge Process:** 1. Event fires when mob is targeted by attack/spell 2. System checks: dodge chance, cooldown, humanoid model, casting state 3. If conditions met: triggers Combat Roll animation, cancels damage/spell cast 4. Dodge strategy adapts to mob health (aggressive/balanced/defensive) ## Configuration Fully customizable via `config/mobbility/combat_roll.toml`: Dodge Settings ```toml [combatRoll] enabled = true mobRollChance = 0.3 dodgeRangedAttacks = true dodgeMeleeAttacks = true cancelCastOnDodge = true allowDodgeDuringChanneling = false ``` ## Requirements - **Minecraft**: 1.20.1 - **Fabric Loader**: 0.15.11+ (Fabric version) OR **Forge**: 1.20.1-47.4.10+ (Forge version) - **Mobbility [Core]**: Required core mod (matching platform) - **Combat Roll**: The combat mod this addon integrates with - **Fzzy Config**: For configuration