Cobblemon Pasture Loot
想要放弃狩猎采集的生活方式,拥抱农耕生活,让你的牧场宝可梦为你工作吗?这个模组就是为你准备的!
Cobblemon Pasture Loot 让 Cobblemon 牧场中的宝可梦偶尔掉落物品。这些物品来自该宝可梦的掉落表,与你击败野生宝可梦时使用的相同,并且会掉落在宝可梦站立的位置。在地面放置一些漏斗,你就拥有了一个农场。
默认情况下,宝可梦只有在死亡时才会给予的物品(肉、鱼、皮革、骨头……)不会掉落。
工作原理
- 每只牧场中的宝可梦默认每小时平均掉落 3 次(只要区块已加载)。
- 一次掉落对应于对宝可梦掉落表的一次投掷,因此它可能一次性给出多个物品,数量和概率由 Cobblemon 定义。
- 支持地区形态和其他形态。
- 位置很重要:某些宝可梦在下界或末地生成时有特殊掉落物(鬼斯和恶魂之泪、艾雷伊和紫颂果……)。当牧场位于相同位置时,模组会给予这些掉落物。处于下界牧场的鬼斯会掉落恶魂之泪,而处于主世界牧场的同一只鬼斯则不会。
- 亲密度很重要:掉落率随宝可梦的亲密度增加,最高亲密度时默认掉落率翻倍。
- 为了保护你的服务器,当周围堆积过多物品时,牧场会停止掉落。
配置
设置位于 config/pastureloot.toml。该文件在首次启动时创建,每个设置都有注释说明。
drops.per_hour(3.0):平均每只宝可梦每小时的掉落次数。0禁用掉落,最大值为3600(每秒一次掉落)。filter.mode("blacklist"):使用"blacklist"时,列表中的物品永远不会掉落。使用"whitelist"时,仅掉落列表中的物品。filter.items:物品 ID("minecraft:bone")或带有#前缀的物品标签("#c:foods/raw_meat")。默认包含宝可梦通过死亡获得的物品,以及蜂蜜瓶和白色羊毛(Cobblemon 已允许你从宝可梦身上收获这些物品)。friendship.max_bonus(1.0):最高亲密度时的额外掉落率。1.0表示在亲密度 255 时掉落率为原来的两倍,0禁用此加成。anti_lag.max_items_nearby(32):当宝可梦徘徊区域内的实体物品数量达到或超过此数值时,牧场会停止掉落。0禁用此限制。区域大小来自 Cobblemon 配置(pastureMaxWanderDistance)。
缺失的设置将使用其默认值。错误的值将被替换为其默认值或限制值,并在日志中发出警告。
掉落表覆盖
要更改宝可梦的掉落物,请使用 config/pastureloot-overrides.toml。该文件在创建时会包含解释和示例,且没有任何激活的规则。
每个 [[override]] 块代表一条规则。每条与宝可梦匹配的规则都会按文件中的顺序应用:replace 从头开始重新计算,add 添加掉落物,remove 移除上面规则所给出的物品。
# 阿罗拉六尾也会掉落冰
[[override]]
pokemon = "vulpix alolan"
drops = [{ item = "minecraft:ice", quantity = "1-2", chance = 10 }]
# 鬼斯在下界牧场中掉落灵魂沙
[[override]]
pokemon = "gastly"
biomes = ["#minecraft:is_nether"]
drops = [{ item = "minecraft:soul_sand", chance = 5 }]
# 咩利羊只掉落羊毛
[[override]]
pokemon = "mareep"
mode = "replace"
drops = [{ item = "minecraft:white_wool", quantity = "1-2" }]
# 葱游兵保留它的羽毛
[[override]]
pokemon = "farfetchd"
mode = "remove"
items = ["minecraft:feather"]
# 超梦在牧场中不掉落任何物品
[[override]]
pokemon = "mewtwo"
rate_multiplier = 0
pokemon(必需):宝可梦属性,类似于/pokegive命令:"vulpix"、"vulpix alolan"、"shiny=true"、"type=fire"...mode:"add"(默认)、"replace"或"remove"。drops:对于add和replace,是一个{ item, quantity, chance }列表。quantity是数字或范围("1-3"),默认为 1。chance以百分比表示,默认为 100。每次掉落独立投掷。items:对于remove,是物品 ID 或物品标签。rate_multiplier:乘以该宝可梦的掉落率,默认为 1。biomes和dimensions:可选,牧场必须位于其中之一。生物群系接受 ID 和标签。
pastureloot.toml 中的过滤器仅适用于 Cobblemon 的掉落物,不适用于你在此文件中添加的掉落物。有问题的规则会被跳过,并在日志中发出警告,指明是哪条规则出了问题。
命令
这些命令仅限操作员使用。
/pastureloot reload:重新读取两个文件,无需重启。警告信息会在聊天中显示。/pastureloot preview <properties>:显示你在当前站立的牧场中,某只宝可梦会掉落什么:包括掉落率、Cobblemon 掉落表、过滤器移除的内容以及覆盖规则添加的内容。例如:/pastureloot preview vulpix alolan。/pastureloot inspect <entity>:同上,但针对世界中的一只宝可梦,使用其真实的亲密度和牧场位置。例如:/pastureloot inspect @e[type=cobblemon:pokemon,limit=1,sort=nearest]。
支持版本与兼容性
支持 Minecraft 1.21.1 下的 Cobblemon 1.8,适用于 Fabric 和 NeoForge。对于 Cobblemon 1.7,请使用模组的 1.0.x 版本,它们将不再接收新更新。
从 1.0.x 升级
旧的 config/PastureLoot.json 会在首次启动时转换为 config/pastureloot.toml,然后重命名为 PastureLoot.json.old。你的掉落率和黑名单将被保留。
在 2.0 版本中,某些功能的工作方式有所不同:
- 掉落概率由每分钟的概率改为每小时掉落的数量:
0.05(每分钟)对应3(每小时)。 - 掉落现在会给予从掉落表中掷出的所有物品,而 1.0.x 版本仅获取其中之一。在相同的掉落率下,宝可梦的掉落量比之前略多。
legacy_flatten_item_quantity设置项已移除,物品数量始终遵循 Cobblemon 的规则。
支持
如果您遇到任何问题,请在 GitHub 上提交一个包含尽可能多细节的新 Issue,或在 Discord 上获取支持。/pastureloot preview 和 /pastureloot inspect 是解释您所看到内容的良好起点。
许可证
本模组遵循 GNU Affero General Public License v3.0。
请勿在 CurseForge 上重新发布本模组。
我的其他模组

| 项目 | 描述 |
|---|---|
![]() |
Create: Transcontinental 在世界生成期间生成一个高效、确定性的 Create 铁路网络,通过适应地形的轨道连接大陆间的各个区域。 |
![]() |
Create: Immediate Departure 在发现 Create 火车站并连接你的铁路网络后,实现车站间的快速旅行。 |
![]() |
Cobblemon Pasture Loot 想要放弃狩猎采集的生活方式,拥抱农夫生活,让你的牧场宝可梦为你工作吗?这个模组就是为你准备的! |
![]() |
Leon Le Robot 让法国 Twitch 主播机器人 Leon Le Robot 降临到你的 Minecraft 服务器中。 |
|
| Community Leaders
一款旨在帮助服务器管理员将社区管理委托给受信任的“社区领袖”的模组。服务器管理员可以向主播、内容创作者或社区经理授予邀请权限…… |
|
| Server Rules
一款通过向新玩家显示强制性的规则屏幕来执行服务器规则的模组。玩家必须在加入游戏前阅读并接受规则,以确保友好且尊重的社区环境。 |
直播及其他作品
Cobblemon Pasture Loot
Want to abandon the hunter-gatherer lifestyle, embrace the farmer life and have your pastured pokémon do the work for you? This mod is for you!
Cobblemon Pasture Loot makes the pokémon in a Cobblemon pasture drop items from time to time. The items come from the drop table of the pokémon, the same one Cobblemon uses when you defeat a wild pokémon, and they fall where the pokémon stands. Put some hoppers on the ground and you have a farm.
Items a pokémon can only give by dying (meat, fish, leather, bones...) are not dropped by default.
How it works
- Each pokémon in a pasture drops 3 times per hour on average by default (as long as the chunk is loaded).
- One drop is one roll of the drop table of the pokémon, so it can give several items at once, with the quantities and chances Cobblemon defines.
- Regional forms and other forms are supported.
- The place matters: some pokémon have special drops when they spawn in the Nether or in the End (Gastly and its ghast tears, Elgyem and its chorus fruits...). The mod gives these drops when the pasture stands in the same place. A Gastly in a Nether pasture drops ghast tears, the same Gastly in the Overworld does not.
- Friendship matters: the drop rate grows with the friendship of the pokémon, up to twice the rate at maximum friendship by default.
- To protect your server, a pasture stops dropping while too many items lie around it.
Configuration
The settings are in config/pastureloot.toml. The file is created on the first start, with a comment on every setting.
drops.per_hour(3.0): average number of drops per hour, for each pokémon.0disables drops, the maximum is3600(one drop per second).filter.mode("blacklist"): with"blacklist", the items of the list are never dropped. With"whitelist", only the items of the list are dropped.filter.items: item ids ("minecraft:bone") or item tags with a#("#c:foods/raw_meat"). By default it contains the items a pokémon gives by dying, plus honey bottles and white wool that Cobblemon already lets you harvest on your pokémon.friendship.max_bonus(1.0): extra drop rate at maximum friendship.1.0means twice the rate at friendship 255,0disables the bonus.anti_lag.max_items_nearby(32): a pasture stops dropping while this many item entities or more lie in the area where its pokémon wander.0disables the limit. The size of the area comes from the Cobblemon config (pastureMaxWanderDistance).
A missing setting takes its default value. A wrong value is replaced by its default or its limit, with a warning in the log.
Loot table overrides
To change what a pokémon drops, use config/pastureloot-overrides.toml. The file is created with explanations and examples, and without any active rule.
Each [[override]] block is one rule. Every rule that matches a pokémon is used, in the order of the file: replace starts again from nothing, add adds drops, remove takes items out of what the rules above it gave.
# Alolan Vulpix also drops ice
[[override]]
pokemon = "vulpix alolan"
drops = [{ item = "minecraft:ice", quantity = "1-2", chance = 10 }]
# Gastly drops soul sand, but only in a Nether pasture
[[override]]
pokemon = "gastly"
biomes = ["#minecraft:is_nether"]
drops = [{ item = "minecraft:soul_sand", chance = 5 }]
# Mareep only drops wool
[[override]]
pokemon = "mareep"
mode = "replace"
drops = [{ item = "minecraft:white_wool", quantity = "1-2" }]
# Farfetch'd keeps its feathers
[[override]]
pokemon = "farfetchd"
mode = "remove"
items = ["minecraft:feather"]
# Mewtwo does not drop anything in a pasture
[[override]]
pokemon = "mewtwo"
rate_multiplier = 0
pokemon(required): pokémon properties, like in/pokegive:"vulpix","vulpix alolan","shiny=true","type=fire"...mode:"add"(default),"replace"or"remove".drops: foraddandreplace, a list of{ item, quantity, chance }.quantityis a number or a range ("1-3"), 1 by default.chanceis in percent, 100 by default. Each drop is rolled on its own.items: forremove, item ids or item tags.rate_multiplier: multiplies the drop rate of this pokémon, 1 by default.biomesanddimensions: optional, the pasture must stand in one of them. Biomes accept ids and tags.
The filter of pastureloot.toml only applies to the drops of Cobblemon, not to the drops you add in this file. A broken rule is skipped with a warning in the log that tells which rule it is.
Commands
These commands are for operators only.
/pastureloot reload: reads both files again, without restarting. The warnings are shown in the chat./pastureloot preview <properties>: shows what a pokémon would drop in a pasture where you stand: its rate, the Cobblemon table, what the filter and the overrides remove, and what the overrides add. Example:/pastureloot preview vulpix alolan./pastureloot inspect <entity>: the same for a pokémon of the world, with its real friendship and the place of its pasture. Example:/pastureloot inspect @e[type=cobblemon:pokemon,limit=1,sort=nearest].
Supported versions & compatibility
Supports Cobblemon 1.8 for Minecraft 1.21.1, on Fabric and on NeoForge. For Cobblemon 1.7, use the 1.0.x versions of the mod, they will not receive new updates.
Updating from 1.0.x
The old config/PastureLoot.json is converted to config/pastureloot.toml on the first start, then renamed PastureLoot.json.old. Your drop rate and your blacklist are kept.
Some things work differently in 2.0:
- The drop chance per minute became a number of drops per hour:
0.05per minute is3per hour. - A drop now gives every item rolled from the drop table, where 1.0.x picked only one of them. With the same rate, pokémon drop a bit more than before.
- The
legacy_flatten_item_quantitysetting is gone, quantities always follow Cobblemon.
Support
If you encounter any issue, open a new issue on GitHub with as many details as possible, or get support on Discord. /pastureloot preview and /pastureloot inspect are a good start to explain what you see.
License
The mod is under the GNU Affero General Public License v3.0.
Please do not repost the mod on CurseForge.
My other mods

| Project | Description |
|---|---|
![]() |
Create: Transcontinental Generates a performant, deterministic Create railway network during world generation, connecting regions across continents with terrain-adaptive tracks. |
![]() |
Create: Immediate Departure Fast-travel between Create train stations, once you've discovered them and connected your rail network. |
![]() |
Cobblemon Pasture Loot Want to abandon the hunter-gatherer lifestyle, embrace the farmer life and have your pastured pokémon do the work for you? This mod is for you! |
![]() |
Leon Le Robot Let the french Twitch streamer robot Leon Le Robot land in your Minecraft server. |
![]() |
Community Leaders A mod designed to help server admins delegate community management to trusted "community leaders". Server admins can grant invitation permissions to streamers, content creators, or community managers… |
![]() |
Server Rules Mod designed to enforce server rules by displaying a mandatory rules screen to new players. Players must read and accept the rules before they can join the game, ensuring a friendly and respectful community environment. |
Streams and other creations
I stream on Twitch, in French. You can find my other creations on GitHub and my personal website.
下载 Cobblemon Pasture Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon Pasture Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon Pasture Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon Pasture Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon Pasture Loot
下载 Cobblemon Pasture Loot
下载 Cobblemon Pasture Loot
下载 Cobblemon Pasture Loot
下载 Cobblemon Pasture Loot
下载 Cobblemon Pasture Loot
Cobblemon Pasture Loot 2.0.0
适用于 Minecraft 1.21.1 的 Cobblemon 1.8 全新主要版本,现已支持 Fabric 和 NeoForge。对于 Cobblemon 1.7,请继续使用 1.0.x 版本。
新增
- 添加了对 NeoForge 的支持
- 新增配置文件
config/pastureloot.toml。首次启动时会自动转换旧的PastureLoot.json - 掉落率现以每小时掉落次数计算
- 过滤器中支持物品标签(Item Tags)
- 亲密度加成
- 物品数量上限(防卡顿)
- 战利品表覆盖
- 已考虑维度因素
更改
- 每次掉落现在会给出从宝可梦掉落表中掷骰出的所有物品,而 1.0.x 版本仅随机选取其中一件。
- 需要多种形态特征的宝可梦(如伽勒尔戴鲁比)现在从其专属的战利品表中掉落。
- 默认过滤器使用物品标签来识别肉类和鱼类,因此也涵盖了其他模组中使用这些标签的热带鱼及其他肉类。
- 移除了
legacy_flatten_item_quantity设置,物品数量始终遵循 Cobblemon 的标准。
Cobblemon Pasture Loot 2.0.0
适用于 Minecraft 1.21.1 的 Cobblemon 1.8 的新重大版本,现已支持 Fabric 和 NeoForge。对于 Cobblemon 1.7,请继续使用 1.0.x。
新增
- 添加了 NeoForge 支持
- 新的配置文件
config/pastureloot.toml。旧的PastureLoot.json将在首次启动时自动转换 - 掉落率现在改为每小时掉落次数
- 过滤条件中加入了物品标签
- 亲密度加成
- 物品数量上限(防卡顿)
- 战利品表覆盖
- 考虑维度因素
更改
- 一次掉落会给予从宝可梦的战利品表中随机抽取的所有物品,而 1.0.x 版本仅从中选取其中一件。
- 需要多个形态特征的宝可梦(如伽勒尔戴鲁比)现在从其专属的战利品表中掉落。
- 默认过滤器使用物品标签来识别肉类和鱼类,因此也涵盖其他使用这些标签的模组中的热带鱼和其他肉类。
- 移除了
legacy_flatten_item_quantity设置,物品数量始终跟随 Cobblemon 的计算方式。
如果缺失,请将 legacy_flatten_item_quantity 添加到 json 中
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
让你能够在世界中的任何位置定位结构。
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
模组
一堆修复
模组
如果游戏能告知重要的刷新点,会怎样?
模组
一款适用于你选择的加载器的 Minecraft VR 模组!
模组
为盔甲架添加图形用户界面,允许你配置其姿势和其他属性



评论 0
登录后参与评分
还没有评论,来抢沙发吧