
Simple Animal Pens
A simple datapack that allows to store many animals in one block to reduce lag on the server
Screenshots

About this Mod
Simple Animal Pens is a datapack that let players store infinte amounts of mobs in a single block. The pack strive to full support of all vanilla features as well as compatibility with other packs (and even mods in some cases).
Please report bugs on this project github page or my discord server
Fabric loader requires fabric API
Support Ponder lib
Uses Smithed conventions for compatability
items:
- Animal jar.
the animal jar let you collect and store the animals into it.
- Animal pen.
the pen is block that let you place the jar in the world. in order to do that first collect some animals in your jar then right click on empty pen
Commands:
Give jar:
loot give @p loot sap:animal_jar
Give pen:
loot give @p loot sap:animal_pen
Changing pack settings:
dialog show @s sap:settings
Technical details to modifiy the pack behavior
If you want to add support for new mobs that not supported by default, this section will guide you keep in mind you must use the same namespaces for it to work. > NOTE : when you see `ENTITY` inside function or tag you need to put the entity name without the namespace instead e.g. "minecraft:cow" -> "cow"1-adding mob
adding the mob into the entity tag #sap:fit_in_jar
you can edit the whole tag if you want to remove animal, or you can just addon top of it with replace : false
{
"replace": false,
"values": [
"minecraft:cow",
"minecraft:pig",
"minecraft:sheep",
"minecraft:chicken",
"minecraft:turtle",
"minecraft:bee",
"minecraft:rabbit"
]
}
2-adding right click functions
create new item tag inside sap named used_on_ENTITY and specify what items can be used on this mob
then create new function named interact_with_ENTITY in
sap:click_functions/loot/
inside the function you can run whatever you want. you can split the function into 2 or more if you want more than 1 click function or diffrent tools
the default file for bee looks like that
execute if items entity @p[tag=this] weapon.mainhand *[minecraft:custom_data~{smithed:{ignore:{functionality:1b}}}] run return fail
scoreboard players set @s sap.function_cooldown 12000
scoreboard players operation @s sap.function_cooldown -= @s sap.entity_count
scoreboard players add @s sap.function_cooldown 100
execute as @p[tag=this] run function sap:click_functions/loot/specific/collect_honey
inside the specific function you can add sounds,clear items,give items,particals etc
3-breeding
to add viable food for breeding create(or use the vanila one) item tag under the MINECRAFT namespace called ENTITY_food
4-Tool for breaking
tool needed to break the farm controlled by the item tag sap:tool_to_break
5-Tool for killing
tool needed to kill entity in the farm controlled by the item tag sap:tool_to_kill
Available Versions
How to Install Simple Animal Pens on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set datapack Loader
In the panel under "Egg", select the datapack loader and matching Minecraft version (26.1).
Install Mod
Open the mod browser in the dashboard and search for "Simple Animal Pens". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1, 1.21.11, 1.21.10 (+5 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Simple Animal Pens server crashes on startup – what to do?
Most common cause: wrong datapack version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1). You can switch loaders with one click in the panel.
Is Simple Animal Pens compatible with datapack and fabric and forge and neoforge and quilt?
Simple Animal Pens officially supports datapack, fabric, forge, neoforge, quilt for Minecraft 26.1, 1.21.11, 1.21.10. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Simple Animal Pens – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Simple Animal Pens consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Simple Animal Pens with just one click on your server.