diff --git a/mods/mobs_mc/blaze.lua b/mods/mobs_mc/blaze.lua new file mode 100644 index 000000000..2544e4e9e --- /dev/null +++ b/mods/mobs_mc/blaze.lua @@ -0,0 +1,80 @@ +-- daufinsyd +-- My work is under the LGPL terms +-- Model and mobs_blaze.png see https://github.com/22i/minecraft-voxel-blender-models +-- blaze.lua partial copy of mobs_mc/ghast.lua + + + +--dofile(minetest.get_modpath("mobs").."/api.lua") + + + +mobs:register_mob("mobs_mc:blaze", { + type = "monster", + hp_min = 20, + hp_max = 20, + collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, + textures = { + {"mobs_blaze.png"} + }, + visual = "mesh", + mesh = "mobs_blaze.b3d", + makes_footstep_sound = true, + sounds = { + random = "blaze_breath", + death = "blaze_died", + damage = "blaze_hurt1", + attack = "default_punch3", + }, + walk_velocity = .8, + run_velocity = 1.6, + damage = 2.5, + pathfinding = true, + group_attack = true, + armor = 80, + drops = { + {name = "mcl_mobitems:blaze_rod", + chance = 1, + min = 0, + max = 1,}, + }, + animation = { + stand_start = 1, + stand_end = 40, + walk_start = 1, + walk_end = 40, + run_start = 1, + run_end = 40, + shoot_start = 1, + shoot_end = 40, + }, + drawtype = "front", + water_damage = 10, + lava_damage = 0, + fall_damage = 0, + light_damage = 0, + view_range = 16, + attack_type = "shoot", + arrow = "mobs_monster:fireball", + shoot_interval = 3.5, + passive = false, + jump = true, + jump_height = 4, + floats = 1, + fly = true, + jump_chance = 98, + fear_height = 120, +}) + +mobs:register_spawn("mobs_mc:blaze", {"mcl_core:flowing_lava", "nether:rack","air"}, 30, -1, 5000, 1, -2000) + +-- compatibility +mobs:alias_mob("mobs:blaze", "mobs_mc:blaze") + +-- spawn eggs +mobs:register_egg("mobs_mc:blaze", "Spawn Blaze", "spawn_egg_blaze.png") + + +if minetest.setting_get("log_mods") then + minetest.log("action", "MC Blaze loaded") +end diff --git a/mods/mobs_mc/init.lua b/mods/mobs_mc/init.lua index 931a5cd0d..6bb5d6f96 100644 --- a/mods/mobs_mc/init.lua +++ b/mods/mobs_mc/init.lua @@ -28,4 +28,6 @@ dofile(path .. "/spider.lua") -- Spider by AspireMint (fishyWET (CC-BY-SA 3.0 li dofile(path .. "/enderman.lua") -- maikerumine dofile(path .. "/ghast.lua") -- maikerumine +dofile(path .. "/blaze.lua") -- Animation by daufinsyd + print ("[MOD] Mobs Redo 'MC' loaded") diff --git a/mods/mobs_mc/models/mobs_blaze.b3d b/mods/mobs_mc/models/mobs_blaze.b3d new file mode 100644 index 000000000..b25118611 Binary files /dev/null and b/mods/mobs_mc/models/mobs_blaze.b3d differ diff --git a/mods/mobs_mc/sounds/blaze_breath.ogg b/mods/mobs_mc/sounds/blaze_breath.ogg new file mode 100644 index 000000000..10f395537 Binary files /dev/null and b/mods/mobs_mc/sounds/blaze_breath.ogg differ diff --git a/mods/mobs_mc/sounds/blaze_died.ogg b/mods/mobs_mc/sounds/blaze_died.ogg new file mode 100644 index 000000000..39ba86cd3 Binary files /dev/null and b/mods/mobs_mc/sounds/blaze_died.ogg differ diff --git a/mods/mobs_mc/sounds/blaze_hurt1.ogg b/mods/mobs_mc/sounds/blaze_hurt1.ogg new file mode 100644 index 000000000..0ee4ec53a Binary files /dev/null and b/mods/mobs_mc/sounds/blaze_hurt1.ogg differ diff --git a/mods/mobs_mc/textures/mobs_blaze.png b/mods/mobs_mc/textures/mobs_blaze.png new file mode 100644 index 000000000..6a0c2e93d Binary files /dev/null and b/mods/mobs_mc/textures/mobs_blaze.png differ diff --git a/mods/mobs_mc/textures/spawn_egg_blaze.png b/mods/mobs_mc/textures/spawn_egg_blaze.png new file mode 100644 index 000000000..7979a5488 Binary files /dev/null and b/mods/mobs_mc/textures/spawn_egg_blaze.png differ