Перейти к содержимому
Mineforgian

Attack Range Attribute

A small API that adds an attack range entity attribute.

405 загрузок1 подписчиковMITfabric

Обновлён 31 марта 2026 г. · опубликован 28 сентября 2025 г.

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.

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.1.0Релиз1.21.1fabric31 марта 2026 г..jar (36 КБ)
1.0.0Релиз1.21.1fabric28 сентября 2025 г..jar (33 КБ)

Ченджлог

1.1.0Релиз1.21.1 · 31 марта 2026 г.

1.1.0

Additions

  • add server config option for natural attack range
1.0.0Релиз1.21.1 · 28 сентября 2025 г.

1.0.0

First release!

Introduces the "attackrangeattribute:generic.attack_range" entity attribute.

Полная история изменений — на Modrinth.

Комментарии

Загружаем…