{
	code: "chicken-baby",
	class: "EntityAgent",
	tags: ["animal", "huntable", "habitat-land"],
	weight: 0.1,
	hitboxSize: { x: 0.3, y: 0.2 },
	deadHitboxSize: { x: 0.4, y: 0.2 },
	eyeHeight: 0.15,
	
	fallDamageMultiplier: 0.75,
	attributes: {
		creatureDiet: {
			foodCategories: ["Grain"],
			weightedFoodTags: [
				{ weight: 0.9, code: "fruitmash" },
				{ weight: 1, code: "grain" }
			],
		},
		trappable: {
			"small": { trapChance: 0.8, trapDestroyChance: 0.0 }
		},
		handbook: {
			"groupcode": "creaturegroup-chicken"
		}
	},
	client: {
		renderer: "Shape",
		shape: { base: "entity/animal/bird/chicken/chicken-baby" },
		texture: { base: "entity/animal/bird/chicken/babychick1", alternates: [ { base: "entity/animal/bird/chicken/babychick2" }, { base: "entity/animal/bird/chicken/babychick3" }, { base: "entity/animal/bird/chicken/babychick4" }, { base: "entity/animal/bird/chicken/babychick5" }, { base: "entity/animal/bird/chicken/babychick6" }, { base: "entity/animal/bird/chicken/babychick7" }, { base: "entity/animal/bird/chicken/babychick8" } ] },
		sizeGrowthFactor: 0.3,
		behaviors: [
			{ code: "controlledphysics", stepHeight: 1.1251 }, 
			{ code: "floatupwhenstuck", onlyWhenDead: true },
			{ code: "interpolateposition" },
			{ code: "harvestable" },
			{ code: "despawn", minPlayerDistance: 8, belowLightLevel: 8, minSeconds: 300 }
		],
		animations: [
			{
				code: "hurt",
				animation: "hurt", 
				animationSpeed: 2.2,
				weight: 10,
				blendMode: "AddAverage" 
			},
			{
				code: "eat",
				animation: "eat", 
				animationSpeed: 1,
				weight: 4,
				easeOutSpeed: 8,
				easeInSpeed: 5,
				blendMode: "AddAverage" 
			},			
			{
				code: "die",
				animation: "death", 
				animationSpeed: 1.25,
				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: {
		attributes: {
			pathfinder: {
				minTurnAnglePerSec: 1440,
				maxTurnAnglePerSec: 2880
			}
		},
		behaviors: [
			{ code: "repulseagents" }, 
			{ code: "controlledphysics", stepHeight: 1.1251 },
			{ code: "despawn", minPlayerDistance: 8, belowLightLevel: 8, minSeconds: 300 },
			{ code: "health", currenthealth: 1.5, maxhealth: 1.5, },
			{ code: "deaddecay", hoursToDecay: 12 },
			{ code: "floatupwhenstuck", onlyWhenDead: true },
			{ code: "harvestable", drops: [
				
				],
			},
			{ 
				code: "grow",
				hoursToGrow: 128,
				adultEntityCodes: ["chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-henpoult", "chicken-roosterpoult"],
			},
			{ code: "breathe" },
			{
				code: "emotionstates",
				states: [
					{ code: "alarmherdondamage", chance: 1, slot: 1, priority: 1, accumType: "max" }
				],
			},
			{ 
				code: "taskai",
				aiCreatureType: "LandCreature",
				aitasks: [
					{
						code: "fleeentity",
						priority: 1.5,
						instafleeOnDamageChance: 1,
						seekingRange: 9,
						entityCodes: ["player", "wolf-*", "fox-*", "bear-*"],
						movespeed: 0.03,
						animationSpeed: 1.4,
						animation: "Run"
					},
					{
						code: "getoutofwater",
						priority: 1.4,
						movespeed: 0.015,
						animation: "Run"
					},
					{
						code: "seekfoodandeat",
						priority: 1.35,
						eatSound: "creature/animal-eat-small",
						eatTime: 1.5,
						movespeed: 0.0065,
						animation: "Walk",
						mincooldownHours: 1,
						maxcooldownHours: 4,
					},
					{
						code: "stayclosetoentity",
						priority: 1.3,
						entityCode: "chicken-hen",
						movespeed: 0.01,
						maxDistance: 2,
						searchRange: 12,
						animation: "Run"
					},
					{
						code: "stayclosetoentity",
						priority: 1.29,
						entityCode: "chicken-rooster",
						movespeed: 0.01,
						maxDistance: 2,
						searchRange: 12,
						animation: "Run"
					},
					{
						code: "idle",
						priority: 1.2,
						minduration: 2500,
						maxduration: 2500,
						mincooldown: 1000,
						maxcooldown: 10000,
						priorityForCancel: 1.28,
						animation: "Eat"
					},
					{
						code: "idle",
						priority: 1.1,
						minduration: 1000,
						maxduration: 3000,
						mincooldown: 2000,
						maxcooldown: 30000,
						animation: "Idle"
					},
					{
						code: "wander", 
						priority: 1.0, 
						movespeed: 0.003,
						animationSpeed: 1.2,
						animation: "Walk",
						executionChance: 0.02,
						preferredLightLevel: 19
					},
					{
						code: "idle",
						priority: 0.95,
						minduration: 5000000,
						maxduration: 5000000,
						mincooldown: 5000,
						maxcooldown: 15000,
						priorityForCancel: 1.33,
						animation: "Sleep",
						whenNotInEmotionState: "aggressiveondamage",
						duringDayTimeFrames: [ { fromHour: 20, toHour: 6 } ],
						stopOnNearbyEntityCodes: ["player", "wolf-*", "fox-*"],
						stopRange: 8,
						stopOnHurt: true
					},
					{
						code: "idle",
						priority: 0.9,
						minduration: 6000,
						maxduration: 40000,
						mincooldown: 2000,
						maxcooldown: 120000,
						priorityForCancel: 1.28,
						animation: "Sit"
					},
					{ 
						code: "lookaround", 
						priority: 0.5
					}
				]
			},
			{ code: "pettable", minGeneration: 0 },
			{ code: "entitystatetags" }
		]
	},
	sounds: {
		hurt: "creature/chicken/chick*",
		death: "creature/chicken/chick*",
		idle: { path: "creature/chicken/chick*", range: 14, pitch: { avg: 1, var: 0.25 } }
	},
	idleSoundChance: 1
}
