常规
本模组通过 NBT 数据为食物及相关材料(例如作物)增添品质特性(即不添加新物品)。
1.21 版本的文档目前位于 此处
品质可以:
- 提升营养值和饱和度
- 改善正面效果,并削弱(或完全移除)食用食物后获得的负面效果
- 影响可应用品质的合成物品的结果(
minecraft:generic.luck属性也会增加几率)
动物
可以使用它们通常食用的优质食物来喂养动物,从而提升其潜力。
这种潜力会增加获得高品质战利品的几率(同时也影响挤奶或母鸡产蛋的结果)。
幼崽将获得(使用默认值时)父母潜力的约 60% 到 90%。
你可以使用以下命令为自己提供一个优质物品:/give @s farmersdelight:roast_chicken_block{quality_food:{quality:2}}
quality是一个介于0(NONE) 和3(DIAMOND) 之间的值- 设置为
NONE没有意义,因为它不会产生影响,并且会使该物品无法与非优质物品堆叠
你也可以使用以下命令:
/quality_food give/quality_food apply/quality_food remove
配置
每种品质都有相应的配置——除了常规设置外,你还可以指定哪些物品应获得哪些效果。
- 示例:
effect_list = ["minecraft:apple;minecraft:regeneration;0.5;120;3;0.45"]minecraft:apple是此效果适用的物品(也可以是标签,例如#minecraft:cat_food)minecraft:regeneration是效果名称0.5是食物物品获得此效果的几率(1表示 100%)120是持续时间(以刻为单位)(20刻等于 1 秒)3是效果放大器(0对应效果等级 1,即不显示等级)0.45是食用该物品时获得此效果的概率(1表示 100%)
带有已应用效果的物品标签如下所示:
{
quality_food: {
effects: [
{
"forge:id": "minecraft:regeneration",
chance: 0.45d,
Ambient: 0b,
CurativeItems: [
{
id: "minecraft:milk_bucket",
Count: 1b
}
],
ShowIcon: 1b,
ShowParticles: 1b,
Duration: 120,
Id: 10,
Amplifier: 3b
}
],
quality: 1
}
}
我不建议手动创建此类物品——使用 quality_food 命令即可应用配置好的效果。
有一个耕地配置,允许你根据作物种植的耕地方块定义一个加成(也可以为负数,即 0.5):
- 示例:
farmland_config = ["3;#minecraft:crops;farmersdelight:rich_soil_farmland;1.25"]3是索引(配置按从低到高的顺序进行测试——第一个匹配的配置将被应用)(必须为正数)#minecraft:crops是作物方块(可以是标签或单个方块)farmersdelight:rich_soil_farmland是耕地方块(可以是标签或单个方块)1.25是要应用的乘数(必须为正数——低于1的值将降低几率)
非食物物品可以通过将它们添加到 quality_food:material_whitelist 物品标签中来使其适用于品质系统。
只有处于块标签 quality_food:quality_blocks 内的方块才会支持(即保留)品质。
- 如果一个方块适用于品质,那么该方块的物品形式也适用。
对于合成(工作台),有以下配置:
retain_quality_recipes:结果将保留原料的品质,例如:- 如果所有物品均为
diamond品质,则结果为diamond - 如果三个物品为
gold品质,两个为diamond品质,则结果为gold - 如果两个物品为
iron品质,其余无品质,则结果也无品质
- 如果所有物品均为
no_quality_recipes:条目将不进行品质判定(在物品可以反复拆解和合成的情况下很有用)storage_recipe_blacklist:条目将从自动存储方块检测中排除
用于工作台的优质原料提供的额外品质加成是可配置的(crafting_bonus)。
烹饪优质物品会在熔炉 / 烹饪锅 / ... 中存储一个品质加成。
- 品质越高,每个煮熟物品存储的加成越高。
- 一旦存储了足够的加成,粒子效果就会开始显示。
- 更高的加成会产生更多的粒子。
- 这可以通过客户端配置禁用。
- 当你取出结果时,存储的加成将被消耗,并赋予更高质量结果的几率。
出于兼容性考虑,某些方块(及其物品形态)的支持范围比实际需求更广。
如果你发现某些物品具有不合常理的“品质”,可以使用物品标签 quality_food:blacklist 将其列入黑名单。
兼容性
已经添加了大量模组特定的兼容内容。
通常问题与以下方面有关:
- 合成
- 方块(如作物)以特定方式掉落物品
- 以特殊方式生长的作物(例如,高度为两个方块)
这些情况会自动处理:
- 食物物品(其他需要添加到上述提到的标签中)
- 大多数压缩配方(存储方块)
杂项
品质图标的版权归功于
General
This mod adds quality to food and certain food-related material (e.g. crops) through NBT data (meaning no new items)
1.21 documentation is currently located here
Quality can:
- Increase nutrition and saturation
- Improve positive effects and diminish (or outright remove) negative effects gained from eating food
- Impact the result of crafted (quality applicable) items (the
minecraft:generic.luckattribute increases the chance as well)
Animals
Can be fed with quality food (that they would normally eat), improving their potential
Said potential will increase the chances for quality loot (and also the outcome of milking cows or chickens laying egggs)
Baby animals will gain (using default values) ~ 60% to 90% of the parents' potential
You can give yourself a quality item like this: /give @s farmersdelight:roast_chicken_block{quality_food:{quality:2}}
qualityis a value between0(NONE) and3(DIAMOND)- Setting
NONEdoes not make sense since it will not affect anything and just makes the item unstackable with non-quality items
You can also use the following commands
/quality_food give/quality_food apply/quality_food remove
Configuration
There is a configuration per quality - aside from some normal things you can also specify which item should gain which effects
- Example:
effect_list = ["minecraft:apple;minecraft:regeneration;0.5;120;3;0.45"]minecraft:appleis the item this effect should apply to (can also be a tag, e.g.#minecraft:cat_food)minecraft:regenerationis the effect0.5is the chance for a food item to gain this effect (1means 100%)120is the duration in ticks (20ticks means 1 second)3is the amplifier (0results in an effect level of 1 (i.e. no level shown))0.45is the probability to gain this effect when eating the item (1means 100%)
The tag of an item with effects applied to it looks like this:
{
quality_food: {
effects: [
{
"forge:id": "minecraft:regeneration",
chance: 0.45d,
Ambient: 0b,
CurativeItems: [
{
id: "minecraft:milk_bucket",
Count: 1b
}
],
ShowIcon: 1b,
ShowParticles: 1b,
Duration: 120,
Id: 10,
Amplifier: 3b
}
],
quality: 1
}
}
I don't recommend manually creating such items - the quality_food commands will apply the configured effects
There is a farmland configuration which allows you to define a bonus (can also be negative, i.e. 0.5) based on the farm block the crop is planted on
- Example:
farmland_config = ["3;#minecraft:crops;farmersdelight:rich_soil_farmland;1.25"]3is the index (configurations are tested with the lowest one first - the first matching one will be applied) (needs to be positive)#minecraft:cropsis the crop block (can be a tag or a single block)farmersdelight:rich_soil_farmlandis the farmland block (can be a tag or a single block)1.25is the multiplier to be applied (needs to be positive - values below1will reduce the chance)
Non-food items can be made applicable to quality by adding them to the quality_food:material_whitelist item tag
Only blocks within the block tag quality_food:quality_blocks will support (i.e. retain) quality
- If a block is applicable to quality the item for said block will be too
For crafting (crafting table) there are these configs:
retain_quality_recipes: The result will retain the quality of the ingredients, examples:- If all items are
diamondquality the result will bediamond - If three items are
goldquality and two arediamondthe result will begold - If two items are
ironquality and the rest have none then the result will also have none
- If all items are
no_quality_recipes: Entries will not roll for quality (useful in case items can be crated back and forth)storage_recipe_blacklist: Entries will be excluded from the automatic storage block detection
The bonus quality a quality ingredient provides is configurable for the crafting table (crafting_bonus)
Cooking quality items will store a quality bonus within the furnace / cooking pot / ...
- Higher quality will store a higher bonus per cooked item
- Once enough bonus is stored particles will start to show
- A higher bonus results in more particles
- This can be disabled through the client config
- Once you take out the result the stored bonus will be used up and grant a higher chance to a quality result
For compatibility’s sake certain blocks (and their item variant) are supported in a broader way than needed
If you find some items having quality where it doesn't make much sense you can blacklist them using the item tag quality_food:blacklist
Compatibility
There are a lot of mod-specific compatibilities already added
Usually the problems are related to:
- Crafting
- Blocks (crops e.g.) drop items in a specific way
- Crops that grow in a special way (e.g., two blocks high)
These things are handled automatically
- Food items (others need to be added to the tags mentioned above)
- Most recipes for compacting (storage-blocks)
Misc
Credits for the quality icons go to
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
下载 Quality Food
来自
- 进一步完善自动提取以正确重掷品质
- 修复了手动重掷品质以获得更好结果的方法
-> 移植到 26.1.2
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
让你能够在世界中的任何位置定位结构。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一堆修复
模组
如果游戏能告知重要的刷新点,会怎样?
模组
一款适用于你选择的加载器的 Minecraft VR 模组!
模组
为盔甲架添加图形用户界面,允许你配置其姿势和其他属性
评论 0
登录后参与评分
还没有评论,来抢沙发吧