本模组为游戏添加了 21 个新属性。这些属性可供其他模组用作 API,或由玩家用于自定义特定数值。
特性
属性
VILLAGER_DISCOUNT
- 村民交易物品的价格折扣/加价幅度(百分比)
- 默认值:0
MAX_HUNGER
- 玩家可拥有的最大饥饿值
- 默认值:20
FOOD_NUTRITION_MULTIPLIER
- 食物应恢复的饥饿值倍数
- 默认值:1
FOOD_SATURATION_MULTIPLIER
- 食物应提供的饱和度倍数
- 默认值:1
EATING_SPEED
- 玩家的进食速度
- 默认值:1
DRINKING_SPEED
- 玩家的饮水速度
- 默认值:1
STATUS_EFFECT_DURATION
- 药水或信标效果的持续时间倍数
- 默认值:1
LIFESTEAL
- 伤害活体实体时吸取的生命值比例
- 默认值:0
HUNGERSTEAL
- 伤害活体实体时吸取的饥饿值比例
- 默认值:0
DODGE_CHANCE
- 实体闪避任何伤害的概率(1 = 无敌)
- 默认值:0
SPRINTING_FOOD
- 疾跑所需的最低饥饿值
- 默认值:6
CROSSBOW_PULL_TIME_MULTIPLIER
- 拉弓弩以发射所需的时间倍数
- 默认值:1
FISHING_DURATION_MULTIPLIER
- 等待鱼上钩的时间倍数
- 默认值:1
ADDITIONAL_FISHING_LUCK
- 钓鱼时获得的额外幸运值(叠加于“海洋之佑”),用于钓取宝藏(100 = 必定)
- 默认值:0
SPRINTING_SPEED
- 玩家疾跑时的速度
- 默认值:0.13
CLIMBING_SPEED
- 活体实体的攀爬速度
- 默认值:0.2
CREATIVE_FLYING_SPEED
- 玩家在创造模式下的飞行速度
- 默认值:0.05
MOUNT_SPEED_MULTIPLIER
- 骑乘实体的移动速度倍数
- 默认值:1
MAX_JUMPS
- 玩家可进行的跳跃次数
- 默认值:1
SLIPPERINESS
- 冰面的滑度
- 默认值:1
NAME_TAG_VISIBILITY_RANGE
- 玩家能看到他人名字牌的距离
- 默认值:64
有新属性的想法吗?请在我的 Discord 或 GitHub 上向我提出建议。
用法
对于用户
你可以使用 /attribute 命令配置所有这些数值。
以下是一个示例:
/attribute @p extra-entity-attributes:status_effect_duration base set 2
这将使最近玩家的药水和信标状态效果持续时间翻倍
对于开发者
你有权在自己的模组中自由使用此模组。欢迎将其嵌入你的模组中。
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation include("maven.modrinth:extra-entity-attributes:<version>")
}
致谢
灵感来源
如果还不够明显的话,本模组在很大程度上受到了 Additional Entity Attributes 的启发。因此,本模组与 Additional Entity Attributes 完全兼容,因为它仅添加了 Additional Entity Attributes 中不存在的新属性。
代码
我复用了 Artifacts 的部分代码(具体位置请参见源代码)。
支持
如果你有问题、遇到问题、发现错误或有任何建议,可以加入我的 Discord 服务器:
This mod adds 21 new attributes to the game. These attributes can either be used by other mods to serve as an API or used by the player to customize specific values.
Features
Attributes
VILLAGER_DISCOUNT
- How much cheaper / expensive an item from a villager should be (percent-wise)
- Default: 0
MAX_HUNGER
- The max. amount of hunger a player can have
- Default: 20
FOOD_NUTRITION_MULTIPLIER
- How much hunger food should restore
- Default: 1
FOOD_SATURATION_MULTIPLIER
- How much saturation food should give
- Default: 1
EATING_SPEED
- How fast a player can eat
- Default: 1
DRINKING_SPEED
- How fast a player can drink
- Default: 1
STATUS_EFFECT_DURATION
- How long an potion or beacon effect should last
- Default: 1
LIFESTEAL
- How much health (percentage-wise) is stolen on damaging a living entity
- Default: 0
HUNGERSTEAL
- How much hunger (percentage-wise) is stolen on damaging a living entity
- Default: 0
DODGE_CHANCE
- How high of a chance an entity has to dodge ANY damage (1 = invincible)
- Default: 0
SPRINTING_FOOD
- How much hunger is needed in order to sprint
- Default: 6
CROSSBOW_PULL_TIME_MULTIPLIER
- How long you need to pull your crossbow in order to shoot
- Default: 1
FISHING_DURATION_MULTIPLIER
- How long you need to wait until a fish appears
- Default: 1
ADDITIONAL_FISHING_LUCK
- How much additional luck (adding to Luck of the Sea) you will have in order to fish up a treasure (100 = always)
- Default: 0
SPRINTING_SPEED
- How fast a player should be whilst sprinting
- Default: 0.13
CLIMBING_SPEED
- How fast a living entity should climb
- Default: 0.2
CREATIVE_FLYING_SPEED
- How fast a player should fly in creative mode
- Default: 0.05
MOUNT_SPEED_MULTIPLIER
- How fast a ridden entity should go
- Default: 1
MAX_JUMPS
- How many jumps a player can perform
- Default: 1
SLIPPERINESS
- How slippery ice should be
- Default: 1
NAME_TAG_VISIBILITY_RANGE
- How far a player can see nametags of others
- Default: 64
Got any ideas for new attributes? Suggest them to me on my discord or on github.
Usage
For Users
You can configure all these values with /attribute.
Heres an example:
/attribute @p extra-entity-attributes:status_effect_duration base set 2
This doubles the duration of all potion and beacon status effects for the nearest player
For Developers
You are allowed to use this mod freely in your own mod. Feel free to embed it into your mod.
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation include("maven.modrinth:extra-entity-attributes:<version>")
}
Credits
Inspiration
If it wasn't obvious enough this mod is heavily inspired by Additional Entity Attributes. Therefore this mod is also fully compatible with Additional Entity Attributes as it only adds attributes which are not in Additional Entity Attributes.
Code
I reused some code of Artifacts (see Source Code to know where).
Support
If you have questions, encounter problems, find bugs or have suggestions you can join my discord server:
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
下载 Extra Entity Attributes
已修复
- AppleSkin 完全失效(尽管
MAX_HUNGER值为 20 以上的内容将不会被渲染) - 降低
MAX_HUNGER属性后,饱和值未正确重置
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧