{
	code: "wolf",
	class: "EntityAgent",
	tags: ["animal", "huntable", "predator", "ferocious", "habitat-land"],
	weight: 2,
	variantgroups:  [ 
		{ code: "type", states: ["eurasian"]},
		{ code: "age", states: ["baby"] },
		{ code: "gender", states: ["male", "female"] },
	] ,
	hitboxSize: { x: 0.85, y: 0.5 },
	deadHitboxSize: { x: 0.75, y: 0.4 },
	eyeHeight: 0.4,
	attributes: {
		creatureDiet: {
			weightedFoodTags: [
				{ weight: 0.9, code: "meat" },
				{ weight: 1, code: "egg" }
			]
		},
		trappable: {
			"small": { trapChance: 0.4,	trapDestroyChance: 0.05 }
		},
		handbook: {
			groupcode: "creaturegroup-wolf",
			trappableGroupCode: "creaturegroup-wolf-{type}-{age}"
		}
	},
	drops: [
		
	],
	client: {
		renderer: "Shape",
		shape: { base: "entity/animal/mammal/wolf/eurasian-baby" },
		texture: { base: "entity/animal/mammal/wolf/eurasian-baby*" },
		size: 0.9,
		sizeGrowthFactor: 0.2,
		behaviors: [
			{ code: "repulseagents" }, 
			{ code: "controlledphysics", stepHeight: 1.1251 }, 
			{ code: "floatupwhenstuck", onlyWhenDead: true },
			{ code: "interpolateposition" },
			{ code: "harvestable" },
			{ code: "despawn", minPlayerDistance: 16, belowLightLevel: 8, minSeconds: 300, afterDays: 14 },
			{ code: "ropetieable", minGeneration: 2 }
		],
		animations: [
			{
				code: "hurt",
				animation: "hurt", 
				animationSpeed: 2.2,
				weight: 10,
				blendMode: "AddAverage" 
			},
			{
				code: "die",
				animation: "die", 
				animationSpeed: 1.5,
				weight: 10,
				blendMode: "Average",
				triggeredBy: { onControls: ["dead"] }
			},
			{ 
				code: "idle", 
				animation: "idle",
				blendMode: "AddAverage",
				easeOutSpeed: 4,
				triggeredBy: { defaultAnim: true },
			},
			{
				code: "sleep", 
				animation: "sleep",
				easeInSpeed: 4,
				easeOutSpeed: 4,
				blendMode: "Average", 
			},
			{
				code: "sit", 
				animation: "sit",
				easeInSpeed: 4,
				easeOutSpeed: 4,
				blendMode: "Average", 
			}
		]
	},
	server: {
		behaviors: [
			{ code: "repulseagents" }, 
			{ code: "controlledphysics", stepHeight: 1.1251 },
			{ code: "despawn", minPlayerDistance: 8, belowLightLevel: 8, minSeconds: 300 },
			{ code: "health", currenthealth: 5, maxhealth: 5 },
			{ code: "deaddecay", hoursToDecay: 96, decayedBlock: "carcass-small" },
			{ code: "floatupwhenstuck", onlyWhenDead: true },
			{ code: "harvestable", drops: [
					{
						type: "item", 
						code: "bushmeat-raw", 
						quantity: { avg: 2, var: 1 } 
					},
					{
						type: "item", 
						code: "hide-raw-small", 
						quantity: { avg: 1, var: 0 } 
					}
				],
			},
			{ code: "breathe" },
			{ 
				code: "emotionstates",
				states: [
					{ code: "alarmherdondamage", chance: 1, slot: 1, priority: 1, accumType: "max" }
				],
			},
			{ 
				code: "grow",
				hoursToGrow: 336,
				adultEntityCodes: ["wolf-{type}-adult-{gender}"]
			},
			{ 
				code: "taskai",
				aiCreatureType: "LandCreature",
				aitasks: [
					{
						code: "fleeentity",
						instafleeOnDamageChance: 1,
						entityCodes: ["player"],
						priority: 1.5,
						movespeed: 0.02,
						animationSpeed: 4,
						seekingRange: 8,
						animation: "Run",
						sound: "creature/wolf/pup-bark"
					},
					{
						code: "followleadholder",
						minGeneration: 2,
						priority: 1.47,
						animation: "walk",
						animationSpeed: 1.5,
						movespeed: 0.015
					},
					{
						code: "getoutofwater",
						priority: 1.45,
						movespeed: 0.015,
						animation: "Walk",
						animationSpeed: 2.2
					},
					{
						code: "stayclosetoentity",
						priority: 1.4,
						entityCode: "wolf-eurasian-adult-female",
						movespeed: 0.02,
						animationSpeed: 4,
						maxDistance: 5,
						searchRange: 25,
						animation: "Run"
					},
					{
						code: "idle",
						priority: 1.35,
						priorityForCancel: 1.35,
						minduration: 200000,
						maxduration: 800000,
						mincooldown: 10000,
						maxcooldown: 30000,
						animation: "Sleep",
						whenNotInEmotionState: "aggressiveondamage",
						duringDayTimeFrames: [ { fromHour: 10, toHour: 18 }, { fromHour: 1, toHour: 3 } ],
						stopOnNearbyEntityCodes: ["player"],
						stopRange: 6,
						stopOnHurt: true
					},
					{
						code: "seekfoodandeat",
						movespeed: 0.006,
						priority: 1.3,
						eatItemCategories: ["protein"],
						eatSound: "creature/animal-eat-small",
						eatTime: 1.5,
						animation: "Walk",
						mincooldownHours: 1,
						maxcooldownHours: 4
					},
					{
						code: "idle",
						priority: 1.25,
						priorityForCancel: 1.35,
						minduration: 2500,
						maxduration: 2500,
						mincooldown: 10000,
						maxcooldown: 50000,
						animation: "Sniff",
						animationSpeed: 0.8,
					},
					{
						code: "idle",
						priority: 1.31,
						priorityForCancel: 1.35,
						minduration: 1500,
						maxduration: 1500,
						mincooldown: 50000,
						maxcooldown: 300000,
						animation: "Howl",
						animationSpeed: 0.8,
						sound: "creature/wolf/pup-howl*"
					},
					{
						code: "idle",
						priority: 1.32,
						priorityForCancel: 1.35,
						minduration: 2830,
						maxduration: 2830,
						mincooldown: 80000,
						maxcooldown: 200000,
						animation: "Flop",
						sound: "creature/wolf/pup-flop"
					},
					{
						code: "wander", 
						priority: 1.0, 
						priorityForCancel: 1.35,
						movespeed: 0.004,
						animationSpeed: 2,
						animation: "Walk",
						preferredLightLevel: 18
					},
					{
						code: "idle",
						priority: 0.9,
						minduration: 5000,
						maxduration: 30000,
						mincooldown: 2000,
						maxcooldown: 120000,
						priorityForCancel: 1.35,
						animation: "Sit"
					},
					{ 
						code: "lookaround", 
						priority: 0.5
					}
				]
			},
			{ code: "ropetieable", minGeneration: 2 },
			{ code: "pettable", minGeneration: 0 },
			{ code: "entitystatetags" }
		]
	},
	sounds: {
		hurt: "creature/wolf/pup-hurt",
		death: "creature/wolf/pup-hurt",
		idle: { path: "creature/wolf/pup-bark", pitch: { avg: 1, var: 0.25 } }
	},
	idleSoundChance: 0.01
}
