
Livestock Loyalty
Tamed animals remember who fed them and will only follow and breed for their designated caretaker.
Livestock Loyalty
Introduces a simple ownership system for farm animals based on feeding history.
Mechanics
When a player feeds wheat, seeds, carrots, or other breeding items to cows, sheep, pigs, chickens, or rabbits, that animal becomes bonded to them. Bonded animals display heart particles only for their owner and will refuse breeding items from other players entirely.
Bonded livestock will slowly walk toward their owner when the owner is within 16 blocks and holding the appropriate food item, making herding significantly easier.
Ownership Transfer
Animals can be transferred to another player using the command /trigger GiveAnimal while looking at a bonded creature and having another player nearby. Ownership transfers to the nearest player within 5 blocks.
Technical Details
- Uses scoreboards to track owner UUIDs
- Requires no permissions beyond the trigger command being enabled
- All detection runs on a 20-tick cycle to maintain server performance
- Wild unbonded animals behave completely normally until first fed by any player
Purpose
Creates natural livestock management on multiplayer servers where players cannot accidentally breed or lead away someone else's animals.
