diff --git a/mods/ENTITIES/mobs_mc/init.lua b/mods/ENTITIES/mobs_mc/init.lua index 13cec9ac4..878e80602 100644 --- a/mods/ENTITIES/mobs_mc/init.lua +++ b/mods/ENTITIES/mobs_mc/init.lua @@ -161,3 +161,5 @@ dofile(path .. "/turtle.lua") dofile(path .. "/bee.lua") dofile(path .. "/fox.lua") + +dofile(path .. "/phantom.lua") diff --git a/mods/ENTITIES/mobs_mc/models/mobs_mc_phantom.b3d b/mods/ENTITIES/mobs_mc/models/mobs_mc_phantom.b3d new file mode 100644 index 000000000..b8f40ea51 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/models/mobs_mc_phantom.b3d differ diff --git a/mods/ENTITIES/mobs_mc/phantom.lua b/mods/ENTITIES/mobs_mc/phantom.lua new file mode 100644 index 000000000..b73e61aa7 --- /dev/null +++ b/mods/ENTITIES/mobs_mc/phantom.lua @@ -0,0 +1,62 @@ +--Phantom for mcl2 +--cora +--License for code WTFPL, cc0 + +local S = minetest.get_translator("mobs_mc") + +mcl_mobs:register_mob("mobs_mc:phantom", { + description = S("Phantom"), + type = "monster", + spawn_class = "passive", + pathfinding = 1, + hp_min = 6, + hp_max = 6, + xp_min = 1, + xp_max = 3, + collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25}, + visual = "mesh", + mesh = "mobs_mc_phantom.b3d", + textures = {{"mobs_mc_phantom.png","mobs_mc_phantom_e.png","mobs_mc_phantom_e_s.png"}}, + visual_size = {x=3, y=3}, + walk_velocity = 3, + run_velocity = 5, + desired_altitude = 19, + keep_flying = true, + sounds = { + random = "mobs_mc_phantom_random", + damage = {name="mobs_mc_phantom_hurt", gain=0.3}, + death = {name="mobs_mc_phantom_death", gain=0.6}, + eat = "mobs_mc_animal_eat_generic", + distance = 16, + }, + drops = { + {name = "mcl_mobitems:leather", --TODO: phantom membrane + chance = 1, + min = 1, + max = 2, + looting = "common",}, + }, + animation = { + stand_speed = 50, + walk_speed = 50, + fly_speed = 50, + stand_start = 0, + stand_end = 0, + fly_start = 0, + fly_end = 30, + walk_start = 0, + walk_end = 30, + }, + fall_damage = 0, + fall_speed = -2.25, + attack_type = "dogfight", + floats = 1, + physical = true, + fly = true, + makes_footstep_sound = false, + fear_height = 0, + view_range = 16, +}) + +-- spawn eggs +mcl_mobs:register_egg("mobs_mc:phantom", S("Phantom"), "mobs_mc_spawn_icon_phantom.png", 0) diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom.png new file mode 100644 index 000000000..4478dbcdb Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_e.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_e.png new file mode 100644 index 000000000..504750d87 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_e.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_e_s.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_e_s.png new file mode 100644 index 000000000..67a84612a Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_e_s.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_eyes.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_eyes.png new file mode 100644 index 000000000..91576c6ce Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_eyes.png differ diff --git a/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_eyes_s.png b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_eyes_s.png new file mode 100644 index 000000000..3157e13f5 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/textures/mobs_mc_phantom_eyes_s.png differ