Well-Earned XP
Well-Earned XP 引入了新的获取经验值的方式,让玩家能够通过升级来附魔和修复物品。
建筑师、矿工、农民、探险家以及混合型玩家都可以通过自己原本花费时间进行的活动来获得经验值,而无需感到被推向了经验农场或怪物刷怪塔。
✨ 新的经验值获取方式
- 挖矿
- 建造
- 农耕
- 合成新物品
- 开箱拾取战利品
- 破坏工具
- 完成袭击任务
? 数据包
Well-Earned XP 完全由数据驱动,并使用游戏内统计信息来检测可奖励的玩家参与度。你可以使用简单
的数据包轻松添加或删除对不同统计数据的支援。
了解更多
每个 JSON 文件定义了:
- 监听哪个统计数据。
- 该统计数据应多久授予一次经验值。
- 生成的经验值数量。
文件路径用于选择统计数据目标:
data/<namespace>/wellearnedxp/engagement_type/<category>/<namespace>/<path>.json
类别决定了如何匹配统计数据:
stat_type 针对某类统计数据下的所有统计项,例如 minecraft:crafted。
custom_stat 针对某个特定的自定义统计项,例如 minecraft:fish_caught。
统计类型示例
以下示例为每合成一个物品授予 5 - 10 点经验值:
// data/mycoolexample/wellearnedxp/engagement_type/stat_type/minecraft/crafted.json
{
"experience": {
"min": 5,
"max": 10
}
}
自定义统计示例
以下示例为每捕获 10 条鱼授予 5 点经验值:
// data/mycoolexample/wellearnedxp/engagement_type/custom_stat/minecraft/fish_caught.json
{
"experience": {
"min": 5,
"max": 5
},
"interval": 10
}
覆盖参与度类型
如果你想更改任何默认值,例如某项统计数据给予多少经验值,你可以通过使用相同路径的文件来覆盖参与度类型。你甚至可以通过将文件内容设置为空对象 {} 来禁用内置的参与度类型。
已禁用的参与度类型示例
默认情况下,Well-Earned XP 会因挖矿行为向玩家奖励经验值。以下示例禁用了该行为:
// data/wellearnedxp/wellearnedxp/engagement_type/stat_type/minecraft/mined.json
{}
? 权限
✅ 你可以在整合包中使用此模组。
✅ 你可以创建附加组件、扩展程序或配套模组。
✅ 你可以提交拉取请求以贡献代码。
❌ 未经明确许可,不得在任何地方发布此模组或其修改版本。
Well-Earned XP
Well-Earned XP introduces new ways to earn experience, allowing players to earn levels for enchanting and repairing.
Builders, miners, farmers, explorers, and mixed-style players can all earn XP by doing things they already spend time
doing, without feeling
pushed toward XP farms or mob grinders.
✨ New Ways to Earn XP
- Mining
- Building
- Farming
- Crafting New Items
- Looting Chests
- Breaking Tools
- Completing Raids
? Data Packs
Well-Earned XP is completely data-driven and uses in-game statistics to detect rewardable player engagement. You can
easily add or remove support for different stats using a simple data
pack.
Learn More
Each JSON file defines:
- Which stat to listen for.
- How often that stat should grant XP.
- How much XP to spawn.
The file path selects the stat target:
data/<namespace>/wellearnedxp/engagement_type/<category>/<namespace>/<path>.json
The category decides how the stat is matched:
stat_type targets every stat under a stat type, for example, minecraft:crafted.
custom_stat targets one specific custom stat, for example, minecraft:fish_caught.
Stat Type Example
The following example grants 5 - 10 XP for every item crafted:
// data/mycoolexample/wellearnedxp/engagement_type/stat_type/minecraft/crafted.json
{
"experience": {
"min": 5,
"max": 10
}
}
Custom Stat Example
The following example grants 5 XP for every 10 fish caught:
// data/mycoolexample/wellearnedxp/engagement_type/custom_stat/minecraft/fish_caught.json
{
"experience": {
"min": 5,
"max": 5
},
"interval": 10
}
Overriding Engagement Types
If you want to change any of the default values, like how much experience a stat gives, you can overwrite engagement types using a file of the same path. You can even disable built-in engagement types by setting the file's contents to an empty object, {}.
Disabled Engagement Type Example
By default, Well-Earned XP rewards players experience for mining. The following example disables that behavior:
// data/wellearnedxp/wellearnedxp/engagement_type/stat_type/minecraft/mined.json
{}
? Permissions
✅ You may use this mod in modpacks.
✅ You may create add-ons, extensions, or companion mods.
✅ You may submit pull requests to contribute to the code.
❌ You may not publish this mod or modified versions anywhere without explicit permission.
评论 0
登录后参与评分
还没有评论,来抢沙发吧