Farmer's Attributes
本模组旨在通过添加与农业和烹饪相关的多项玩家属性,来增强 Minecraft 中的 farming(种植)体验。

用法
可以在配置文件中为所有玩家开启农田保护以及右键收获/重新种植功能。
其他功能最好与其他利用这些属性的模组配合使用,因为本模组本身不提供增加玩家属性的方法。
你也可以使用命令来设置你的属性值。
例如:
/attribute @s farmers_attributes:crouch_bonemeal_chance base set 0.5
内容
属性
anti_farmland_trampling
如果为 True(非零),则防止玩家踩踏农田。
easy_harvest
如果为 True(非零),允许通过右键点击来收获作物,并将掉落物直接放入玩家的物品栏。重新种植时会使用掉落物中的种子或玩家物品栏中的种子。
也适用于海带和甘蔗(以及类似的模组植物),保留最底部的方块。此功能会同时收获相连的方块,仅向上搜索。
crouch_bonemeal_chance
当玩家快速蹲下或按住蹲下键时,骨粉效果应用于附近作物和树苗的概率(0.0-1.0)。
green_thumb
玩家种植的作物在达到最大生长状态时,变为大型变体的概率(0.0-1.0);如果不存在大型变体,则在收获时给予双倍掉落。
大型变体仅在自然生长时出现(不能使用骨粉)
zesty_culinary
如果值为 1 或以上,制作食物时将获得持续 30 秒的 Appetite(食欲)效果。
使用营火进行烹饪将为半径内的所有玩家提供此效果。
该属性还会在玩家放置可放置的食物方块(例如蛋糕)时赋予范围效果(AoE)。
效果等级等于属性值的整数部分,小数部分用于确定效果持续时间。
公式如下:
属性值 = (效果等级) + (durationSeconds/300-0.1)
例如:属性值 1.0 将给予持续 30 秒的 Appetite I,3.23 给予持续 99 秒的 III,2.9 给予持续 5 分钟的 II。
基本上,它提供基础 30 秒 + 每 0.1 属性值额外增加 30 秒。
short_order_cooking
以玩家为中心的小范围内,倍增烟熏炉和营火的烹饪速度。
例如:0 表示完全停止进度,2 表示使烹饪速度加倍。
多名玩家一起烹饪时,他们的数值会相乘。
farmers_weapon
使用农夫武器(例如 Sharp Carrot)时,玩家获得的额外伤害等于属性值。
farmers_armor
对于每件农夫护甲(例如 Carved Pumpkin),玩家获得的额外护甲值等于属性值。
生物效果 (MobEffects)
Appetite
等级 1 :允许玩家在饱食度已满时进食
等级 2+:当玩家获得任何其他正向食物效果时,根据 (等级-1) 添加原始持续时间的 x0.5(可配置)倍
物品与方块
- Large BeetRoot
- Large Carrot
- Sharp Carrot
配置
除非另有说明,以下配置项位于 farmers_attributes-server.toml 中。
anti_farmland_trampling
可以为所有玩家启用,忽略其属性值。
easy_harvest
可以为所有玩家启用,忽略其属性值。
可以屏蔽特定作物。
可以禁用海带/甘蔗类植物的整株收获。
crouch_bonemeal_chance
范围和冷却时间(按住蹲下键时的刻数)是可配置的。
受影响的方块由标签 #farmers_attributes:crouch_bonemeal_whitelist 定义。
green_thumb
可以屏蔽受影响的作物及其可能的大型变体。
非大型作物的掉落倍增率是可配置的。
zesty_culinary
每个等级提供的 Appetite 效果的持续时间是可配置的。
不被视为“烹饪”结果(不给予效果)的物品由标签定义:#farmers_attributes:source_foods
放置时给予效果的方块由标签定义:#farmers_attributes:delicious_smelling_blocks
short_order_cooking
应用速度修改器的范围是可配置的。
farmers_weapon
农夫武器由标签定义:#farmers_attributes:farmers_weapon
farmers_armor
农夫护甲由标签定义:#farmers_attributes:farmers_armor
Appetite Effect
延长食物效果持续时间的倍增率是可配置的。
集成
Farmer's Delight
zesty culyinary
适用于煎锅和烹饪锅。
煎锅会在类似营火的半径内施加 Appetite 效果。
默认情况下,Farmer's Delight 的食物方块(例如 stuffed pumpkin)包含在 delicious_smelling_blocks 标签中。
short_order_cooking
适用于烹饪锅和煎锅。
小于 0.001 的值不适用于手持煎锅烹饪,将被视为 0.001。
farmers_weapon
默认情况下,煎锅和刀具包含在 farmers_weapon 标签中。
Pufferfish's Skills
easy_harvest
收获的作物在经验源上下文中被视为“破坏”的方块。
安装
服务器端和客户端都需要安装。
致谢
大型作物纹理由 @Siina__Makoto 提供
Farmer's Attributes
This mod aims to enhance farming experience in minecraft by adding multiple player attributes related to farming and cooking.

Usage
Farmland protection and right-click harvesting/replanting can be turned on for all players in the config.
The other features are best used in conbination with other mods that make use of the attributes, as this mod doesn't add a way to increase the player attributes by itself.
You can also use commands to set your attributes.
ex.
/attribute @s farmers_attributes:crouch_bonemeal_chance base set 0.5
Contents
Attributes
anti_farmland_trampling
If True (non-zero), prevents farmlands from being trampled by the player.
easy_harvest
If True (non-zero), allows for harvesting crops by right clicking, sending the drops directly to the player's inventory. Uses seeds from the drop content or the player's inventory for replanting.
Also works on kelps and sugarcanes (and similar modded plants) leaving the bottom block. This harvests connected blocks as well, only searching upwards.
crouch_bonemeal_chance
Chance (0.0-1.0) for the bonemeal effect to be applied to nearby crops and saplings when the player spams or holds crouch.
green_thumb
Chance (0.0-1.0) for crops planted by the player to become their Large variants upon reaching max growth state, or give double drops upon harvesting if a large variant is unavailable.
Large variants can only appear when grown naturally (no bonemeal)
zesty_culinary
If 1+, gain the Appetite MobEffect for 30 seconds upon crafting food.
Cooking with the campfire will grant this effect for all players in a radius.
The attribute also gives AoE when the player places a placeable food block (e.g.cake).
The level of the effect will be equal to the attribute value's Integer, and the fraction(Decimal) will be used to determine the effect duration.
The formula is as follows:
Attribute value = (effect level) + (durationSeconds/300-0.1)
ex. Attribute of 1.0 will give Appetite I for 30 seconds, 3.23 III for 99 seconds, 2.9 II for 5min.
Basically, it gives base 30secs + additional 30 seconds per 0.1 attribute value.
short_order_cooking
Multiply cooking speed for Smokers and Campfires in a small radius around the player.
e.g. 0 to completely stop progress, 2 to double cooking speed.
Cooking with multiple players will multiply all of their values.
farmers_weapon
When using farmer's weapons (e.g. Sharp Carrot), the player gains extra damage equal to the attribute value.
farmers_armor
For each farmer's armors (e.g. Carved Pumpkin) piece, the player gains extra armor equal to the attribute value.
MobEffects
Appetite
at level 1 : Allows the player to eat even when they're full
at level 2+: when the player gains any other positive food effects, adds x0.5(configurable) of the original duration per (level-1)
Items & Blocks
- Large BeetRoot
- Large Carrot
- Sharp Carrot
Configuration
The following can be configured in the farmers_attributes-server.toml, unless otherwise specified.
anti_farmland_trampling
Can be enabled for all players, ignoring their attribute values.
easy_harvest
Can be enabled for all players, ignoring their attribute values.
Crops can be blacklisted.
Whole-plant harvesting for kelp/sugarcane type plants can be disabled.
crouch_bonemeal_chance
The range and cooldown (in ticks, when holding crouch key) is configurable.
The affected blocks are defined by the tag #farmers_attributes:crouch_bonemeal_whitelist.
green_thumb
Affected crops and possible large variants can be blacklisted.
Drop multiplier for non-large crops is configurable.
zesty_culinary
The duration of the Appetite given per level is configurable.
The items that are not treated as "cooking" results (does not give effect) are defined by the tag: #farmers_attributes:source_foods
The blocks that gives the effect when placed are defined by the tag: #farmers_attributes:delicious_smelling_blocks
short_order_cooking
The range to apply the speed modifier is configurable.
farmers_weapon
Farmer's weapons are defined by the tag: #farmers_attributes:farmers_weapon
farmers_armor
Farmer's armors are defined by the tag: #farmers_attributes:farmers_armor
Appetite Effect
The multiplier for extended food effect duration is configurable.
Integration
Farmer's Delight
zesty_culinary
Works with skillets and cooking pots.
The skillet will apply the Appetite effect in an a radius like the campfire.
The food blocks from Farmer's Delight (e.g. stuffed pumpkin) are included in the delicious_smelling_blocks tag by default.
short_order_cooking
Works on cooking pots and skillets.
Values lower than 0.001 doesn't work on hand-held skillet cooking and will be handled as 0.001.
farmers_weapon
Skillets and knives are included in the farmers_weapon tag by default.
Pufferfish's Skills
easy_harvest
Harvested crops count as "broken" blocks in experience source contexts.
Installation
Needed on both server and client.
Credits
Large crop textures by @Siina__Makoto
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
下载 Farmer's Attributes
- 修复了在使用右键收获时,若搭配最新的河豚技能模组会导致崩溃的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧