Skip to content

Attack Range Attribute

A small API that adds an attack range entity attribute.

Fabric
Loaders
Fabric
Downloads on Modrinth
596
Followers on Modrinth
1
versions
2
Updated
March 31, 2026Mar 31
Published
in 2025
This is a library — other mods need it, and it adds nothing to the game by itself

At a glance

A library: other mods need it
Runs on Fabric
For Minecraft 1.21.1
Needed in the game and on the server
Latest version — 1.1.0 from March 31, 2026
Requires Fabric API
Where it's needed
In gamerequiredOn serverrequired

Needed both in the game and on the server

Game versions1.21.1

Attack Range Attribute

A small API that adds the "attackrangeattribute:generic.attack_range" entity attribute.

On its own this mod does NOT change gameplay. It does NOT change the attack range when used on its own.

Other mods like Better Combat Extension and Spell Engine Extension can optionally use this mod.

Vanilla Minecraft has the "entity_interaction_range" attribute. Why is an "attack_range" attribute necessary?

The entity_interaction_range attribute controls both the range of attacks and the range of right-click interactions (e.g. trading with villagers). This works fine in vanilla, since the entity_interaction_range doesn't change in normal gameplay.

However, in scenarios where different weapons are designed to have different attack ranges, the right-click interactions with entities get inconsistent and in extreme cases, when the attack range is 0, impossible.

API

Casting a "LivingEntity" to the "AttackRangeUsingEntity" interface gives access to all relevant methods.

FAQ

How to install Attack Range Attribute?

Install Fabric for your Minecraft version, download Attack Range Attribute for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does Attack Range Attribute support?

Attack Range Attribute has builds for Minecraft 1.21.1.

Is Attack Range Attribute needed on the server?

Needed in the game and on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More