Folks & Favors!
Folks & Favors 通过赋予特定生物独特的个性、请求和奖励,添加了一个舒适且轻量级的任务系统。村民和其他友好生物不再只是静态的 NPC,而是现在可以向你寻求帮助——并以有用的物品作为回报来感谢你。本模组旨在提供原版友好的体验、沉浸感以及完全可配置性,使其既适合休闲世界,也适合大型整合包。默认情况下,该模组会增强 Nitwit(傻农民)村民,将它们变成拥有独特个性和物品请求的魅力任务发布者。其他生物可以通过简单的 JSON 配置文件启用!
配置
Folks & Favors 有 4 个不同的配置文件,以下是每个文件的作用及使用方法:
folksfavors_quest_givers.json
此文件定义了哪些生物有资格成为任务发布者,以及它们在生成时获得个性的概率。(如果生物没有个性,它将不会提供任何任务!!!)
示例代码:
{
"quest_givers": {
"minecraft:villager": {
"chance": 1.0,
"forced_personality": null
}
}
}
chance 表示生物生成时成为任务发布者的概率百分比。(值为 1.0 表示总是,而 0.25 表示 25%)
forced_personality 可以设置为任何已定义的个性名称。该实体将永远只拥有这个个性。(如果不需要此参数,您可以删除它或将其设置为 null)
folksfavors_personalities.json
每个个性定义:
- 它们偏好的任务类型(基于标签的系统)
- 其任务的稀有度
- 在提供新任务之前等待的时间长度
示例代码:
"farmer": {
"preferred_tags": ["plants", "food", "animals"],
"rarity_bias": {
"common": 70,
"uncommon": 20,
"rare": 8,
"mythic": 2,
"legendary": 0
},
"reset_time": 18000
}
_preferred_tags_ 决定该个性更有可能选择哪些任务。
_rarity_bias_ 控制该个性中每种任务稀有度的出现频率。
_reset_time_ 是前一个任务被满足后,它们可以提供新任务之前的时间长度(以刻为单位)。
你可以添加任意数量的个性!
folksfavors_quests.json
每个任务条目定义了请求的物品、数量、稀有度以及它所属的个性标签。
示例代码:
{
"id": "gather_wheat",
"text": "Could you bring me some wheat?",
"item": "minecraft:wheat",
"amount": 16,
"rarity": "common",
"tags": ["plants", "food"]
}
_id_ 是分配给每个任务的唯一任务 ID,用于调用并应用于生物。
_text_ 是授予任务后显示在生物头顶上的任务标题。(某些符号会自动转义以符合 JSON 格式要求)
_item_ 是任务物品的注册表名称。(例如 minecraft:dirt、minecraft:sugar_cane 等。这适用于你安装的任何模组)
_amount_ 是完成任务所需的物品堆叠数量。任务仅检查玩家手中是否有该物品堆叠。(为了防止“卡住的任务”,请将堆叠数量设置为不超过 64,除非该物品支持更高的堆叠大小)
_rarity_ 是当任务分配给具有个性的生物时被选中的加权值。这里有 5 种硬编码的稀有度:“common”、“uncommon”、“rare”、“mythic” 和 “legendary”。每种稀有度的权重在个性中定义。(你可以添加更多个性,尽管模组不会为你的任务文本字符串分配颜色代码)
_tags_ 定义任务可以属于哪个个性。你可以在每个生物上使用任意数量的标签。(为了减少庞大的标签列表,可以使用 “any” 来调用所有标签)
folksfavors_loot.json
完成任务后,玩家将从对应任务稀有度的战利品表中抽取奖励。
示例代码:
{
"loot": [
{
"rarity": "common",
"item": "minecraft:bread",
"min": 1,
"max": 3,
"weight": 40
},
{
"rarity": "uncommon",
"item": "minecraft:emerald",
"min": 1,
"max": 2,
"weight": 20
},
{
"rarity": "rare",
"item": "minecraft:golden_apple",
"min": 1,
"max": 1,
"weight": 5
}
]
}
_rarity_ 定义哪些任务稀有度可以抽取此战利品表。
_item_ 是奖励的物品堆叠 ID。
_min_ 是奖励时可以授予的最小物品数量。
_max_ 是奖励时可以授予的最大物品数量。
_weight_ 是该奖励相对于表中其他奖励的出现几率。(这些数字是权重,不是百分比。它们不需要加起来等于 100,也不需要归一化,它们是相互比较使用的)
感谢游玩!欢迎随时评论你认为对本项目有益的建议。
Folks & Favors!
Folks & Favors adds a cozy, lightweight quest system by giving certain mobs their own personalities, requests, and rewards. Instead of static NPCs, villagers and other friendly mobs can now ask you for help — and thank you with useful items in return. This mod is designed to feel vanilla‑friendly, immersive, and fully configurable, making it perfect for both casual worlds and large modpacks. By default the mod enhances Nitwit Villagers, turning them into charming quest-givers with unique personalities and item requests. Other mobs can be enabled through the simple JSON config!
Configuration
There are 4 different config files for Folks & Favors, below is what each of them do and how to use them:
folksfavors_quest_givers.json
This file defines which mobs are allowed to become quest givers and how likely they are to roll a personality when they spawn. (If a mob has no personality it will recieve no quest!!!)
Example code:
{
"quest_givers": {
"minecraft:villager": {
"chance": 1.0,
"forced_personality": null
}
}
}
chance represents the % chance a mob becomes a quest giver when it spawns. (A value of 1.0 means always, while 0.25 means 25%)
forced_personality can be set to any personality name that is defined. This entity will only ever have this personality now. (If this parameter is not needed, you may delete it or set it to null)
folksfavors_personalities.json
Each personality defines:
- What type of quests they prefer (tag based system)
- How rare their quests are
- How long they wait nefore offering a new quest
Example code:
"farmer": {
"preferred_tags": ["plants", "food", "animals"],
"rarity_bias": {
"common": 70,
"uncommon": 20,
"rare": 8,
"mythic": 2,
"legendary": 0
},
"reset_time": 18000
}
preferred_tags determines which quests this personality is more likely to pick.
rarity_bias controls how often each quest rarity in this personality appears.
reset_time is how long (in ticks) before they can offer a new quest after the previous has been satisfied.
You can add as many personalities as you want!
folksfavors_quests.json
Each quest entry defines the item requested, the amount, the rarity, and the personality tags it belongs to.
Example code:
{
"id": "gather_wheat",
"text": "Could you bring me some wheat?",
"item": "minecraft:wheat",
"amount": 16,
"rarity": "common",
"tags": ["plants", "food"]
}
id is the unique quest ID given to each quest to call and apply to a mob.
text is the quest title that displays above the mobs head once granted. (Some symbols are auto escaped to respect JSON's formatting)
item is the item registry name of the quest item. (Ex. minecraft:dirt, minecraft:sugar_cane, etc. This works with any mod you have installed)
amount is the item stack amount needed to complete the quest. The quest will only check if the item stack is in the hand of the player. (To prevent "stuck quests" please only set the stack amount to no more than 64, unless the item supports higher stack sizes)
rarity is the weighted value that a quest has to be selected when assigned to a mob with a personality. There are 5 hard coded rarities: "common", "uncommon", "rare", "mythic", and "legendary". The weight for each rarity is defined in the personality. (You can add more personalities, though the mod will not assign a color code to the text string of your quest)
tags define what personality the quest can be a part of. You may use as many tags as you like on each mob. (To reduce massive tag lists, use "any" to call all tags)
folksfavors_loot.json
On completion of a quest, the player will be rewarded with a roll from the loot table of the corresponding quest rarity.
Example code:
{
"loot": [
{
"rarity": "common",
"item": "minecraft:bread",
"min": 1,
"max": 3,
"weight": 40
},
{
"rarity": "uncommon",
"item": "minecraft:emerald",
"min": 1,
"max": 2,
"weight": 20
},
{
"rarity": "rare",
"item": "minecraft:golden_apple",
"min": 1,
"max": 1,
"weight": 5
}
]
}
rarity defines what quest rarities can roll this table.
item is the item stack ID of the reward.
min is the minimum amount of item that can be granted on reward.
max is the maximum amount of item that can be granted on reward.
weight is the chance this reward has in relation to the other rewards in the table. (These numbers are weights, not percentages. They do not need to add up to 100, they do not need to be normalized, they are used relative to each other)
Thank you for playing! Feel free to comment any suggestions you may feel are benficial to add to this project.
评论 0
登录后参与评分
还没有评论,来抢沙发吧