Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Creators
Details
š¾ 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] (https://github.com/BONNePlayground/AnimalPen/wiki/Animal-Interaction)
š 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!



