Taming

Boars, Wolves, and Lox can be tamed to make them friendly with the players and help against fighting other hostile creatures. Chickens/Hens are already tamed once they've hatched from an egg. They can also be bred which enables an easy access to their drops. Tamed wolves can be commanded to guard a specific place or to follow into a battle. Tamed lox can be ridden.

Tamed creatures keep their stars and will pass them to their offspring. This makes 2 star creatures very valuable for taming for their increased drops and combat ability.

## Eating

Both taming and breeding require the creatures to be fed. Creatures check for food every 10 seconds if following conditions are true:

* The creature must not be fleeing (boars from fire, night time wolves during the day or event creatures after the event).
* The creature must either not be alerted (red indicator) or it can't have a target. Being aware doesn't prevent eating (yellow indicator).
* The creature must be hungry.
* The closest valid food item within 10 meters can be reached with pathfinding.

After successfully eating, the creature stays fed for 10 minutes. Food expires faster when players sleep.

### Notes

* Creatures can only be alerted without a target after their target dies. Other cases of losing the target also remove the alert status.
* Event creatures can only eat food when calm and aware of the player (yellow icon). When fully calm, they will attempt to flee instead. The easiest way is to trap them in a hole, wait until the event ends, wait until they calm down and then create some noise by running to make them aware.
* Night time creatures like starred wolves must be initially fed during the night. If it's day time, the player must trap the wolf and wait nearby to prevent it from despawning. It will not eat until night.
* Failing the pathfinding check prevents eating even if the food is within the eating range.
	+ Lox won't eat if there is a roof too close to them. This is because their pathfinding is based on size of Trolls.
	+ Automatic breeders require a specific design as the creatures usually stand on an area that is not valid for pathfinding (wood poles or small floors).

 Hen | Carrot seeds, Turnip seeds, Onion seeds, Beech seeds, Birch seeds, Barley, Dandelion | 1 meter

## Taming

   Taming progresses every 3 seconds if following conditions are true:

* The creature is not hungry.
* The creature is not alerted (no red exclamation mark).
* The area is active (any player within ~64 meters, exact distance depends on the underlying zone system).

Yellow hearts indicate a successful taming progress. Progress is also shown on the creature hover text but this requires getting very close which often alerts the creature.

Taming always requires 600 successful ticks (30 minutes). When taming is finished, a message is shown on the screen.

### Notes

* Creatures only eat one item from stacks so the food doesn't have to be thrown one by one. Player base structures can be used to prevent the food from despawning.
* Creatures become alerted if they become aggressive to another creature. Boars also become alerted when too close to a source of fire.
* Most creatures are only visible when they are in an active area (except Lox). If you can see the boar or wolf then you are close enough.
* First tick of taming will remove "despawn" flags from event and night time creatures.
	+ This allows night time wolves also to eat during the day.
* If taming is done without interruption, only 3 food items are needed.
* Sleeping doesn't make taming faster but will waste the food.

### Pens

While not strictly necessary, it is highly recommended to construct a pen for containing creatures intended for taming. This prevents them from wandering off or being damaged by other creatures. Additionally, by keeping the creatures out of line of sight from the player, there is a much lower chance of them becoming frightened and aggressive, which can prolong the taming process. A simple hole dug in the ground with a pickaxe works best, as luring creatures into a pen often leads to them becoming hostile. Hostile creatures will attempt to damage structures if they cannot reach the player. This is especially concerning with creatures like the Lox, which can inflict significant damage and quickly destroy even stone buildings. Once a pen has been built, a player can either aggro the creature and lead them inside while being chased or use the Abyssal Harpoon to drag them in.

## Tamed

Taming applies following changes to creatures:

* They can be renamed with LShift + E.
* They can be interacted with E to show the text "(Creature name) loves you" onscreen as well as a cloud of pink hearts
* Boars are no longer afraid of fire.
* Wolves can be commanded to stay or follow. However they won't follow through portals.
	+ Follow state seems to be sometimes lost and may require "refreshing" it once in a while.
* Wolves no longer howl (doesn't apply to pups).
* Lox allow riding with a Lox saddle.
* They change their faction to the player faction.
	+ Players can only harm them with Butcher knife or after enabling friendly fire.
	+ They won't attack any other tamed creatures.
	+ They will attack any wild creatures, except their own species.
* They lose anchoring to their spawn point which allows them to move more freely.
	+ Note: Boars from abandoned farms and Runestones will keep their anchor point. They will always try to return home which makes handling them difficult. It's recommended to breed these on the spot and move the offspring instead.
* They require feeding for the passive health regeneration.

## Breeding

Breeding is checked every 30 seconds. Creatures gain a love point if following conditions are true:

* Random roll of 33% succeeds.
* The creature is not hungry.
* The creature is not alerted (no red exclamation mark).
* Total number of creatures and offspring is less than the limit (including the creature itself).
* Suitable partner exists nearby (tamed, not hungry, not pregnant).
* The area is active (any player within ~64 meters, exact distance depends on the underlying zone system).

Successful love point is indicated by pink hearts. After gaining enough love points, the creature becomes pregnant which is not visualized. After a set time, the creature gives birth visualized by a red cloud.

### Notes

* Offspring inherit stars from the parent (which gives the birth).
* Offspring are automatically tamed and require Butcher knife or friendly fire to kill.
* Offspring can't be interacted with (no renaming or commanding).
* Sleeping doesn't make breeding faster but will waste the food.
* Pregnancy timer is affected by sleeping or being away, but is short enough to get any real benefit from it.
* Offspring grow while sleeping or being away.
* Eggs can be kept warm by a heat source to hatch chickens, requiring an additional breeding step compared to the other 3 tamables.
* Maximum number of hens for consistent egg laying seems to be 8.
* An unlimited number of eggs can be hatched in an area by keeping them warm. The population limitation only applies to egg laying, where the sum of hens, chickens, and eggs is checked.
* The population limit for Hens, Chickens, and Eggs is inconsistent and numbers between 10 and 15 are possible.