Описание
# Smart Feeding Troughs
**Smart Feeding Troughs** automatically feeds and breeds nearby animals in a natural and vanilla-friendly way. Also adds an edible Hay Bale Block which allows wheat eating animals to feed directly from the bale.
## Features
* Designed and Optimized for maximum performance in multi player servers
* Supports both Fabric and NeoForge loaders
* Shear a Hay Bale and animals that eat wheat can feed directly from the block 8 times.
* Enforces a population cap and stops feeding once the cap is reached.
* Animals feed only if a nearby eligible mate is also ready to breed, avoiding wasted food.
* Works with any modded animal that extends the vanilla `Animal` class. Tested with Alex's Mobs.
* Designed for maximum efficiency by minimizing expensive scanning.
* Supports automated input through top and sides via vanilla hoppers.
* Fully configurable, with command-line and UI options via Cloth Config and Mod Menu.
## How to use:
To craft a Smart Trough you need any wooden slabs and planks, combine them in a crafting table and place the trough.
Insert eligible food into the 4-slot inventory. i.e. wheat for cows, seeds for chickens, etc.
## Config Options
* `range`: Maximum distance at which animals can be claimed by the trough. (Default: `16`)
* `maxClaimedAnimals`: Maximum number of animals each trough can claim. Add more troughs to increase the cap further. (Default: `24`)
* `troughClaimCheckInterval`: Number of ticks the trough waits before searching for more animals to claim. (Default: `600`)
* `feedChance`: Probability that an animal will feed when ready. This adds natural variation and can be set to `1.00` for a 100% chance. (Default: `0.25`)
## Changelog
### 1.2.0
* Performance optimizations geared towards multi player servers
* Improved visuals and natural behavior while animals feed
* Trough visuals change to reflect current inventory levels
### 1.1.0
* Added Edible Hay Bale
* Fixed bug where population cap could sometimes be significantly exceeded
---
License: MIT
Source: https://github.com/kingnhcomcast/Smart-Breeding-Troughs
Permissions: You are welcome to use this mod in your modpack. If you do, feel free to leave a comment and let me know.
If you want support for other minecraft versions or feature requests, leave a comment!
Enjoy!