3 --made for MC like Survival game
4 --License for code WTFPL and otherwise stated in readmes
7 local MP
= minetest
.get_modpath(minetest
.get_current_modname())
8 local S
, NS
= dofile(MP
.."/intllib.lua")
10 -- TODO: Turn villagers to zombie villager
13 --################### ZOMBIE VILLAGER
17 mobs
:register_mob("mobs_mc:villager_zombie", {
22 collisionbox
= {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
24 mesh
= "mobs_mc_villager_zombie.b3d",
26 {"mobs_mc_zombie_butcher.png"},
27 {"mobs_mc_zombie_farmer.png"},
28 {"mobs_mc_zombie_librarian.png"},
29 {"mobs_mc_zombie_priest.png"},
30 {"mobs_mc_zombie_smith.png"},
31 {"mobs_mc_zombie_villager.png"}
33 visual_size
= {x
=3, y
=3},
34 makes_footstep_sound
= true,
39 attack_type
= "dogfight",
42 {name
= mobs_mc
.items
.rotten_flesh
,
46 {name
= mobs_mc
.items
.iron_ingot
,
47 chance
= 120, -- 2.5% / 3
50 {name
= mobs_mc
.items
.carrot
,
51 chance
= 120, -- 2.5% / 3
54 {name
= mobs_mc
.items
.potato
,
55 chance
= 120, -- 2.5% / 3
60 random = "mobs_mc_zombie_idle",
61 war_cry
= "mobs_mc_zombie_idle",
62 death
= "mobs_mc_zombie_death",
63 damage
= "mobs_mc_zombie_hurt",
84 mobs
:spawn_specific("mobs_mc:villager_zombie", mobs_mc
.spawn
.village
, {"air"}, 0, 7, 30, 4090, 4, mobs_mc
.spawn_height
.water
+1, mobs_mc
.spawn_height
.overworld_max
)
87 mobs
:register_egg("mobs_mc:villager_zombie", S("Zombie Villager"), "mobs_mc_spawn_icon_zombie_villager.png", 0)
89 if minetest
.settings
:get_bool("log_mods") then
90 minetest
.log("action", "MC mobs Zombie Villager loaded")