Cobblemon Virtual Loot 为 Cobblemon 添加了虚拟牧场,其灵感来源于 Cobblemon Pasture Loot 的设计思路。
在看到玩家反馈大量宝可梦实体在周围走动会导致卡顿,同时也希望有一种方式能让宝可梦仅作为可爱的装饰性伙伴存在于外部,而不会不断在地面掉落物品,因此本模组应运而生,提供了一种更清爽的替代方案。与直接在外部生成宝可梦不同,虚拟牧场通过 Cobblemon 牧场系统将宝可梦进行虚拟分配,并直接在其自身的物品栏中生成它们的 Cobblemon 掉落物。这有助于减少世界中的杂乱元素,避免物品堆积在地面上,同时让装饰性宝可梦保持纯粹的装饰功能。
工作原理
放置一个虚拟牧场并像使用 Cobblemon 牧场一样使用它。分配给该方块的宝可梦将保持虚拟状态,因此它们不会以实体形式出现在世界中,但该方块仍会处理它们的掉落物生成。
生成的掉落物基于宝可梦自身的 Cobblemon 击败掉落。具体来说,模组读取分配的宝可梦,检查其是否有效且未昏迷,使用该宝可梦形态的掉落表,随机抽取一项生成的掉落物,并将结果放入虚拟牧场的物品栏中。
生成的物品存储在虚拟牧场的 27 格物品栏中。玩家可以通过按住 Shift + 右键点击方块来直接打开此物品栏。也可以通过在虚拟牧场下方放置漏斗或其他物品传输系统来自动提取物品。
本模组支持 Fabric 和 NeoForge。
配置
配置文件生成于以下路径:
config/PastureLoot.json
默认配置如下:
{
"tick_per_minute": 1200,
"drop_chance_per_minute": 0.05,
"item_blacklist": [
"minecraft:porkchop",
"minecraft:beef",
"minecraft:chicken",
"minecraft:mutton",
"minecraft:rabbit",
"minecraft:fish",
"minecraft:cooked_porkchop",
"minecraft:cooked_beef",
"minecraft:cooked_chicken",
"minecraft:cooked_mutton",
"minecraft:cooked_rabbit",
"minecraft:cooked_fish",
"minecraft:leather",
"minecraft:bone",
"minecraft:spider_eye",
"minecraft:rotten_flesh",
"minecraft:rabbit_hide",
"minecraft:rabbit_foot",
"minecraft:cod",
"minecraft:pufferfish",
"minecraft:bone_block",
"minecraft:bone_meal",
"cobblemon:sharp_beak",
"minecraft:honey_bottle",
"minecraft:salmon",
"minecraft:white_wool"
],
"flatten_item_quantity": false
}
tick_per_minute 控制模组将多少个游戏刻视为一次“掉落分钟”。默认值 1200 与正常 Minecraft 计时中的 60 秒相同。
drop_chance_per_minute 控制每个分配的宝可梦在该配置的分钟内生成掉落物的概率。默认值 0.05 意味着每只宝可梦在每个配置的分钟内有 5% 的概率生成掉落物。在内部,这会转换为每个刻的概率,从而使生成过程更加平滑,而不是瞬间全部发生。
item_blacklist 阻止特定物品 ID 被生成。如果宝可梦随机到的掉落物在此列表中,则该掉落物将被忽略。
flatten_item_quantity 控制堆叠大小行为。当禁用时,生成的物品保留由宝可梦掉落数据掷骰出的数量。当启用时,所有有效的生成物品堆栈将被强制为 1 个物品。
可选兼容性
Cobblemon Virtual Loot 可与 Cobblemon 独立运行,但也包含与其他 Cobblemon 扩展模组的可选兼容性。这些扩展模组并非必需。如果未安装它们,本模组仍会正常加载,额外的兼容功能将保持禁用状态。
Cobbreeding
当安装 Cobbreeding 时,虚拟牧场内的宝可梦可以使用 Cobbreeding 自身的繁殖系统生成蛋。
兼容性遵循 Cobbreeding 的规则、配置、计时器、开关、蛋生成、遗传、闪光概率、蛋招式、蛋物品数据及相关行为。蛋会被插入到与普通掉落物相同的虚拟牧场物品栏中,而无需在世界中生成宝可梦实体。
仍然可以使用 Cobbreeding 按钮来启用或禁用繁殖。旁边还添加了一个木棍按钮,允许玩家单独切换虚拟掉落物的生成。这意味着可以设置虚拟牧场仅生成掉落物、仅生成蛋、两者都生成或都不生成。
Cobbleworkers
当安装 Cobbleworkers 时,虚拟牧场可以为选定的 Cobbleworkers 职业生成掉落物,而无需在世界中生成宝可梦。
支持的职业:
cobbleworkers:pickup_looter
cobbleworkers:fishing_looter
cobbleworkers:dive_looter
cobbleworkers:archaeologist
pickup_looter 直接从符合条件的宝可梦工作。fishing_looter 和 dive_looter 要求在虚拟牧场 5 格范围内至少有一个上方有空气的水方块。archaeologist 要求在虚拟牧场 5 格范围内至少有一个上方有空气的有效考古方块。
所有生成的 Cobbleworkers 掉落物都会进入同一个 27 格的虚拟牧场物品栏,并遵循虚拟掉落物的开关设置。
常见问题
问:我可以在整合包中使用此模组或用它制作内容吗? 答: 当然!欢迎将 Cobblemon Virtual Loot 包含在你的整合包中或在视频中进行展示。请记得适当署名该模组,并不要声称它是你的作品。
问:此模组会在世界中生成宝可梦吗? 答: 不会。虚拟牧场将宝可梦虚拟分配给方块并在内部生成掉落物。
问:此模组会将生成的物品掉落在地面上吗? 答: 不会。生成的物品会放置在虚拟牧场的物品栏内。
问:我需要 Cobbreeding 或 Cobbleworkers 吗? 答: 不需要。它们是可选的兼容性模组。本模组无需它们即可正常运行。
问:如何收集生成的战利品? 答: 潜行使用 Virtual Pasture 打开其物品栏,或在方块下方放置漏斗以自动提取物品。
鸣谢
特别感谢 Cobblemon 团队创建 Cobblemon 以及使本模组成为可能的牧场系统。
特别感谢 Cobbreeding 和 Cobbleworkers 的创作者,他们提供了由可选兼容性系统支持的附加内容。
Cobblemon Virtual Loot 与 Cobblemon 及 Minecraft 均无关联。
Minecraft 是 Mojang Synergies AB 的商标 | Cobblemon 是 CobbledStudios 的商标
Cobblemon Virtual Loot adds a Virtual Pasture to Cobblemon, inspired by the idea behind Cobblemon Pasture Loot.
After seeing players report lag issues from having many Pokemon entities walking around and also wanting a way to keep Pokemon outside purely as cute decorative companions without them constantly dropping items on the ground, this mod was created as a cleaner alternative. Instead of spawning the Pokemon outside, the Virtual Pasture keeps them virtually assigned through the Cobblemon pasture system and generates their Cobblemon loot directly inside its own inventory. This helps reduce world clutter, avoids item drops piling up on the ground, and lets decorative Pokemon stay decorative.
How It Works
Place a Virtual Pasture and use it like a Cobblemon pasture. Pokemon assigned to the block stay virtual, so they do not appear as entities in the world, but the block still processes their loot generation.
The generated loot is based on the Pokémon own Cobblemon defeat drops. In practice, the mod reads the assigned Pokemon, checks that it is valid and not fainted, uses the Pokemon form's drop table, rolls one of the generated item drops, and inserts the result into the Virtual Pasture inventory.
Generated items are stored in the Virtual Pasture's 27-slot inventory. Players can open this inventory directly by using Shift + Right Click on the block. Items can also be extracted automatically with hoppers below the Virtual Pasture or similar item-transport systems.
The mod is available for both Fabric and NeoForge.
Configuration
The config file is generated at:
config/PastureLoot.json
Default config:
{
"tick_per_minute": 1200,
"drop_chance_per_minute": 0.05,
"item_blacklist": [
"minecraft:porkchop",
"minecraft:beef",
"minecraft:chicken",
"minecraft:mutton",
"minecraft:rabbit",
"minecraft:fish",
"minecraft:cooked_porkchop",
"minecraft:cooked_beef",
"minecraft:cooked_chicken",
"minecraft:cooked_mutton",
"minecraft:cooked_rabbit",
"minecraft:cooked_fish",
"minecraft:leather",
"minecraft:bone",
"minecraft:spider_eye",
"minecraft:rotten_flesh",
"minecraft:rabbit_hide",
"minecraft:rabbit_foot",
"minecraft:cod",
"minecraft:pufferfish",
"minecraft:bone_block",
"minecraft:bone_meal",
"cobblemon:sharp_beak",
"minecraft:honey_bottle",
"minecraft:salmon",
"minecraft:white_wool"
],
"flatten_item_quantity": false
}
tick_per_minute controls how many game ticks the mod treats as one loot minute. The default value, 1200, is the same as 60 seconds in normal Minecraft timing.
drop_chance_per_minute controls the chance for each assigned Pokemon to generate loot during that configured minute. The default value, 0.05, means each Pokemon has a 5% chance per configured minute. Internally, this is converted into a per-tick chance, so generation stays smooth instead of happening all at once.
item_blacklist blocks specific item IDs from being generated. If a Pokemon's rolled drop is in this list, that drop is ignored.
flatten_item_quantity controls stack size behavior. When disabled, generated items keep the quantity rolled by the Pokemon's drop data. When enabled, every valid generated item stack is forced to 1 item.
Optional Compatibility
Cobblemon Virtual Loot works on its own with Cobblemon, but it also includes optional compatibility with other Cobblemon addons. These addons are not required. If they are not installed, the mod will keep loading normally and the extra compatibility features will simply stay disabled.
Cobbreeding
When Cobbreeding is installed, Pokemon inside the Virtual Pasture can generate eggs using Cobbreeding's own breeding systems.
The compatibility respects Cobbreeding's rules, configs, timers, toggles, egg generation, inheritance, shiny chances, egg moves, egg item data, and related behavior. Eggs are inserted into the same Virtual Pasture inventory as the normal loot, without spawning Pokemon entities in the world.
The Cobbreeding button can still be used to enable or disable breeding. A stick button is also added beside it, allowing players to toggle Virtual Loot generation separately. This means a Virtual Pasture can be set to generate only loot, only eggs, both, or neither.
Cobbleworkers
When Cobbleworkers is installed, the Virtual Pasture can generate loot for selected Cobbleworkers jobs without spawning the Pokemon in the world.
Supported jobs:
cobbleworkers:pickup_looter
cobbleworkers:fishing_looter
cobbleworkers:dive_looter
cobbleworkers:archaeologist
pickup_looter works directly from eligible Pokemon. fishing_looter and dive_looter require at least one water block with air above it within 5 blocks of the Virtual Pasture. archaeologist requires at least one valid archaeology block with air above it within 5 blocks of the Virtual Pasture.
All generated Cobbleworkers loot goes into the same 27-slot Virtual Pasture inventory and follows the Virtual Loot toggle.
Frequently Asked Questions
Q: Can I use this mod in my modpack or create content with it? A: Absolutely! You're welcome to include Cobblemon Virtual Loot in your modpack or feature it in your videos. Just remember to credit the mod appropriately and avoid claiming it as your own work.
Q: Does this mod spawn Pokemon into the world? A: No. The Virtual Pasture keeps Pokemon virtually assigned to the block and generates loot internally.
Q: Does this mod drop generated items on the ground? A: No. Generated items are placed inside the Virtual Pasture inventory.
Q: Do I need Cobbreeding or Cobbleworkers? A: No. They are optional compatibilities. The mod works without them.
Q: How do I collect the generated loot? A: Sneak-use the Virtual Pasture to open its inventory, or place hoppers below the block to extract items automatically.
Credits
Special thanks to the Cobblemon team for creating Cobblemon and the pasture system that made this mod possible.
Special thanks to the creators of Cobbreeding and Cobbleworkers for the addons supported by the optional compatibility systems.
Cobblemon Virtual Loot is not affiliated with Cobblemon nor Minecraft.
Minecraft is a trademark of Mojang Synergies AB | Cobblemon is a trademark of CobbledStudios
评论 0
登录后参与评分
还没有评论,来抢沙发吧