? Animal Pens Mod
✅ 优化你的农场并减少卡顿!
厌倦了由大规模动物农场引起的卡顿吗?Animal Pens 让你能够将动物储存在专门的 围栏 (Pens)、水族箱 (Aquariums) 和 鸟舍 (Aviaries) 中,同时保持完整的功能!
不再拥挤不堪的谷仓——让动物整齐地圈养起来,同时仍能正常繁殖、剪毛、挤奶以及收集掉落物。
? 工作原理:
✔️ 动物笼与容器 – 使用 动物笼 (Animal Cage) 捕获陆地动物,使用 动物容器 (Animal Container) 捕获水生生物。
✔️ 喂食即繁殖 – 无需让动物自由漫游,只需在围栏内喂食它们即可!
✔️ 大多数原版交互(1) 均可实现,包括:
?️ 获取战利品的动物养殖
✂️ 给绵羊剪毛
? 给牛、哞菇和山羊挤奶
? 从哞菇处采集蘑菇炖菜
? 蜜蜂花粉再生
? 根据设置掉落海龟鳞甲
?️ 用刷子清理犰狳的鳞甲
? 用水桶拾取鱼或美西螈
✔️ 自定义交互:
? 鸡、海龟和嗅探兽 – 使用桶来收集蛋。
? 海龟 – 喂食后掉落 鳞甲(可配置时间)。
? 嗅探兽 – 需要碗才能掉落种子。
? 鱼类喂食 – 鱼吃 海带和海草,而其他水生生物吃 鱼。
? 青蛙 – 喂食岩浆怪后掉落 蛙明灯 (Frog Lights)。
✔️ 变体存储与选择
• 拾取动物时会将它的 变体 保存在笼子内。
• 手持空物品右键点击围栏以 查看已存储的变体。
• 如果启用了 视觉生长效果,你可以调整动物的显示大小。
• 你可以调整应受保护免受击杀的动物最小数量。
• 你可以切换是否仅允许你本人与动物围栏/水族箱进行交互。
✔️ 在地面上蹲下右键可 释放动物。
✔️ 动物围栏、水族箱和鸟舍可以通过比较器发送 红石 信号。
✔️ 发射器 (Dispenser) 可以使用特定工具作用于动物围栏、水族箱和鸟舍。
(1) 未添加的功能:
任何动物形态变化
动物与其他实体的任何交互
? 可自定义设置:
通过 模组配置文件 _config/animal_pen_config.json_ 轻松调整游戏玩法,允许你微调:
?️ 攻击冷却时间 - 允许更改玩家在围栏内击杀动物的速度。
? 动物生长系统(可选):
• 如果启用,动物越多 = 围栏显示越大。
• 可调整生长倍率。
? 存储变体 – 允许更改每个围栏可以存储的变体数量。
? 数据驱动设置:
添加了三个新的物品标签 (Item Tags):
这些标签定义了哪些物品可以攻击相应的方块:
animal_pen:can_attack_aquarium– 此标签中的物品可以攻击 水族箱 (Aquarium) 方块。animal_pen:can_attack_pen– 此标签中的物品可以攻击 动物围栏 (Animal Pen) 方块。animal_pen:can_attack_aviary– 此标签中的物品可以攻击 鸟舍 (Aviary) 方块。
示例:添加自定义武器
若要允许 custom_knife 和 modded_dagger 攻击围栏,请在你的 数据包 (datapack) 中创建以下文件:
? 适用于 Minecraft 1.20.6 及以下版本:
路径:your_custom_datapack/data/animal_pen/tags/items/can_attack_pen.json
? 适用于 Minecraft 1.21 及以上版本:
路径:your_custom_datapack/data/animal_pen/tags/item/can_attack_pen.json
{
"replace": false,
"values": [
"mod1_id:custom_knife",
"mod2_id:modded_dagger"
]
}
这允许 自定义武器 用于攻击动物围栏和水族箱。
添加了三个新的实体标签 (Entity Tags):
这些标签定义了哪些物品可以攻击相应的方块:
animal_pen:animal_cage_pickable– 可以被动物笼拾取的生物。animal_pen:bird_catcher_pickable– 可以被捕鸟器拾取的生物。animal_pen:water_mob_container_pickable– 可以被水生动物容器拾取的生物。
? 适用于 Minecraft 1.20.6 及以下版本:
路径:<your_custom_datapack>/data/animal_pen/tags/entity_types/animal_cage_pickable.json
? 适用于 Minecraft 1.21 及以上版本:
路径:<your_custom_datapack>/data/animal_pen/tags/entity_type/animal_cage_pickable.json
可自定义交互
你还可以为每种动物添加或更改交互。你可以通过数据包来完成。
要添加动物交互,你需要创建一个文件:<your_custom_datapack>/data/<your_data_pack_id>/animal_interactions/<your_interaction>.json
要更改动物交互,你需要修改动物文件:<your_custom_datapack>/data/minecraft/animal_interactions/<entity_id>.json
你可以在以下位置查看交互定义:[Wiki] ()
? 命令:
使用这些命令(服务器管理员)来管理该模组:
? /animal_pen reset – 将配置文件重置为默认值。
? /animal_pen reload – 在不重启游戏的情况下重新加载配置文件。
?️ 依赖项:
? Architectury API(必需)。
? Patchouli(可选,增加游戏内指南书)。
? ClothConfigAPI(可选,增加配置编辑图形界面)。
? 模组美术:
感谢 Breadcrumb5550 为本模组的方块和物品提供美术资源!
借助 Animal Pens,你可以 减少卡顿,保持农场井然有序,并保持完整的交互性!
? Animal Pens Mod
✅ Optimize Your Farms & Reduce Lag!
Tired of lag caused by massive animal farms? Animal Pens lets you store animals in specialized pens, aquariums and aviaries while keeping full functionality!
No more overcrowded barns - keep your animals neatly contained while still breeding, shearing, milking, and collecting drops like normal.
? How It Works:
✔️ Animal Cage & Container – Capture land animals with the Animal Cage and water creatures with the Animal Container.
✔️ Feeding animals acts as breeding – No need for free-roaming animals, just feed them inside their pen!
✔️ Most vanilla interactions(1) are possible, including:
?️ Animal farming for loot
✂️ Shearing sheep
? Milking cows, mooshrooms, and goats
? Collecting mushroom stew from mooshrooms
? Bee pollen regeneration
? Turtle scutes dropping based on settings
?️ Brush scutes from armadillo
? Water bucket to pick up fishes or axolotls
✔️ Custom Interactions:
? Chickens, Turtles and Sniffers – Use a bucket to collect eggs.
? Turtles – Drop scutes after feeding (configurable timing).
? Sniffers – Require a bowl to drop seeds.
? Fish Feeding – Fish eat kelp & seagrass, while other water creatures eat fish.
? Frogs – Drop Frog Lights when fed a Magma Cube.
✔️ Variant Storage & Selection
• Picking up an animal saves its variant inside the cage.
• Right-click an empty-handed pen to view stored variants.
• If visual animal growing is enabled, you can adjust the display size of the animals.
• You can adjust the minimal amount of animals that should be protected from killing.
• You can toggle if animal pen/aquarium should be interactable only by you.
✔️ Releasing animals by crouch clicking on ground.
✔️ Animal Pens, Aquariums and Aviaries can send Redstone signal with comparator.
✔️ Dispenser can be used on Animal Pens, Aquariums and Aviaries with certain tools.
(1) Features not added:
Any animal transformation
Any animal interaction with other entities
? Customizable Settings:
Easily adjust gameplay with the mod’s configuration file [config/animal_pen_config.json], allowing you to tweak:
?️ Attack cooldown - Allows to change how fast players can kill animals in pen.
? Animal Growth System (Optional):
• If enabled, more animals = larger pen display.
• Adjustable growth multiplier.
? Stored Variants – Allows to change how many variants can be stored per pen.
? Data Driven Settings:
Added Three New Item Tags:
These tags define which items can attack their respective blocks:
animal_pen:can_attack_aquarium– Items in this tag can attack the Aquarium block.animal_pen:can_attack_pen– Items in this tag can attack the Animal Pen block.animal_pen:can_attack_aviary– Items in this tag can attack the Aviary block.
Example: Adding Custom Weapons
To allow custom_knife and modded_dagger to attack pens, create the following file in your datapack:
? For Minecraft 1.20.6 and Below:
Path: your_custom_datapack/data/animal_pen/tags/items/can_attack_pen.json
? For Minecraft 1.21 and Above:
Path: your_custom_datapack/data/animal_pen/tags/item/can_attack_pen.json
{
"replace": false,
"values": [
"mod1_id:custom_knife",
"mod2_id:modded_dagger"
]
}
This allows custom weapons to be used for attacking animal pens and aquariums.
Added Three New Entity Tags:
These tags define which items can attack their respective blocks:
animal_pen:animal_cage_pickable– Mobs that can be picked up by Animal Cage.animal_pen:bird_catcher_pickable– Mobs that can be picked up by Bird Catcher.animal_pen:water_mob_container_pickable– Mobs that can be picked up by Water Animal Container.
? For Minecraft 1.20.6 and Below:
Path: <your_custom_datapack>/data/animal_pen/tags/entity_types/animal_cage_pickable.json
? For Minecraft 1.21 and Above:
Path: <your_custom_datapack>/data/animal_pen/tags/entity_type/animal_cage_pickable.json
Customizable Interaction
You can also add or change interactions each animal. You can do it with data packs.
To add animal interaction you need to create a file: <your_custom_datapack>/data/<your_data_pack_id>/animal_interactions/<your_interaction>.json
To change animal interaction you need to change animal file: <your_custom_datapack>/data/minecraft/animal_interactions/<entity_id>.json
The interaction definition you can check at: [Wiki] ()
? Commands:
Use these commands (server moderators) to manage the mod:
? /animal_pen reset – Resets the config file to default values.
? /animal_pen reload – Reloads the config file without restarting the game.
?️ Requirements:
? Architectury API (Required).
? Patchouli (Optional, adds an in-game guidebook).
? ClothConfigAPI (Optional, adds config editing GUI).
? Mod Artwork:
Credit to Breadcrumb5550 for the mod’s blocks and items!
With Animal Pens, you can reduce lag, keep your farms organized, and maintain full interactivity!
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Animal Pens
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
Animal Pens 2.5.2
更新内容:
- 修复了围栏中最后一只动物被杀死后,移除已存储变体的问题。
- 修复了关于错误应用的冷却时间的错误报告。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧