Mineuniverse
Log in Register
Mods

Attack Range Attribute

A small API that adds an attack range entity attribute.
by TheRedBrain
Download Claim this project
237 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Adventure and RPG API and Library Armor, Tools, and Weapons Mobs

Attack Range Attribute

A small API that adds the "attackrangeattribute:generic.attack_range" entity attribute. On its own this mod doesn't change gameplay.

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.

attack-range-attribute-1.0.0.jar
MC Fabric, Client, 1.21.1, Server
Release 2025-09-28 Get

More from TheRedBrain

Stamina Attributes
84,604
Equipment Sets
828
Combat Roll Extension
78,883
Health Regeneration Overhaul
78,821
Food Overhaul (Fabric)
73,569
Food Overhaul - Vanilla Foods
72,984

You Might Also Like

Fragmentum [NeoForge Edition]
The lightweight framework for the Obscuria Collection multi-loader mods
992,307
Iguana Lib
An iguana lib core for my mods.
992,164
Potentials
Library to allow mod developers to use cross platform capabilities
981,373
SDM Engine Core
The game engine in Minecraft!
980,484
Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527