介绍
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 支持哪些 Minecraft 版本?
Attack Range Attribute 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Attack Range Attribute 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
TheRedBrain 的其他作品
查看全部 →Shield API
制作带有自定义模型的盾牌,从未如此简单!
Bundle API
Bundle API 让模组作者可以轻松添加容量超过一组物品的收纳袋,袋中可存放由物品标签指定的物品。
Better Combat Extension
为“Better Combat”模组扩展更多功能。
Slot Customization API
一个供模组动态修改物品栏槽位的小型前置库。支持调整槽位位置、启用或禁用槽位,并为空槽位添加提示。
评论
登录后评论和评分