Merge pull request #57 from Wuzzy2/bigbob

Major basic mob definition update
This commit is contained in:
maikerumine 2017-06-30 13:48:55 -04:00 committed by GitHub
commit daa91f7962
46 changed files with 322 additions and 381 deletions

View File

@ -75,6 +75,7 @@ mobs_mc.items = {
emerald = "default:diamond",
iron_axe = "default:axe_steel",
gold_sword = "default:sword_mese",
gold_ingot = "default:gold_ingot",
gold_nugget = "default:gold_lump",
glowstone_dust = "default:mese_crystal_fragment",
redstone = "default:mese_crystal_fragment",

View File

@ -20,7 +20,7 @@ mobs:register_mob("mobs_mc:bat", {
run_velocity = 6.0,
-- TODO: Hang upside down
animation = {
speed_normal = 80, speed_run = 80,
walk_speed = 80, stand_speed = 80, run_speed = 80,
stand_start = 0, stand_end = 40,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,

View File

@ -15,26 +15,24 @@ mobs:register_mob("mobs_mc:blaze", {
type = "monster",
hp_min = 20,
hp_max = 20,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
rotate = -180,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.79, 0.3},
rotate = -180,
visual = "mesh",
mesh = "mobs_mc_blaze.b3d",
textures = {
{"mobs_mc_blaze.png"},
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
sounds = {
random = "blaze_breath",
death = "blaze_died",
damage = "blaze_hurt1",
attack = "default_punch3",
distance = 16,
},
walk_velocity = .8,
run_velocity = 1.6,
damage = 6,
pathfinding = 1,
group_attack = true,
drops = {
{name = mobs_mc.items.blaze_rod,
chance = 1,
@ -48,26 +46,25 @@ mobs:register_mob("mobs_mc:blaze", {
walk_end = 40,
run_start = 1,
run_end = 40,
shoot_start = 1,
shoot_end = 40,
shoot_start = 1,
shoot_end = 40,
},
drawtype = "front",
-- MC Wiki: 1 damage every half second
-- MC Wiki: takes 1 damage every half second while in water
water_damage = 2,
lava_damage = 0,
fall_damage = 0,
light_damage = 0,
view_range = 16,
attack_type = "shoot",
arrow = "mobs_mc:blaze_fireball",
shoot_interval = 3.5,
passive = false,
jump = true,
attack_type = "dogshoot",
arrow = "mobs_mc:blaze_fireball",
shoot_interval = 3.5,
passive = false,
jump = true,
jump_height = 4,
floats = 1,
fly = true,
jump_chance = 98,
fear_height = 120,
fly = true,
jump_chance = 98,
fear_height = 120,
blood_amount = 0,
})
mobs:register_spawn("mobs_mc:blaze", mobs_mc.spawn.nether_fortress, minetest.LIGHT_MAX+1, 0, 5000, 1, -1000, true)

View File

@ -37,7 +37,6 @@ mobs:register_mob("mobs_mc:chicken", {
min = 0,
max = 2,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
@ -45,9 +44,10 @@ mobs:register_mob("mobs_mc:chicken", {
random = "mobs_chicken",
death = "Chickenhurt1", -- TODO: replace
damage = "Chickenhurt1", -- TODO: replace
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
@ -55,6 +55,7 @@ mobs:register_mob("mobs_mc:chicken", {
follow = mobs_mc.follow.chicken,
view_range = 16,
fear_height = 4,
on_rightclick = function(self, clicker)

View File

@ -23,19 +23,18 @@ local cow_def = {
min = 0,
max = 2,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
fear_height = 3,
runaway = true,
sounds = {
random = "Cow1",
death = "Cowhurt1",
damage = "Cowhurt1",
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
@ -62,7 +61,7 @@ local cow_def = {
end,
follow = mobs_mc.items.wheat,
view_range = 10,
fear_height = 2,
fear_height = 4,
}
mobs:register_mob("mobs_mc:cow", cow_def)

View File

@ -30,6 +30,7 @@ mobs:register_mob("mobs_mc:creeper", {
damage = "Creeper4", -- TODO: Replce
war_cry = "tnt_ignite",
explode = "tnt_explode",
distance = 16,
},
makes_footstep_sound = true,
walk_velocity = 1.5,
@ -158,12 +159,13 @@ mobs:register_mob("mobs_mc:creeper", {
look_start = 50,
look_end = 108,
},
drawtype = "front",
floats = 1,
fear_height = 4,
water_damage = 1,
lava_damage = 5,
lava_damage = 4,
light_damage = 0,
view_range = 16,
blood_amount = 0,
})

View File

@ -36,23 +36,21 @@ mobs:register_mob("mobs_mc:enderdragon", {
type = "monster",
pathfinding = 1,
attacks_animals = true,
walk_chance = 88,
walk_chance = 100,
hp_max = 200,
hp_min = 200,
--collisionbox = {-0.35, 0.51, -0.35, 0.35, 1.61, 0.35},
--collisionbox = {-0.5, 0.5, -0.5, 0.5, 1.2, 0.5},
collisionbox = {-0.5, 0.01, -0.5, 0.5, 1.2, 0.5},
collisionbox = {-2, 3, -2, 2, 5, 2},
physical = false,
visual = "mesh",
mesh = "mobs_mc_ender_dragon.b3d",
textures = {
{"mobs_mc_enderdragon.png"},
},
visual_size = {x=1, y=1},
makes_footstep_sound = true,
visual_size = {x=3, y=3},
view_range = 35,
walk_velocity = 2,
run_velocity = 4,
sounds = {
walk_velocity = 6,
run_velocity = 6,
sounds = {
shoot_attack = "mesed",
attack = "mese_dragon",
distance = 60,
@ -65,41 +63,33 @@ mobs:register_mob("mobs_mc:enderdragon", {
jump_chance = 100,
fear_height = 120,
fly = true,
fly_in = {'default:void', "air"},
fly_in = {"air"},
dogshoot_switch = 1,
dogshoot_count_max =5,
dogshoot_count2_max = 5,
passive = false,
attack_animals = true,
--floats=1,
floats=1,
drops = {
{name = mobs_mc.items.dragon_egg,
chance = 1,
min = 1,
max = 1},
},
drawtype = "front",
water_damage = 0,
lava_damage = 0,
light_damage = 0,
on_rightclick = nil,
attack_type = "dogshoot",
--explosion_radius = 14,
--dogshoot_stop = true,
--arrow = "mobs:roar_of_the_dragon",
--arrow = "mobs_mc:roar_of_the_dragon",
--arrow = "mobs:fireball",
arrow = "mobs_mc:fireball2",
--reach = 5,
shoot_interval = 0.5,
shoot_offset = -1,
animation = {
speed_normal = 25, speed_run = 50,
fly_speed = 8, stand_speed = 8,
stand_start = 0, stand_end = 20,
walk_start = 0, walk_end = 20,
run_start = 0, run_end = 20,
},
blood_amount = 0,
})

View File

@ -34,6 +34,7 @@ mobs:register_mob("mobs_mc:enderman", {
war_cry = "mobs_sandmonster",
death = "green_slime_death",
damage = "Creeperdeath",
distance = 16,
},
walk_velocity = 0.2,
run_velocity = 3.4,
@ -131,14 +132,13 @@ mobs:register_mob("mobs_mc:enderman", {
minetest.add_item(pos, self._taken_node)
end
end,
drawtype = "front",
water_damage = 8,
lava_damage = 5,
lava_damage = 4,
light_damage = 0,
view_range = 16,
fear_height = 10,
fear_height = 4,
attack_type = "dogfight",
blood_amount = 0,
})

View File

@ -32,7 +32,7 @@ mobs:register_mob("mobs_mc:endermite", {
on_rightclick = function(self, clicker)
mobs:capture_mob(self, clicker, 25, 80, 0, true, nil)
end,
blood_amount = 0,
})
mobs:register_egg("mobs_mc:endermite", "Endermite", "mobs_mc_spawn_icon_endermite.png", 0)

View File

@ -13,18 +13,17 @@
mobs:register_mob("mobs_mc:ghast", {
type = "monster",
pathfinding = true,
pathfinding = 1,
group_attack = true,
hp_min = 10,
hp_max = 10,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-2, 5, -2, 2, 9, 2},
visual = "mesh",
mesh = "mobs_mc_ghast.b3d",
textures = {
{"mobs_mc_ghast.png"},
},
visual_size = {x=4, y=4},
makes_footstep_sound = true,
visual_size = {x=12, y=12},
sounds = {
shoot = "mobs_fireball",
death = "zombiedeath",
@ -32,8 +31,8 @@ mobs:register_mob("mobs_mc:ghast", {
attack = "mobs_fireball",
random = "mobs_eerie",
},
walk_velocity = .8,
run_velocity = 2.6,
walk_velocity = 1.6,
run_velocity = 3.2,
drops = {
{name = mobs_mc.items.gunpowder,
chance = 1,
@ -45,17 +44,15 @@ mobs:register_mob("mobs_mc:ghast", {
max = 1,},
},
animation = {
speed_normal = 25, speed_run = 25,
stand_speed = 50, walk_speed = 50, run_speed = 50,
stand_start = 0, stand_end = 40,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
drawtype = "front",
water_damage = 10,
lava_damage = 0,
lava_damage = 4,
light_damage = 0,
fall_damage = 0,
view_range = 16,
view_range = 100,
--attack_type = "dogshoot",
attack_type = "dogshoot",
arrow = "mobs_monster:fireball",
@ -70,9 +67,10 @@ mobs:register_mob("mobs_mc:ghast", {
jump_height = 4,
floats=1,
fly = true,
fly_in = {"air", "mcl_portals:nether_air"},
fly_in = {"air"},
jump_chance = 98,
fear_height = 120,
blood_amount = 0,
})

View File

@ -5,54 +5,47 @@
--###################
mobs:register_mob("mobs_mc:guardian", {
type = "monster",
stepheight = 1.2,
type = "monster",
hp_min = 30,
hp_max = 30,
passive = false,
attack_type = "dogfight",
pathfinding = true,
view_range = 16,
pathfinding = 1,
view_range = 16,
walk_velocity = 2,
run_velocity = 4,
damage = 6,
group_attack = true,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.425, 0.25, -0.425, 0.425, 1.1, 0.425},
visual = "mesh",
mesh = "mobs_mc_guardian.b3d",
textures = {
{"mobs_mc_guardian.png"},
},
visual_size = {x=4, y=4},
sounds = {
visual_size = {x=3, y=3},
sounds = {
damage = "mobs_mc_squid_hurt",
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 0, stand_end = 20,
walk_start = 0, walk_end = 20,
run_start = 0, run_end = 20,
},
drops = {
drops = {
-- TODO: Fix drops
{name = mobs_mc.items.black_dye,
chance = 1,
min = 1,
max = 3,},
},
visual_size = {x=4.5, y=4.5},
makes_footstep_sound = false,
stepheight = 2.1,
fly = true,
--floats=1,
fly_in = mobs_mc.items.water_source,
fall_speed = -2,
view_range = 8,
fall_damage = 1,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fly = true,
fly_in = mobs_mc.items.water_source,
view_range = 16,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
blood_amount = 0,
})
mobs:register_spawn("mobs_mc:guardian", mobs_mc.spawn.water, minetest.LIGHT_MAX+1, 0, 5000, 2, -1000, true)

View File

@ -5,54 +5,47 @@
--###################
mobs:register_mob("mobs_mc:guardian_elder", {
type = "monster",
stepheight = 1.2,
type = "monster",
hp_min = 80,
hp_max = 80,
passive = false,
attack_type = "dogfight",
pathfinding = true,
view_range = 16,
pathfinding = 1,
view_range = 16,
walk_velocity = 2,
run_velocity = 4,
damage = 8,
group_attack = true,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.99875, 0.5, -0.99875, 0.99875, 2.4975, 0.99875},
visual = "mesh",
mesh = "mobs_mc_guardian.b3d",
textures = {
{"mobs_mc_guardian_elder.png"},
},
visual_size = {x=4, y=4},
sounds = {
visual_size = {x=7, y=7},
sounds = {
damage = "mobs_mc_squid_hurt",
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 0, stand_end = 20,
walk_start = 0, walk_end = 20,
run_start = 0, run_end = 20,
},
drops = {
drops = {
-- TODO: Implement correct drops
{name = mobs_mc.items.black_dye,
chance = 1,
min = 1,
max = 3,},
},
visual_size = {x=4.5, y=4.5},
makes_footstep_sound = false,
stepheight = 2.1,
fly = true,
--floats=1,
fly_in = mobs_mc.items.water_source,
fall_speed = -2,
view_range = 8,
fall_damage = 1,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fly = true,
fly_in = mobs_mc.items.water_source,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
view_range = 16,
blood_amount = 0,
})
mobs:register_spawn("mobs_mc:guardian_elder", mobs_mc.spawn.water, minetest.LIGHT_MAX+1, 0, 5000, 2, -1000, true)

View File

@ -172,6 +172,7 @@ skeleton_horse.sounds = {
random = "skeleton1",
death = "skeletondeath",
damage = "skeletonhurt1",
distance = 16,
}
mobs:register_mob("mobs_mc:skeleton_horse", skeleton_horse)
@ -188,6 +189,7 @@ zombie_horse.sounds = {
random = "zombie1",
death = "zombiedeath",
damage = "zombiehurt1",
distance = 16,
}
mobs:register_mob("mobs_mc:zombie_horse", zombie_horse)

View File

@ -16,7 +16,7 @@ mobs:register_mob("mobs_mc:iron_golem", {
passive = true,
hp_min = 100,
hp_max = 100,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.7, -0.01, -0.7, 0.7, 2.69, 0.7},
visual = "mesh",
mesh = "mobs_mc_iron_golem.b3d",
textures = {
@ -25,17 +25,17 @@ mobs:register_mob("mobs_mc:iron_golem", {
visual_size = {x=3, y=3},
makes_footstep_sound = true,
sounds = {
war_cry = "mobs_wolf_attack",
-- TODO
distance = 16,
},
view_range = 16,
stepheight = 1.1,
stepheight = 1.2,
owner = "",
order = "follow",
floats = {x=0,y=0,z=0},
walk_velocity = 4,
run_velocity = 4,
stepheight = 1.1,
floats = 0,
walk_velocity = 0.6,
run_velocity = 1.2,
-- Approximation
damage = 14,
group_attack = true,
attacks_monsters = true,
@ -50,20 +50,18 @@ mobs:register_mob("mobs_mc:iron_golem", {
min = 0,
max = 2,},
},
drawtype = "front",
water_damage = 0,
lava_damage = 5,
lava_damage = 4,
light_damage = 0,
fall_damage = 0,
animation = {
speed_normal = 15, speed_run = 25,
stand_speed = 15, walk_speed = 15, run_speed = 25, punch_speed = 15,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
punch_start = 40, punch_end = 50,
punch_start = 40, punch_end = 50,
},
jump = true,
step = 1,
blood_amount = 0,
})

View File

@ -33,7 +33,6 @@ mobs:register_mob("mobs_mc:llama", {
min = 0,
max = 2,},
},
drawtype = "front",
water_damage = 0,
lava_damage = 4,
light_damage = 0,

Binary file not shown.

View File

@ -36,7 +36,6 @@ local ocelot = {
walk_chance = default_walk_chance,
walk_velocity = 1,
run_velocity = 3,
drawtype = "front",
floats = 1,
runaway = true,
water_damage = 0,

View File

@ -15,17 +15,17 @@
mobs:register_mob("mobs_mc:parrot", {
type = "npc",
pathfinding = true,
pathfinding = 1,
hp_min = 6,
hp_max = 6,
collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.6, 0.25},
collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25},
visual = "mesh",
mesh = "mobs_mc_parrot.b3d",
textures = {{"mobs_mc_parrot_blue.png"},{"mobs_mc_parrot_green.png"},{"mobs_mc_parrot_grey.png"},{"mobs_mc_parrot_red_blue.png"},{"mobs_mc_parrot_yellow_blue.png"}},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
walk_velocity = .8,
run_velocity = 2.6,
walk_velocity = 3,
run_velocity = 5,
drops = {
{name = mobs_mc.items.feather,
chance = 1,
@ -33,8 +33,8 @@ mobs:register_mob("mobs_mc:parrot", {
max = 2,},
},
animation = {
speed_normal = 50,
speed_run = 50,
stand_speed = 50,
walk_speed = 50,
stand_start = 0,
stand_end = 0,
walk_start = 0,
@ -44,32 +44,23 @@ mobs:register_mob("mobs_mc:parrot", {
--fly_start = 30,
--fly_end = 45,
},
drawtype = "front",
water_damage = 10,
lava_damage = 2,
walk_chance = 100,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
fall_damage = 0,
view_range = 16,
attack_type = "dogfight",
attacks_monsters = true,
jump = true,
jump_height = 4,
stepheight = 1.2,
floats=1,
floats = 1,
physical = true,
fly = true,
fly_in = {"air"},
jump_chance = 98,
fear_height = 120,
view_range = 25,
fear_height = 4,
view_range = 16,
on_rightclick = function(self, clicker)
if mobs:feed_tame(self, clicker, 8, true, true) then
return
end
mobs:capture_mob(self, clicker, 30, 50, 80, false, nil)
mobs:capture_mob(self, clicker, 0, 50, 80, false, nil)
end,
})

View File

@ -21,7 +21,6 @@ mobs:register_mob("mobs_mc:pig", {
min = 1,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 4,
light_damage = 0,

View File

@ -42,7 +42,6 @@ mobs:register_mob("mobs_mc:polar_bear", {
max = 2,},
},
drawtype = "front",
water_damage = 0,
floats = 1,
lava_damage = 5,
@ -50,6 +49,7 @@ mobs:register_mob("mobs_mc:polar_bear", {
fear_height = 4,
sounds = {
random = "Cowhurt1", -- TODO: Replace
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,

View File

@ -34,7 +34,7 @@ local rabbit = {
water_damage = 1,
lava_damage = 4,
light_damage = 0,
fear_height = 2,
fear_height = 4,
animation = {
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0,

View File

@ -61,15 +61,15 @@ mobs:register_mob("mobs_mc:sheep", {
min = 1,
max = 1,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
lava_damage = 4,
light_damage = 0,
fear_height = 3,
fear_height = 4,
sounds = {
random = "Sheep3",
death = "Sheep3",
damage = "Sheep3",
random = "mobs_sheep",
death = "mobs_sheep",
damage = "mobs_sheep",
distance = 16,
},
animation = {
speed_normal = 24,

View File

@ -14,23 +14,21 @@
mobs:register_mob("mobs_mc:shulker", {
type = "monster",
attack_type = "shoot",
shoot_interval = 0.5,
attack_type = "shoot",
shoot_interval = 0.5,
arrow = "mobs_mc:shulkerbullet",
shoot_offset = 0.5,
passive = false,
stepheight = 1.2,
hp_min = 30,
hp_max = 30,
armor = 150,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.99, 0.5},
visual = "mesh",
mesh = "mobs_mc_shulker.b3d",
textures = { "mobs_mc_shulker_purple.png", },
-- TODO: Make shulker dye-able
visual_size = {x=3, y=3},
walk_velocity = 0.0000000001,
run_velocity = 0.0000000001,
walk_chance = 0,
jump = false,
drops = {
{name = mobs_mc.items.shulker_shell,
@ -38,21 +36,27 @@ mobs:register_mob("mobs_mc:shulker", {
min = 1,
max = 1,},
},
animation = {
stand_speed = 25, walk_speed = 25, run_speed = 50, punch_speed = 25,
speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 45,
walk_start = 0, walk_end = 45,
run_start = 0, run_end = 45,
punch_start = 80, punch_end = 100,
},
blood_amount = 0,
view_range = 16,
fear_height = 4,
water_damage = 1,
lava_damage = 4,
light_damage = 0,
})
-- bullet arrow (weapon)
mobs:register_arrow("mobs_mc:shulkerbullet", {
visual = "sprite",
visual_size = {x = 0.25, y = 0.25},
textures = {"shulkerbullet.png"},
textures = {"mobs_mc_shulkerbullet.png"},
velocity = 6,
hit_player = function(self, player)

View File

@ -37,6 +37,7 @@ mobs:register_mob("mobs_mc:silverfish", {
view_range = 16,
attack_type = "dogfight",
damage = 1,
blood_amount = 0,
})
mobs:register_egg("mobs_mc:silverfish", "Silverfish", "mobs_mc_spawn_icon_silverfish.png", 0)

View File

@ -17,8 +17,8 @@ mobs:register_mob("mobs_mc:skeleton", {
type = "monster",
hp_min = 20,
hp_max = 20,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
pathfinding = true,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.98, 0.3},
pathfinding = 1,
group_attack = true,
visual = "mesh",
mesh = "mobs_mc_skeleton.b3d",
@ -31,6 +31,7 @@ mobs:register_mob("mobs_mc:skeleton", {
random = "skeleton1",
death = "skeletondeath",
damage = "skeletonhurt1",
distance = 16,
},
walk_velocity = 1.2,
run_velocity = 2.4,
@ -49,41 +50,39 @@ mobs:register_mob("mobs_mc:skeleton", {
min = 0,
max = 2,},
{name = "mobs_mc:skeleton_head",
chance = 50,
chance = 200,
min = 0,
max = 1,},
},
animation = {
animation = {
stand_start = 0,
stand_end = 40,
speed_stand = 5,
speed_stand = 5,
walk_start = 40,
walk_end = 60,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
hurt_end = 120,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
lava_damage = 4,
light_damage = 1,
view_range = 16,
fear_height = 4,
attack_type = "dogshoot",
--arrow = "throwing:arrow_entity", --was "mobs:arrow_entity"
arrow = "mobs_mc:arrow_entity",
shoot_interval = 2.5,
shoot_offset = 1,
--'dogshoot_switch' allows switching between shoot and dogfight modes inside dogshoot using timer (1 = shoot, 2 = dogfight)
--'dogshoot_count_max' number of seconds before switching above modes.
dogshoot_switch = 1,
dogshoot_count_max =1.8,
blood_amount = 0,
})

View File

@ -17,9 +17,9 @@ mobs:register_mob("mobs_mc:stray", {
type = "monster",
hp_min = 20,
hp_max = 20,
pathfinding = true,
pathfinding = 1,
group_attack = true,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.98, 0.3},
visual = "mesh",
mesh = "mobs_mc_stray.b3d",
textures = {
@ -31,6 +31,7 @@ mobs:register_mob("mobs_mc:stray", {
random = "skeleton1",
death = "skeletondeath",
damage = "skeletonhurt1",
distance = 16,
},
walk_velocity = 1.2,
run_velocity = 2.4,
@ -56,33 +57,32 @@ mobs:register_mob("mobs_mc:stray", {
animation = {
stand_start = 0,
stand_end = 40,
speed_stand = 5,
speed_stand = 5,
walk_start = 40,
walk_end = 60,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
hurt_end = 120,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
water_damage = 0,
lava_damage = 4,
light_damage = 1,
fear_height = 4,
view_range = 16,
attack_type = "dogshoot",
arrow = "mobs_mc:arrow_entity",
shoot_interval = 2.5,
shoot_offset = 1,
--'dogshoot_switch' allows switching between shoot and dogfight modes inside dogshoot using timer (1 = shoot, 2 = dogfight)
--'dogshoot_count_max' number of seconds before switching above modes.
dogshoot_switch = 1,
dogshoot_count_max =3,
blood_amount = 0,
})
--spawn

View File

@ -17,20 +17,21 @@ mobs:register_mob("mobs_mc:witherskeleton", {
type = "monster",
hp_min = 20,
hp_max = 20,
pathfinding = true,
pathfinding = 1,
group_attack = true,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2.39, 0.35},
visual = "mesh",
mesh = "mobs_mc_wither_skeleton.b3d",
textures = {
{"mobs_mc_witherskeleton.png"},
},
visual_size = {x=3, y=3},
visual_size = {x=3.6, y=3.6},
makes_footstep_sound = true,
sounds = {
random = "skeleton1",
death = "skeletondeath",
damage = "skeletonhurt1",
distance = 16,
},
walk_velocity = 1.2,
run_velocity = 2.4,
@ -52,33 +53,32 @@ mobs:register_mob("mobs_mc:witherskeleton", {
animation = {
stand_start = 0,
stand_end = 40,
speed_stand = 5,
speed_stand = 5,
walk_start = 40,
walk_end = 60,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
speed_walk = 50,
shoot_start = 70,
shoot_end = 90,
punch_start = 70,
punch_end = 90,
die_start = 120,
die_end = 130,
speed_die = 5,
hurt_start = 100,
hurt_end = 120,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
water_damage = 0,
lava_damage = 4,
light_damage = 1,
view_range = 16,
attack_type = "dogfight",
arrow = "mobs_mc:arrow_entity",
shoot_interval = 2.5,
shoot_offset = 1,
--'dogshoot_switch' allows switching between shoot and dogfight modes inside dogshoot using timer (1 = shoot, 2 = dogfight)
--'dogshoot_count_max' number of seconds before switching above modes.
dogshoot_switch = 1,
dogshoot_count_max =0.5,
blood_amount = 0,
fear_height = 4,
})
--spawn

View File

@ -19,6 +19,7 @@ local slime_big = {
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
distance = 16,
},
damage = 4,
reach = 3,
@ -39,7 +40,6 @@ local slime_big = {
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 0,
lava_damage = 4,
light_damage = 0,
@ -137,6 +137,7 @@ local magma_cube_big = {
death = "green_slime_death",
damage = "green_slime_damage",
attack = "green_slime_attack",
distance = 16,
},
walk_velocity = 4,
run_velocity = 4,
@ -164,7 +165,6 @@ local magma_cube_big = {
death_start = 88,
death_end = 118,
},
drawtype = "front",
water_damage = 0,
lava_damage = 0,
light_damage = 0,

View File

@ -52,9 +52,8 @@ mobs:register_mob("mobs_mc:enderman", {
visual_size = {x=1.2, y=2.5},
makes_footstep_sound = true,
sounds = {
random = "mobs_sandmonster",
death = "green_slime_death",
damage = "Creeperdeath",
-- TODO
distance = 16,
},
walk_velocity = 3.2,
run_velocity = 5.4,
@ -90,7 +89,6 @@ mobs:register_mob("mobs_mc:enderman", {
punch_start = 74,
punch_end = 105,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,

View File

@ -43,7 +43,6 @@ local spider = {
drops = {
{name = mobs_mc.items.string, chance = 1, min = 0, max = 2,},
{name = mobs_mc.items.spider_eye, chance = 3, min = 1, max = 1,},
{name = "mobs_mc:spider_head", chance = 200, min = 1, max = 1,},
},
specific_attack = { "player", "mobs_mc:iron_golem" },
water_damage = 0,
@ -56,6 +55,7 @@ local spider = {
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
blood_amount = 0,
}
mobs:register_mob("mobs_mc:spider", spider)

View File

@ -21,7 +21,8 @@ mobs:register_mob("mobs_mc:squid", {
},
sounds = {
damage = "mobs_mc_squid_hurt",
},
distance = 16,
},
animation = {
stand_start = 1,
stand_end = 60,
@ -47,12 +48,12 @@ mobs:register_mob("mobs_mc:squid", {
jump_chance = 98,
fall_speed = 0.5,
view_range = 16,
fall_damage = 1,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
runaway = true,
fear_height = 4,
blood_texture = "mobs_mc_squid_blood.png",
})
-- Spawn near the water surface

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@ -37,7 +37,7 @@ mobs:register_mob("mobs_mc:vex", {
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 40, stand_end = 80,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
@ -75,7 +75,6 @@ mobs:register_mob("mobs_mc:vex", {
end
end
end,
drawtype = "front",
water_damage = 0,
lava_damage = 4,
light_damage = 0,

View File

@ -13,9 +13,9 @@
mobs:register_mob("mobs_mc:villager", {
type = "npc",
hp_min = 35,
hp_max = 75,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
hp_min = 20,
hp_max = 20,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_villager.b3d",
textures = {
@ -26,35 +26,26 @@ mobs:register_mob("mobs_mc:villager", {
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
damage = 2,
walk_velocity = 1.2,
run_velocity = 2.4,
group_attack = true,
attack_type = "dogfight",
drops = {
{name = "default:apple",
chance = 10,
min = 1,
max = 2,},
},
armor = 90,
drops = {},
sounds = {
random = "Villager1",
death = "Villagerdead",
damage = "Villagerhurt1",
distance = 16,
},
animation = {
speed_normal = 25, speed_run = 50,
stand_speed = 25, walk_speed = 25, run_speed = 50,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
view_range = 16,
fear_height = 5,
fear_height = 4,
--[[
on_rightclick = function(self, clicker)
local inv

View File

@ -85,7 +85,6 @@ mobs:register_mob("mobs_mc:villager", {
shoot_start = 50,
shoot_end = 82,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,

View File

@ -15,21 +15,20 @@ mobs:register_mob("mobs_mc:evoker", {
type = "monster",
physical = true,
pathfinding = 1,
hp_min = 35,
hp_max = 75,
hp_min = 24,
hp_max = 24,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.95, 0.4},
visual = "mesh",
mesh = "mobs_mc_evoker.b3d",
textures = {
{"mobs_mc_evoker_base.png"},
-- TODO: Attack glow
},
textures = {
{"mobs_mc_evoker_base.png"},
-- TODO: Attack glow
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
damage = 2,
damage = 6,
walk_velocity = 0.2,
run_velocity = 1.4,
damage = 1,
group_attack = true,
attack_type = "dogfight",
-- Summon vexes
@ -58,33 +57,31 @@ mobs:register_mob("mobs_mc:evoker", {
min = 1,
max = 1,},
},
armor = 90,
sounds = {
random = "Villagerdead",
death = "Villagerdead",
damage = "mese_dragon",
attack = "zombiedeath",
distance = 16,
},
animation = {
speed_normal = 25,
speed_run = 25,
stand_start = 40,
stand_end = 59,
speed_stand = 5,
speed_stand = 5,
walk_start = 0,
walk_end = 40,
--speed_walk = 50,
shoot_start = 60,
shoot_end = 80,
die_start = 80,
die_end = 130,
shoot_start = 60,
shoot_end = 80,
die_start = 80,
die_end = 130,
},
water_damage = 1,
lava_damage = 5,
water_damage = 0,
lava_damage = 4,
light_damage = 0,
view_range = 13,
fear_height = 2,
view_range = 16,
fear_height = 4,
})
-- spawn eggs

View File

@ -6,14 +6,12 @@
mobs:register_mob("mobs_mc:illusioner", {
type = "monster",
attack_type = "shoot",
shoot_interval = 0.5,
shoot_interval = 0.5,
arrow = "mobs_mc:arrow_entity",
shoot_offset = 1.5,
stepheight = 1.2,
hp_min = 30,
hp_max = 60,
armor = 150,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
hp_min = 32,
hp_max = 32,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_illusioner.b3d",
textures = {
@ -24,21 +22,25 @@ mobs:register_mob("mobs_mc:illusioner", {
run_velocity = 2,
jump = true,
animation = {
speed_normal = 25,
speed_run = 25,
walk_speed = 25,
run_speed = 25,
shoot_speed = 25,
stand_start = 40,
stand_end = 59,
--speed_stand = 5,
stand_speed = 5,
walk_start = 0,
walk_end = 40,
--speed_walk = 50,
shoot_start = 90,
shoot_end = 110,
die_start = 110,
die_end = 130,
speed_die = 5,
--speed_walk = 50,
shoot_start = 90,
shoot_end = 110,
die_start = 110,
die_end = 130,
die_speed = 5,
-- 60-80 magic arm swinging, 80-90 transition between magic to bow shooting
},
view_range = 16,
fear_height = 4,
lava_damage = 4,
})
mobs:register_egg("mobs_mc:illusioner", "Illusioner", "mobs_mc_spawn_icon_illusioner.png", 0)

View File

@ -14,22 +14,20 @@ mobs:register_mob("mobs_mc:vindicator", {
type = "monster",
physical = false,
pathfinding = 1,
hp_min = 35,
hp_max = 75,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.95, 0.4},
hp_min = 24,
hp_max = 24,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_vindicator.b3d",
textures = {
{"mobs_mc_vindicator_base.png^mobs_mc_vindicator_axe.png"},
-- TODO: Glow when attacking (mobs_mc_vindicator.png)
},
textures = {
{"mobs_mc_vindicator_base.png^mobs_mc_vindicator_axe.png"},
-- TODO: Glow when attacking (mobs_mc_vindicator.png)
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
damage = 2,
damage = 13,
walk_velocity = 1.2,
run_velocity = 2.4,
damage = 1,
group_attack = true,
attack_type = "dogfight",
drops = {
{name = mobs_mc.items.emerald,
@ -47,24 +45,26 @@ mobs:register_mob("mobs_mc:vindicator", {
damage = "Villagerhurt1",
},
animation = {
speed_normal = 25,
speed_run = 25,
walk_speed = 25,
run_speed = 25,
stand_start = 40,
stand_end = 59,
speed_stand = 5,
stand_speed = 5,
walk_start = 0,
walk_end = 40,
--speed_walk = 50,
punch_start = 90,
punch_end = 110,
die_start = 110,
die_end = 130,
--speed_walk = 50,
punch_speed = 25,
punch_start = 90,
punch_end = 110,
die_speed = 25,
die_start = 110,
die_end = 130,
},
water_damage = 1,
lava_damage = 5,
lava_damage = 4,
light_damage = 0,
view_range = 13,
fear_height = 3,
view_range = 16,
fear_height = 4,
})

View File

@ -13,9 +13,10 @@
mobs:register_mob("mobs_mc:villager_zombie", {
type = "monster",
hp_min = 35,
hp_max = 75,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
hp_min = 20,
hp_max = 20,
armor = 90,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_villager_zombie.b3d",
textures = {
@ -28,11 +29,10 @@ mobs:register_mob("mobs_mc:villager_zombie", {
},
visual_size = {x=3, y=3},
makes_footstep_sound = true,
damage = 2,
damage = 3,
walk_velocity = 1.2,
run_velocity = 2.4,
group_attack = true,
attack_type = "dogfight",
attack_type = "dogfight",
group_attack = true,
drops = {
{name = mobs_mc.items.rotten_flesh,
@ -59,6 +59,7 @@ mobs:register_mob("mobs_mc:villager_zombie", {
random = "Villager1",
death = "Villagerdead",
damage = "Villagerhurt1",
distance = 16,
},
animation = {
speed_normal = 25,
@ -70,7 +71,6 @@ mobs:register_mob("mobs_mc:villager_zombie", {
run_start = 0,
run_end = 20,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 1,

View File

@ -17,7 +17,7 @@ mobs:register_mob("mobs_mc:witch", {
type = "monster",
hp_min = 26,
hp_max = 26,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_witch.b3d",
textures = {
@ -34,8 +34,6 @@ mobs:register_mob("mobs_mc:witch", {
arrow = "mobs:potion_arrow",
shoot_interval = 2.5,
shoot_offset = 1,
--'dogshoot_switch' allows switching between shoot and dogfight modes inside dogshoot using timer (1 = shoot, 2 = dogfight)
--'dogshoot_count_max' number of seconds before switching above modes.
dogshoot_switch = 1,
dogshoot_count_max =1.8,
max_drops = 3,
@ -52,6 +50,7 @@ mobs:register_mob("mobs_mc:witch", {
random = "Villager1",
death = "Villagerdead",
damage = "Villagerhurt1",
distance = 16,
},
animation = {
speed_normal = 30,
@ -69,12 +68,11 @@ mobs:register_mob("mobs_mc:witch", {
shoot_start = 50,
shoot_end = 82,
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
view_range = 16,
fear_height = 5,
fear_height = 4,
})

View File

@ -16,20 +16,22 @@ mobs:register_mob("mobs_mc:wither", {
type = "monster",
hp_max = 300,
hp_min = 300,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
armor = 80,
-- This deviates from MC Wiki's size, which makes no sense
collisionbox = {-0.9, 0.4, -0.9, 0.9, 2.45, 0.9},
visual = "mesh",
mesh = "mobs_mc_wither.b3d",
textures = {
{"mobs_mc_wither.png"},
},
visual_size = {x=3, y=3},
visual_size = {x=4, y=4},
makes_footstep_sound = true,
view_range = 20,
fear_height = 5,
view_range = 16,
fear_height = 4,
walk_velocity = 2,
run_velocity = 4,
stepheight = 1.2,
sounds = {
sounds = {
shoot_attack = "mesed",
attack = "mese_dragon",
distance = 60,
@ -37,45 +39,35 @@ mobs:register_mob("mobs_mc:wither", {
jump = true,
jump_height = 10,
jump_chance = 98,
fear_height = 120,
--fly = true,
fly = true,
dogshoot_switch = 1,
dogshoot_count_max =1,
--passive = false,
attack_animals = true,
floats=1,
drops = {
{name = "default:emeraldblock",
{name = mobs_mc.items.emerald,
chance = 1,
min = 1,
max = 3},
{name = "default:mese_crystal",
chance = 1,
min = 99,
max = 99},
{name = "mobs_mc:skeleton2_head", chance = 1, min = 1, max = 1},
},
armor = 60,
drawtype = "front",
min = 18,
max = 21},
},
water_damage = 0,
lava_damage = 0,
light_damage = 0,
on_rightclick = nil,
attack_type = "dogshoot",
explosion_radius = 3,
explosion_fire = 0,
dogshoot_stop = true,
--arrow = "mobs_mc:roar_of_the_dragon",
arrow = "mobs_mc:fireball",
reach = 5,
shoot_interval = 0.5,
shoot_offset = -1,
animation = {
speed_normal = 12, speed_run = 12,
walk_speed = 12, run_speed = 12, stand_speed = 12,
stand_start = 0, stand_end = 20,
walk_start = 0, walk_end = 20,
walk_start = 0, walk_end = 20,
run_start = 0, run_end = 20,
},
blood_amount = 0,
})
mobs:register_arrow("mobs_mc:roar_of_the_dragon", {

View File

@ -42,7 +42,6 @@ local wolf = {
damage = 4,
attack_type = "dogfight",
fear_height = 4,
drawtype = "front",
water_damage = 0,
lava_damage = 4,
light_damage = 0,

View File

@ -16,7 +16,8 @@ local zombie = {
type = "monster",
hp_min = 20,
hp_max = 20,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 1.94, 0.35},
armor = 90,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_zombie.b3d",
textures = {
@ -28,11 +29,12 @@ local zombie = {
random = "zombie1",
death = "zombiedeath",
damage = "zombiehurt1",
distance = 16,
},
walk_velocity = .8,
run_velocity = 1.6,
damage = 3,
fear_height = 8,
fear_height = 4,
pathfinding = 1,
jump = true,
--jump_height = 3,
@ -64,11 +66,10 @@ local zombie = {
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
drawtype = "front",
lava_damage = 5,
lava_damage = 4,
-- TODO: Burn mob only when in direct sunlight
light_damage = 2,
view_range = 17,
view_range = 16,
attack_type = "dogfight",
}

View File

@ -11,67 +11,65 @@
local pigman = {
--mobs:register_mob("mobs_mc:pigman", {
type = "npc",--made npc to simulate they only attack when attacked first.
hp_max = 60,
armor = 150,
collisionbox = {-0.35, -0.01, -0.35, 0.35, 2, 0.35},
-- type="animal", passive=false: This combination is needed for a neutral mob which becomes hostile, if attacked
type = "animal",
passive = false,
hp_min = 20,
hp_max = 20,
armor = 90,
attack_type = "dogfight",
group_attack = true,
damage = 9,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 1.94, 0.3},
visual = "mesh",
mesh = "mobs_mc_zombie_pigman.b3d",
textures = {{"mobs_mc_zombie_pigman.png"}},
visual_size = {x=3, y=3},
walk_velocity = 0.6,
run_velocity = 2,
sounds = {
random = "zombie1", -- TODO: replace
death = "zombiedeath", -- TODO: replace
damage = "zombiehurt1", -- TODO: replace
distance = 16,
},
jump = true,
hp_min = 20,
hp_max = 20,
makes_footstep_sound = true,
walk_velocity = .8,
run_velocity = 2.6,
damage = 9,
armor = 80,
pathfinding = true,
group_attack = true,
passive = false,
maxdrops = 2,
pathfinding = 1,
drops = {
{name = mobs_mc.items.rotten_flesh,
chance = 1,
min = 1,
max = 1,},
{name = mobs_mc.items.gold_nugget,
chance = 13,
chance = 1,
min = 0,
max = 2,},
max = 1,},
{name = mobs_mc.items.gold_ingot,
chance = 40, -- 2.5%
min = 1,
max = 1,},
{name = mobs_mc.items.gold_sword,
chance = 8,
chance = 12, -- 8.333%, approximation to 8.5%
min = 1,
max = 1,},
{name = "mobs_mc:zombiepig_head",
chance = 200,
min = 0,
max = 1,},
},
sounds = {
random = "Pig2",
death = "Pigdeath",
damage = "zombiehurt1",
},
animation = {
speed_normal = 30, speed_run = 30,
stand_start = 0, stand_end = 79,
walk_start = 168, walk_end = 187,
run_start = 168, run_end = 187,
punch_start = 200, punch_end = 219,
},
drawtype = "front",
animation = {
stnd_speed = 25, walk_speed = 25, run_speed = 50, punch_speed = 25,
stand_start = 40, stand_end = 80,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
punch_start = 90, punch_end = 130,
},
water_damage = 1,
lava_damage = 5,
lava_damage = 0,
light_damage = 0,
fear_height = 3,
fear_height = 4,
view_range = 16,
attack_type = "dogfight",
}
mobs:register_mob("mobs_mc:pigman", pigman)