NPC · Core definition
Template Livestock
Abstract
Template_LivestockParameters75
Derived NPCs36
NPCs based on this definition
- Tamed Bison
- Tamed Bison Calf
- Tamed Boar
- Tamed Boar Piglet
- Tamed Bunny
- Tamed Camel
- Tamed Camel Calf
- Tamed Chicken
- Tamed Chicken Chick
- Tamed Chicken Desert
- Tamed Chicken Desert Chick
- Tamed Cow
- Tamed Cow Calf
- Tamed Goat
- Tamed Goat Kid
- Tamed Horse
- Tamed Horse Foal
- Tamed Mosshorn
- Tamed Mosshorn Plain
- Tamed Mouflon
- Tamed Mouflon Lamb
- Tamed Pig
- Tamed Pig Piglet
- Tamed Pig Wild
- Tamed Pig Wild Piglet
- Tamed Rabbit
- Tamed Ram
- Tamed Ram Lamb
- Tamed Sheep
- Tamed Sheep Lamb
- Tamed Skrill
- Tamed Skrill Chick
- Tamed Turkey
- Tamed Turkey Chick
- Tamed Warthog
- Tamed Warthog Piglet
Parameters
| Parameter | Value | Description |
|---|---|---|
Appearance | Deer_Stag | The NPC's model. |
ParticleOffset | [0,1,0] | The offset of any spawned particle systems. |
SeparationDistance | 1 | The separation distance between this and other NPCs. |
WanderRadius | 7 | The wander radius of the NPC. |
ViewRange | 16 | The view distance of the NPC, in blocks. |
ViewSector | 180 | The view sector of the NPC, in degrees. |
HearingRange | 8 | The hearing distance of the NPC, in blocks. |
SmellingRange | 4 | The smelling distance of the NPC, in blocks. Used to detect when an attractive item is being held nearby. |
AbsoluteDetectionRange | 4 | The range at which a target is guaranteed to be detected, in blocks. If set to zero, absolute detection will be disabled. The interval [ AbsoluteDetectionRange, AlertedActionRange ] defines the distance range within which an NPC can be befriended. |
AlertedRange | 18 | The range within which the target can be seen/sensed when the NPC is alerted to their presence, in blocks. Should be higher than sense ranges. |
AlertedActionRange | 6 | The range at which an NPC will react to other NPCs and players, depending on the attitude towards them, in blocks. Should be higher than AbsoluteDetectionRange to make the NPC befriendable. |
DropList | Empty | The NPC's drop list. |
FlockArray | [] | The set of NPCs belonging to this flock type |
ClimbHeight | 1 | The maximum climb height, in blocks. |
AttitudeGroup | Prey | The attitude group this NPC belongs to. |
PlayerDefaultAttitude | Revered | The default attitude towards the player. |
AlertedTimeoutGiveUp | [5,12] | The timeout after which an alerted NPC will give up on the target, in seconds. |
GrazingBlockSet | Grass | The type of block that this NPC will graze on top of. |
DayTimePeriod | [6.01,17.99] | The hour range considered to be daytime for this NPC (inclusive). Hours should be written with decimal fractions. |
DayTimeNapWeight | 2 | The weight used to determine if the NPC should have a short nap during the day. Set to 0 to disable. |
DayTimeNapTimeRange | [10,12] | The duration range of daytime naps, in seconds. |
DayFlavorAnimation | The flavor animation to play during the day. Ignored if null or empty. | |
AttractiveItemSet | ["Tool_Feedbag"] | The list of items that are deemed attractive (there's a chance targets holding them will be followed). |
FoodBlockSet | Livestock_Feeding | The type of block that this NPC will occasionally seek out to munch on. |
WeightFollowItem | 100 | The probability the NPC will follow an attractive item when held by a non-hostile target, in percent. |
FollowItemPreDelay | [1,2] | The time delay before an NPC starts following an item. |
FollowItemTimeoutEnabled | false | Whether the NPC will follow an attractive item with a timeout. If set to false, make sure FollowItemTimeout is properly configured. |
FollowItemTimeout | [20,40] | The duration of the follow item behaviour, after which the NPC will give up on the target. Requires FollowItemTimeoutEnabled to be set to true. |
FollowItemDistance | [2,2.5] | The minimum distance which the NPC will retain from a target holding an attractive item. |
GreetAnimation | Alerted | The flavor animation to play when greeting another NPC or player. Ignored if null or empty. |
GreetStateTimeout | [4,10] | The timeout after which an alerted NPC will give up on the target, in seconds. |
GreetTimeout | ["PT2H","PT12H"] | The timeout between consecutive greetings. |
IgnoreAttitudeOverride | 30 | The attitude override after an NPC gets angry at a player. |
EatTimeout | ["PT8H","PT12H"] | The timeout between consecutive meals. |
IsPettable | true | Whether players can pet the NPC. |
PetAnimation | Alerted | The animation the NPC will play when petted. |
PetRequiredAttitudes | ["Friendly","Revered"] | The attitude groups of players that can pet the NPC. |
FeedRequiredAttitudes | ["Friendly","Revered"] | The attitude groups of players that can feed the NPC by hand. |
PetTimeout | ["PT15M","PT15M"] | The timeout between consecutive pets. |
IsHarvestable | false | Whether this NPC can be 'harvested'. This includes shearing, milking, etc. |
HarvestInteractionContext | The interaction context of the harvest tool. If empty, no tool is needed to harvest the NPC. | |
HarvestInteractionRequiredItems | [] | The collection of items that enable the harvest interaction. |
HarvestRequiredAttitudes | ["Friendly","Revered","Ignore"] | The attitude groups of players that can harvest the NPC. |
HarvestDropList | The drop list that's executed when the NPC is harvested. | |
HarvestParticles | Alerted | The particle system that is spawned when the NPC is harvested. |
HarvestSound | SFX_Sheep_Sheared | The sound that plays when NPC is harvested. |
HarvestTimeout | ["P1D","P1D"] | The minimum time between consecutive harvests. Expressed in the ISO-8601 time period notation, where both values of the array must have the same prefix (either 'PT' or 'P'). |
HarvestModelSlot | The model attachment slot where the 'harvested' state is displayed. | |
HarvestModelAttachmentHarvestable | The attachment that should be rendered when the NPC can be harvested. | |
HarvestModelAttachmentHarvested | The attachment that should be rendered when the NPC was harvested and is in timeout. | |
HarvestAddItemBucket | Item to add when player holds Container_Bucket (e.g., milk bucket for milking). | |
HarvestAddItemDecoBucket | Item to add when player holds Deco_Bucket (e.g., milk bucket for milking). | |
ProduceItem | The item this NPC produces (poop, eggs, etc). | |
ProduceTimeout | ["PT6H","PT36H"] | The timeout between consecutive produces. |
DayFlavorAnimationLength | [3,5] | How long the daytime flavor animation will be played for, in seconds. |
AttackWhenStartled | false | Whether this NPC attacks when startled. |
Attack | The attack interaction this NPC will use. | |
AttackRange | 5 | The range at which the NPC can identify an attacker. |
MaxSpeed | 4 | The maximum walking speed of the NPC. |
MaxHealth | 100 | The maximum health of the NPC. |
MaxRotationSpeed | 360 | The maximum rotation speed, in degrees per second. |
RunThreshold | 0.5 | The speed ratio at which the NPC switches to run animation (e.g if MaxSpeed is 10, and RunThreshold is set to 0.55, the NPC will start running at speed 5.5). |
DeathParticles | Effect_Death | The particle system that spawns when the NPC's corpse disappears. |
DropDeathItemsInstantly | false | Whether the NPC's drop list should be executed when the NPC dies. If set to false, items drop when the corpse disappears. |
DeathAnimationTime | 2 | The time it takes for this NPC's corpse to disappear. |
IsMemory | false | Whether the NPC is a memory. |
MemoriesCategory | Livestock | The category of the memory. |
MemoriesNameOverride | If set, overrides the memory name. | |
IsMountable | false | Whether this NPC can be mounted. |
MountAnchorX | 0 | — |
MountAnchorY | 0 | — |
MountAnchorZ | 0 | — |
MountMovementConfig | Mount | — |
BreathesInWater | false | Whether this NPC can breathe underwater. |
NameTranslationKey | server.npcRoles.Template.name | The translation key for the NPC name display |
Identifiers and data source
| Entity id | Template_Livestock |
|---|---|
| Name key | — |
| Source file | Server/NPC/Roles/_Core/Templates/Template_Livestock.json |
| Component class | — |
Data source: HytaleDB snapshot 0.6.8-80059944 (Hytale 0.6.8), locale en-US. See data details.