Attack Range Attribute
by TheRedBrain
Attack Range Attribute is a small Fabric library that registers an entity attribute for how far a creature can reach with attacks and right-click interactions.
What it does
The mod adds the attackrange:generic entity attribute, which other mods can read and change. The attribute controls both ranged attack reach and right-click interactions with entities, such as trading with villagers. Because the value only changes when another mod sets it, vanilla gameplay behaves the same as before.
Mods that want different weapons to reach different distances can use the attribute to set those values. Better Combat Extension and Spell Engine Extension are examples of mods that may choose to rely on it as an optional component. Developers who cast a LivingEntity to the AttackRangeUsingEntity interface get access to the methods that read and write the value. Installation needs Fabric API and Fzzy Config, and the mod is open source under the MIT License, with its source code and issue tracker public.
Key features
Reach attribute
An entity attribute controls how far attacks and right-click interactions can reach, for any living entity.
Interaction range control
One value governs both ranged attacks and entity interactions, so a single setting covers both behaviors.
Accessor interface
A LivingEntity can be cast to AttackRangeUsingEntity to read and modify the relevant methods directly.
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 2
Use cases
Weapon-specific reach
Weapons from other mods can be given different attack ranges, so a spear and a dagger reach different distances.
Unchanged vanilla play
Because the attribute does not change normal gameplay by default, worlds without a reach-changing mod play as before.
Who it’s for: Mod developers who want a shared reach attribute for weapons and entity interactions, and server owners who run combat mods that depend on it.
How it compares
SkillsMod is a Fabric mod for 1.21.5 – 1.21.8, open source under the GNU General Public License v3.0 or later, and runs on client and server, so it covers a different version range. CombatEdit is a Fabric mod for 1.19 – 26.3 released under the Apache License 2.0, and its environment is server required with the client optional. Attack Range Attribute only targets 1.21.1, and it is open source under the MIT License.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Attack Range Attribute | Fabric | 1.21.1 | Client and server | 2026-03-31 |
| SkillsMod | Fabric | 1.21.5 – 1.21.8 | Client and server | 2025-09-25 |
| CombatEdit | Fabric | 1.19 – 26.3 | Server required, client optional | 2026-09-27 |
Questions
Does Attack Range Attribute need Fabric API?
Does the server need Attack Range Attribute?
Which Minecraft versions does the mod support?
In the catalog
Attack Range Attribute is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 32,366 mods support Minecraft 1.21.1.
More from TheRedBrain
Similar mods
What the author says
A small API that adds the "attackrangeattribute:generic.attack_range" entity attribute. Other mods like Better Combat Extension and Spell Engine Extension can optionally use this mod.
Official listing
- Modrinth page
- modrinth.com/mod/attack-range-attribute
- Owner
- TheRedBrain
- Published
- 2025-09-28
- Updated on Modrinth
- 2026-03-31
- Facts verified
- 2026-10-15
