为实体和玩家添加一组新的属性。 这些属性旨在实现模组兼容性,并为使用它们的模组提供 API。
当前属性
WATER_SPEED(生物实体):控制玩家在水中的移动速度。LAVA_SPEED(生物实体):控制玩家在岩浆中的移动速度。LUNG_CAPACITY(生物实体):在水下/窒息状态下的额外空气量。JUMP_HEIGHT(生物实体):控制玩家的跳跃高度。DROPPED_EXPERIENCE(生物实体):改变挖掘方块和击杀怪物时掉落的经验值数量。MAGIC_PROTECTION(生物实体):减少受到的魔法伤害量。WIDTH(生物实体):控制玩家的宽度。HEIGHT(生物实体):控制玩家的高度。HITBOX_SCALE(生物实体):控制玩家的碰撞箱缩放比例。HITBOX_WIDTH(生物实体):控制玩家的碰撞箱宽度。HITBOX_HEIGHT(生物实体):控制玩家的碰撞箱高度。MODEL_SCALE(生物实体):控制玩家模型的缩放比例。MODEL_WIDTH(生物实体):控制玩家模型的宽度。MODEL_HEIGHT(生物实体):控制玩家模型的高度。MOB_DETECTION_RANGE(生物实体):控制玩家被敌对生物检测到的范围。WATER_VISIBILITY(仅限玩家):通过调整雾的距离来控制玩家在水中的能见度。LAVA_VISIBILITY(仅限玩家):通过调整雾的距离来控制玩家在岩浆中的能见度。CRITICAL_BONUS_DAMAGE(仅限玩家):控制造成暴击时增加的额外伤害。DIG_SPEED(仅限玩家):控制玩家的挖掘速度。BONUS_LOOT_COUNT_ROLLS(仅限玩家):在使用 Loot(战利品)和 Luck(幸运)等附魔时,玩家获得掉落物的掷骰次数。BONUS_RARE_LOOT_ROLLS(仅限玩家):基于概率的战利品表被掷骰的次数。COLLECTION_RANGE(仅限玩家):控制玩家能够收集(“触碰”)位于additionalentityattributes:affected_by_collection_range标签内的实体类型(如物品和经验球)的距离。
实体类型标签
additionalentityattributes:affected_by_collection_range:将实体类型标记为受收集范围属性影响(默认为物品和经验球)。
用法
玩家
你通常不需要自行安装此库,因为大多数使用该库的模组都会自带它。当然,如果你希望通过命令或其他方式使用上述属性,请随意操作。
@开发者
欢迎使用 JIJ(Just Include Jar)。 你可以从 Modrinth Maven 获取所有构建版本:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation include("maven.modrinth:AdditionalEntityAttributes:<version>")
}
Adds a list of new attributes for entities and players. These attributes allow mod compatibility and serve as an API for mods that make use of them.
Current Attributes
WATER_SPEED(living entities): Controls the speed of the player when in water.LAVA_SPEED(living entities): Controls the player's speed when in lava.LUNG_CAPACITY(living entities): Extra air when underwater / suffocatingJUMP_HEIGHT(living entities): Controls the jump height of the player.DROPPED_EXPERIENCE(living entities): Changes the amount of experience dropped from mining blocks and killing mobs.MAGIC_PROTECTION(living entities): Reduces the amount of magic damage taken.WIDTH(living entities): Controls the player's width.HEIGHT(living entities): Controls the player's height.HITBOX_SCALE(living entities): Controls the player's hitbox scale.HITBOX_WIDTH(living entities): Controls the player's hitbox width.HITBOX_HEIGHT(living entities): Controls the player's hitbox height.MODEL_SCALE(living entities): Controls the player's model scale.MODEL_WIDTH(living entities): Controls the player's model width.MODEL_HEIGHT(living entities): Controls the player's model height.MOB_DETECTION_RANGE(living entities): Controls the range that the player can be detected by hostile mobs.WATER_VISIBILITY(player only): Controls the player's visibility in water by adjusting the fog distance.LAVA_VISIBILITY(player only): Controls the player's visibility in lava by adjusting the fog distance.CRITICAL_BONUS_DAMAGE(player only): Controls the bonus damage dealt when critical hits are made.DIG_SPEED(player only): Controls the player's digging speedBONUS_LOOT_COUNT_ROLLS(player only): Controls the number of drops the player receives when using enchantments such as Loot and Luck.BONUS_RARE_LOOT_ROLLS(player only): The number of times the chance-based loot table is rolled.COLLECTION_RANGE(player only): Controls the distance where the player is able to collect ("touch") entity types in theadditionalentityattributes:affected_by_collection_rangetag (like items & experience orbs)
Entity Type Tags
additionalentityattributes:affected_by_collection_range: Marks an entity type as being affected by the collection range attribute (by default items & experience orbs).
Usage
Players
You will probably not need to install this library yourself, as most mods that use it will ship with it. If you want to use the above attributes via commands or anything else, feel free to do so, of course.
@Developers
Feel free to JIJ. You can fetch all builds from the Modrinth Maven:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation include("maven.modrinth:AdditionalEntityAttributes:<version>")
}
下载 Additional Entity Attributes
下载 Additional Entity Attributes
下载 Additional Entity Attributes
下载 Additional Entity Attributes
下载 Additional Entity Attributes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Additional Entity Attributes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Additional Entity Attributes
下载 Additional Entity Attributes
下载 Additional Entity Attributes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Additional Entity Attributes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧