----BLINKY---
mobs:register_mob("ghost:Blinky", {
type = "monster",
	hp_max = 5,
	stepheight = 0,
	pathfinding = true,
	visual_size = {x=8, y=6},
	collisionbox =  {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
	visual = "mesh",
	mesh = "main_ghost.b3d",
	textures = {
		{"ghost_blinky.png"},
	},
	view_range = 10000,
	walk_velocity = 2,
	run_velocity = 2,
	damage = 10,
	drops = {},
	armor = 200,
	drawtype = "front",
	water_damage = 0,
	lava_damage = 1,
	light_damage = 0,
	jump = false,
	suffocation = 2,
	reach = 1,
	fear_height = 10,
	walk_chance = 100,
	stand_chance = 0,
	attack_chance = 5,
	blood_amount = 0,
	randomly_turn = true,
	passive = false,
	group_attack = false,
	attack_type = "dogfight",
	nametag = "BLINKY",
})
mobs:register_spawn("ghost:Blinky", {"basic:spawn"}, 20, -1, 14000, 1, -64)

mobs:register_egg("ghost:Blinky", "Blinky", "Blinky_back.png", 3)

----PINKY---
mobs:register_mob("ghost:Pinky", {
type = "monster",
	hp_max = 5,
	stepheight = 0,
	pathfinding = true,
	visual_size = {x=8, y=6},
	collisionbox =  {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
	visual = "mesh",
	mesh = "main_ghost.b3d",
	textures = {
		{"ghost_pinky.png"},
	},
	view_range = 10000,
	walk_velocity = 2,
	run_velocity = 2,
	damage = 10,
	drops = {},
	armor = 200,
	drawtype = "front",
	water_damage = 0,
	lava_damage = 1,
	light_damage = 0,
	jump = false,
	suffocation = 2,
	reach = 1,
	fear_height = 10,
	walk_chance = 100,
	stand_chance = 0,
	attack_chance = 5,
	blood_amount = 0,
	randomly_turn = true,
	passive = false,
	group_attack = false,
	attack_type = "dogfight",
	nametag = "PINKY",
})
mobs:register_spawn("ghost:Pinky", {"basic:spawn"}, 20, -1, 14000, 1, -64)

mobs:register_egg("ghost:Pinky", "Pinky", "Pinky_back.png", 3)

-------------INKY--------------------------------------
mobs:register_mob("ghost:Inky", {
type = "monster",
	hp_max = 5,
	stepheight = 0,
	pathfinding = true,
	visual_size = {x=8, y=6},
	collisionbox =  {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
	visual = "mesh",
	mesh = "main_ghost.b3d",
	textures = {
		{"ghost_inky.png"},
	},
	view_range = 10000,
	walk_velocity = 2,
	run_velocity = 2,
	damage = 10,
	drops = {},
	armor = 200,
	drawtype = "front",
	water_damage = 0,
	lava_damage = 1,
	light_damage = 0,
	jump = false,
	suffocation = 2,
	reach = 1,
	fear_height = 10,
	walk_chance = 100,
	stand_chance = 0,
	attack_chance = 5,
	blood_amount = 0,
	randomly_turn = true,
	passive = false,
	group_attack = false,
	attack_type = "dogfight",
	nametag = "INKY",
})
mobs:register_spawn("ghost:Inky", {"basic:spawn"}, 20, -1, 14000, 1, -64)

mobs:register_egg("ghost:Inky", "Inky", "Inky_back.png", 3)

---------CLYDE------------------------------
mobs:register_mob("ghost:Clyed", {
	type = "monster",
	hp_max = 5,
	stepheight = 0,
	pathfinding = true,
	visual_size = {x=8, y=6},
	collisionbox =  {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
	visual = "mesh",
	mesh = "main_ghost.b3d",
	textures = {
		{"ghost_clyde.png"},
	},
	view_range = 10000,
	walk_velocity = 2,
	run_velocity = 2,
	damage = 10,
	drops = {},
	armor = 200,
	drawtype = "front",
	water_damage = 0,
	lava_damage = 1,
	light_damage = 0,
	jump = false,
        suffocation = 2,
	reach = 1,
        fear_height = 10,
	walk_chance = 100,
	stand_chance = 0,
	attack_chance = 5,
	blood_amount = 0,
	randomly_turn = true,
 	passive = false,
	group_attack = false,
	attack_type = "dogfight",
	nametag = "CLYDE",
})

mobs:register_spawn("ghost:Clyed", {"basic:spawn"}, 20, -1, 14000, 1, -64)

mobs:register_egg("ghost:Clyed", "Clyed", "Clyde_back.png", 3)

---------------------------testing---------------------------
mobs:register_mob("ghost:scared", {
	type = "animal",
	hp_max = 2,
	sounds = {},
	lifetimer = 120, -- 2 minutes
	collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4},
	stepheight = 1.1,

	textures = {"scared_front.png", "scared_back.png"},
	visual_size = {x=2, y=2},
	view_range = 1000,
	walk_velocity = 1,
	run_velocity = 3,
	damage = 1,
	drops = {},
	armor = 100,
	drawtype = "front",
	water_damage = 1,
	lava_damage = 1,
	light_damage = 0,
	runaway_from = "player",
	attack_type = "dogfight",
})

mobs:register_spawn("ghost:scared", {"basic:spawn"}, 20, -1, 14000, 1, -64)

mobs:register_egg("ghost:scared", "scared", "scared_back.png", 3)

-------------------------------test-----------------------------------

mobs:register_mob("ghost:test", {
	type = "monster",
	passive = false,
	attack_type = "dogfight",
	pathfinding = true,
	reach = 1,
	damage = 10,
	hp_max = 5,
	visual_size = {x=8, y=6},
	collisionbox =  {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
	visual = "mesh",
	mesh = "main_ghost.b3d",
	textures = {
		{"ghost_blinky.png"},
		{"ghost_pinky.png"},
		{"ghost_inky.png"},
		{"ghost_clyde.png"},
	},
	walk_velocity = 1,
	run_velocity = 2,
	view_range = 100,
	jump = flase,
	water_damage = 0,
	lava_damage = 4,
	light_damage = 0,
	fear_height = 5,
	animation = {
		stand_start = 0,
		stand_end = 40,
		walk_start = 0,
		walk_end = 40,
		run_start = 0,
		run_end = 40,
		punch_start = 0,
		punch_end = 40,
		speed_normal = 0,
		speed_run = 0,
	},
})

mobs:register_egg("ghost:test", "test", "Blinky_front.png", 3)

