?简介
本模组新增了一种战利品表条件(什么是谓词?),允许你根据实体属性来配置战利品。
建议与 RpgDifficulty、L2 Hostility 以及其他实现了怪物属性缩放的模组配合使用。
⚙️配置
初始配置文件如下:
(config/attribute_loot_condition.json)
{
"attributeWeights": [
{
"attribute": "minecraft:generic.max_health",
"weight": 1.0
},
{
"attribute": "minecraft:generic.armor",
"weight": 1.0
},
{
"attribute": "minecraft:generic.armor_toughness",
"weight": 1.0
},
{
"attribute": "minecraft:generic.attack_damage",
"weight": 1.0
}
]
}
该数组中的条目决定了各种属性的权重。
你可以配置额外的属性,不仅限于这四种。
?用法示例
JSON 格式文件中显然不应包含注释,此处的注释仅用于解释说明。
数据包:
data/minecraft/loot_tables/entities/zombie.json
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:apple"
}
],
"conditions": [
{
"condition": "attribute_loot_condition:attribute_weighted_sum",
"entity": "this",
"min": 20,
"max": 0 // 不大于 0 表示取消此项检查
}
]
}
]
}
加载此数据包后,当玩家击杀僵尸时,游戏会对僵尸的最大生命值、护甲、护甲韧性和攻击伤害进行加权求和。如果该总和不低于 20,则满足条件。
✉️反馈
如有任何错误或建议,请在 Issue 页面提供反馈。
?Introduction
This mod has added a new type of loot table condition (What is that?) so that you can configure the loot based on entity attributes.
Recommended to use with RpgDifficulty, L2 Hostility and other mods that implement monster attribute scaling.
⚙️Configuration
The initial configuration file looks like:
(config/attribute_loot_condition.json)
{
"attributeWeights": [
{
"attribute": "minecraft:generic.max_health",
"weight": 1.0
},
{
"attribute": "minecraft:generic.armor",
"weight": 1.0
},
{
"attribute": "minecraft:generic.armor_toughness",
"weight": 1.0
},
{
"attribute": "minecraft:generic.attack_damage",
"weight": 1.0
}
]
}
The entries in this array determine the weights of various attributes.
You can configure addtional attributes, not just limited to these four.
?Example Usage
It is obvious that there should be no comments in the JSON format file, and this case is only for the sake of explanation.
Datapack:
data/minecraft/loot_tables/entities/zombie.json
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:apple"
}
],
"conditions": [
{
"condition": "attribute_loot_condition:attribute_weighted_sum",
"entity": "this",
"min": 20,
"max": 0 // Not greater than 0 means canceling this check
}
]
}
]
}
After loading this datapack, when a player kills a zombie, the game will weight and sum the maximum health, armor, armor toughness, and attack damage of the zombie. If this sum is not less than 20, then the condition is met.
✉️Feedback
If there are any bugs or suggestions, please provide feedback to the issue page.
下载 Attribute Loot Condition
下载 Attribute Loot Condition
下载 Attribute Loot Condition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Attribute Loot Condition
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Attribute Loot Condition
下载 Attribute Loot Condition
下载 Attribute Loot Condition
下载 Attribute Loot Condition
- 更新至 1.21-1.21.1
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
让你能够在世界中的任何位置定位结构。
模组
为你的终界增添新生物群系、神秘仪式和全新生物
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
更多生物群系,更多生物,更多工具,为炽热的维度
模组
一堆修复
评论 0
登录后参与评分
还没有评论,来抢沙发吧