
-- SOUND :
-- https://freesound.org/people/Volvion/sounds/609780/

mobs:register_mob("crazymushroom:crazymushroom", {
	
	--stay_near = {"ethereal:mushroom_dirt", 10},
	nametag = "Crazy Mushroom Boss" ,
	type = "monster",
	passive = false,
	attack_npcs = false,
	attack_type = "dogfight",
	pathfinding = true,
	reach = 8,
	damage = 17,
	hp_min = 1200,
	hp_max = 1200,
	armor = 80,
	collisionbox = {-0.7, -1.72, -0.7, 0.7, 1.4, 0.7},
	visual = "mesh",
	mesh = "crazymushrrom.b3d",
	rotate = 180,
	textures = {
		{"crazymushrrom.png"},
	},
	--glow = 2,
	blood_texture = "ethereal_mushroom_sapling.png",
	makes_footstep_sound = true,
	sounds = {
		random = "crazyman",
		--attack = " ",
		--death = "",
	},
	
	walk_velocity = 2,
	run_velocity = 4,
	jump_height = 5,
	stepheight = 3.0,
	floats = 0,
	view_range = 35,
	drops = {
		{name = "ebitems:glove_glove", chance = 1, min = 1, max = 1},
		{name = "ebitems:crazymushrrom_trophy", chance = 1, min = 1, max = 1},
		--{name = "", chance = 2, min = 1, max = 2},
		
	},
	water_damage = 0,
	lava_damage = 1,
	light_damage = 0,
	animation = {
		speed_normal = 20,
		speed_run = 20,
		stand_start = 0,
		stand_end = 0,
		walk_start = 20,
		walk_end = 60,
		run_start = 70,
		run_end = 90,
		punch_start = 100,
		punch_end = 120,
	},
	
	
	
})


mobs:spawn({
	name = "crazymushroom:crazymushroom",
	nodes = {"ethereal:mushroom_dirt","ethereal:mushroom"},
	max_light = 7,
	chance = 12000,
	max_height = 200,
	min_height = 0,
})


mobs:register_egg("crazymushroom:crazymushroom", "crazymushroom", "ethereal_mushroom_block.png", 1)
core.register_alias("crazymushroom:crazymushroom", "spawneggs:crazymushroom")
mobs:alias_mob("crazymushroom:crazymushroom", "mobs:crazymushroom") -- compatibility


