Horse Domestication (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.10
Syntax
[the] [max[imum]] domestication level of %livingentities%Description
Gets and/or sets the (max) domestication of a horse. The domestication of a horse is how close a horse is to becoming tame - the higher the domestication, the closer they are to becoming tame (must be between 1 and the max domestication level of the horse). The max domestication of a horse is how long it will take for a horse to become tame (must be greater than 0).
Examples
function domesticateAndTame(horse: entity, p: offline player, i: int = 10):
add {_i} to domestication level of {_horse}
if domestication level of {_horse} >= max domestication level of {_horse}:
tame {_horse}
set tamer of {_horse} to {_p}