mod-kpgmobs/init.lua

121 lines
2.5 KiB
Lua
Raw Normal View History

--File modified by Sys4 for NALC
2017-05-29 02:05:03 +02:00
-- Deer
mobs:register_mob("kpgmobs:deer", {
2017-05-29 02:05:03 +02:00
type = "animal",
hp_max = 5,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {"mobs_deer.png"},
visual = "mesh",
mesh = "mobs_deer2.x",
makes_footstep_sound = true,
walk_velocity = 1,
armor = 200,
drops = {
{name = "mobs:meat_raw",
2017-05-29 02:05:03 +02:00
chance = 1,
min = 2,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
animation = {
speed_normal = 15,
stand_start = 25,
stand_end = 75,
walk_start = 75,
walk_end = 100,
},
follow = "farming:wheat",
view_range = 5,
})
mobs:register_spawn("kpgmobs:deer", {"default:dirt_with_grass"}, 20, 8, 27000, 1, 51000)
mobs:register_egg("kpgmobs:deer", "Deer", "wool_violet.png", 1)
2017-05-29 02:05:03 +02:00
-- Jeraf
mobs:register_mob("kpgmobs:jeraf", {
2017-05-29 02:05:03 +02:00
type = "animal",
hp_max = 5,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {"mobs_jeraf.png"},
visual = "mesh",
mesh = "mobs_jeraf.x",
makes_footstep_sound = true,
walk_velocity = 2,
armor = 200,
drops = {
{name = "mobs:meat_raw",
2017-05-29 02:05:03 +02:00
chance = 1,
min = 2,
max = 3,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
animation = {
speed_normal = 15,
stand_start = 0,
stand_end = 30,
walk_start = 70,
walk_end = 100,
},
follow = "farming:wheat",
view_range = 5,
})
mobs:register_spawn("kpgmobs:jeraf", {"default:desert_sand", "default:dirt_with_dry_grass"}, 20, 8, 27000, 1, 51000)
mobs:register_egg("kpgmobs:jeraf", "Giraffe", "wool_yellow.png", 1)
2017-05-29 02:05:03 +02:00
-- Bear
mobs:register_mob("kpgmobs:medved", {
2017-05-29 02:05:03 +02:00
type = "animal",
hp_max = 5,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
textures = {"mobs_medved.png"},
visual = "mesh",
mesh = "mobs_medved.x",
makes_footstep_sound = true,
view_range = 7,
walk_velocity = 1,
run_velocity = 2,
damage = 10,
armor = 200,
attack_type = "dogfight",
drops = {
{name = "mobs:meat_raw",
2017-05-29 02:05:03 +02:00
chance = 1,
min = 5,
max = 10,},
},
drawtype = "front",
water_damage = 1,
lava_damage = 5,
light_damage = 0,
on_rightclick = nil,
animation = {
speed_normal = 15,
speed_run = 15,
stand_start = 0,
stand_end = 30,
walk_start = 35,
walk_end = 65,
run_start = 105,
run_end = 135,
punch_start = 70,
punch_end = 100,
},
})
mobs:register_spawn("kpgmobs:medved", {"default:dirt_with_grass","default:dirt"}, 20, 0, 44000, 3, 51000)
mobs:register_egg("kpgmobs:medved", "Bear", "wool_brown.png", 1)
2017-05-29 02:05:03 +02:00
if minetest.setting_get("log_mods") then
minetest.log("action", "kpgmobs loaded")
end