Template Livestock

NPC · Core definition

Template Livestock

AbstractTemplate_Livestock
Parameters75
Derived NPCs36

NPCs based on this definition

Parameters

ParameterValueDescription
AppearanceDeer_StagThe NPC's model.
ParticleOffset[0,1,0]The offset of any spawned particle systems.
SeparationDistance1The separation distance between this and other NPCs.
WanderRadius7The wander radius of the NPC.
ViewRange16The view distance of the NPC, in blocks.
ViewSector180The view sector of the NPC, in degrees.
HearingRange8The hearing distance of the NPC, in blocks.
SmellingRange4The smelling distance of the NPC, in blocks. Used to detect when an attractive item is being held nearby.
AbsoluteDetectionRange4The 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.
AlertedRange18The 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.
AlertedActionRange6The 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.
DropListEmptyThe NPC's drop list.
FlockArray[]The set of NPCs belonging to this flock type
ClimbHeight1The maximum climb height, in blocks.
AttitudeGroupPreyThe attitude group this NPC belongs to.
PlayerDefaultAttitudeReveredThe default attitude towards the player.
AlertedTimeoutGiveUp[5,12]The timeout after which an alerted NPC will give up on the target, in seconds.
GrazingBlockSetGrassThe 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.
DayTimeNapWeight2The 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.
DayFlavorAnimationThe 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).
FoodBlockSetLivestock_FeedingThe type of block that this NPC will occasionally seek out to munch on.
WeightFollowItem100The 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.
FollowItemTimeoutEnabledfalseWhether 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.
GreetAnimationAlertedThe 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.
IgnoreAttitudeOverride30The attitude override after an NPC gets angry at a player.
EatTimeout["PT8H","PT12H"]The timeout between consecutive meals.
IsPettabletrueWhether players can pet the NPC.
PetAnimationAlertedThe 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.
IsHarvestablefalseWhether this NPC can be 'harvested'. This includes shearing, milking, etc.
HarvestInteractionContextThe 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.
HarvestDropListThe drop list that's executed when the NPC is harvested.
HarvestParticlesAlertedThe particle system that is spawned when the NPC is harvested.
HarvestSoundSFX_Sheep_ShearedThe 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').
HarvestModelSlotThe model attachment slot where the 'harvested' state is displayed.
HarvestModelAttachmentHarvestableThe attachment that should be rendered when the NPC can be harvested.
HarvestModelAttachmentHarvestedThe attachment that should be rendered when the NPC was harvested and is in timeout.
HarvestAddItemBucketItem to add when player holds Container_Bucket (e.g., milk bucket for milking).
HarvestAddItemDecoBucketItem to add when player holds Deco_Bucket (e.g., milk bucket for milking).
ProduceItemThe 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.
AttackWhenStartledfalseWhether this NPC attacks when startled.
AttackThe attack interaction this NPC will use.
AttackRange5The range at which the NPC can identify an attacker.
MaxSpeed4The maximum walking speed of the NPC.
MaxHealth100The maximum health of the NPC.
MaxRotationSpeed360The maximum rotation speed, in degrees per second.
RunThreshold0.5The 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).
DeathParticlesEffect_DeathThe particle system that spawns when the NPC's corpse disappears.
DropDeathItemsInstantlyfalseWhether the NPC's drop list should be executed when the NPC dies. If set to false, items drop when the corpse disappears.
DeathAnimationTime2The time it takes for this NPC's corpse to disappear.
IsMemoryfalseWhether the NPC is a memory.
MemoriesCategoryLivestockThe category of the memory.
MemoriesNameOverrideIf set, overrides the memory name.
IsMountablefalseWhether this NPC can be mounted.
MountAnchorX0—
MountAnchorY0—
MountAnchorZ0—
MountMovementConfigMount—
BreathesInWaterfalseWhether this NPC can breathe underwater.
NameTranslationKeyserver.npcRoles.Template.nameThe translation key for the NPC name display
Identifiers and data source
Entity idTemplate_Livestock
Name key—
Source fileServer/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.