Add files via upload
parent
d614072730
commit
b57779dc0b
|
@ -0,0 +1,92 @@
|
|||
mobs:register_mob("animalworld:anteater", {
|
||||
stepheight = 1,
|
||||
type = "animal",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
group_attack = true,
|
||||
owner_loyal = true,
|
||||
attack_npcs = false,
|
||||
reach = 2,
|
||||
damage = 5,
|
||||
hp_min = 25,
|
||||
hp_max = 45,
|
||||
armor = 200,
|
||||
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.95, 0.6},
|
||||
visual = "mesh",
|
||||
mesh = "Anteater.b3d",
|
||||
textures = {
|
||||
{"textureanteater.png"},
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
|
||||
},
|
||||
walk_velocity = 0.7,
|
||||
run_velocity = 2,
|
||||
runaway = false,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine"},
|
||||
jump = false,
|
||||
jump_height = 3,
|
||||
pushable = true,
|
||||
follow = {"fishing:bait:worm", "bees:frame_full"},
|
||||
view_range = 10,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
fear_height = 2,
|
||||
animation = {
|
||||
speed_normal = 75,
|
||||
stand_start = 0,
|
||||
stand_end = 100,
|
||||
walk_start = 100,
|
||||
walk_end = 200,
|
||||
punch_start = 250,
|
||||
punch_end = 350,
|
||||
|
||||
die_start = 1, -- we dont have a specific death animation so we will
|
||||
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
|
||||
die_speed = 1, -- have mob rotate when dying.
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
local spawn_on = {"default:dirt_with_rainforest_litter"}
|
||||
|
||||
if minetest.get_mapgen_setting("mg_name") ~= "v6" then
|
||||
spawn_on = {"default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass"}
|
||||
end
|
||||
|
||||
if minetest.get_modpath("ethereal") then
|
||||
spawn_on = {"ethereal:grass_grove"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
mobs:spawn({
|
||||
name = "animalworld:anteater",
|
||||
nodes = {"default:dirt_with_rainforest_litter"},
|
||||
min_light = 0,
|
||||
interval = 1,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = 1,
|
||||
max_height = 50,
|
||||
day_toggle = true,
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("animalworld:anteater", ("Anteater"), "aanteater.png")
|
||||
|
||||
|
||||
mobs:alias_mob("animalworld:manteater", "animalworld:anteater") -- compatibility
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
mobs:register_mob("animalworld:bat", {
|
||||
stepheight = 3,
|
||||
type = "animal",
|
||||
passive = true,
|
||||
attack_type = "dogfight",
|
||||
attack_animals = false,
|
||||
reach = 2,
|
||||
damage = 1,
|
||||
hp_min = 5,
|
||||
hp_max = 15,
|
||||
armor = 200,
|
||||
collisionbox = {-0.3, -0.01, -1, 0.3, 0.3, 0.3},
|
||||
visual = "mesh",
|
||||
mesh = "Bat.b3d",
|
||||
visual_size = {x = 1.0, y = 1.0},
|
||||
textures = {
|
||||
{"texturebat.png"},
|
||||
},
|
||||
sounds = {
|
||||
random = "animalworld_bat",
|
||||
},
|
||||
makes_footstep_sound = false,
|
||||
walk_velocity = 5,
|
||||
run_velocity = 6,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
fall_speed = 0,
|
||||
jump = true,
|
||||
jump_height = 6,
|
||||
fly = true,
|
||||
stepheight = 3,
|
||||
drops = {
|
||||
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 0,
|
||||
animation = {
|
||||
speed_normal = 130,
|
||||
stand_start = 0,
|
||||
stand_end = 100,
|
||||
walk_start = 150,
|
||||
walk_end = 250,
|
||||
fly_start = 150, -- swim animation
|
||||
fly_end = 250,
|
||||
-- 50-70 is slide/water idle
|
||||
},
|
||||
|
||||
fly_in = {"air"},
|
||||
floats = 0,
|
||||
follow = {
|
||||
"animalworld:rawfish"
|
||||
},
|
||||
|
||||
view_range = 4,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
-- feed or tame
|
||||
if mobs:feed_tame(self, clicker, 4, false, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
mobs:spawn({
|
||||
name = "animalworld:bat",
|
||||
nodes = {"default:dirt_with_grass"}, {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"}, {"default:dirt_with_coniferous_litter"},
|
||||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 5,
|
||||
min_height = -100,
|
||||
max_height = 50,
|
||||
day_toggle = false,
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("animalworld:bat", ("Bat"), "abat.png")
|
|
@ -23,7 +23,7 @@ stepheight = 3,
|
|||
walk_velocity = 2,
|
||||
run_velocity = 4,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "player"},
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = true,
|
||||
jump_height = 6,
|
||||
stepheight = 3,
|
||||
|
@ -73,6 +73,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = 0,
|
||||
max_height = 100,
|
||||
day_toggle = true,
|
||||
|
|
1
boar.lua
1
boar.lua
|
@ -76,6 +76,7 @@ mobs:spawn({
|
|||
min_light = 14,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 1,
|
||||
max_height = 80,
|
||||
day_toggle = true,
|
||||
|
|
|
@ -25,7 +25,7 @@ mobs:register_mob("animalworld:camel", {
|
|||
walk_velocity = 2,
|
||||
run_velocity = 5,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark"},
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine"},
|
||||
jump = false,
|
||||
jump_height = 3,
|
||||
pushable = true,
|
||||
|
@ -78,6 +78,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 0,
|
||||
max_height = 40,
|
||||
})
|
||||
|
|
3
carp.lua
3
carp.lua
|
@ -24,7 +24,7 @@ stepheight = 0.0,
|
|||
fly_in = "default:water_source", "default:river_water_source", "default:water_flowing",
|
||||
fall_speed = 0,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:elephant", "animalworld:hippo", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "player"},
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:elephant", "animalworld:hippo", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = false,
|
||||
stepheight = 0.0,
|
||||
drops = {
|
||||
|
@ -71,6 +71,7 @@ mobs:spawn({
|
|||
min_light = 14,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 0,
|
||||
max_height = 30,
|
||||
day_toggle = true,
|
||||
|
|
3
crab.lua
3
crab.lua
|
@ -25,7 +25,7 @@ stepheight = 1,
|
|||
walk_velocity = 0.7,
|
||||
run_velocity = 1,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:elephant", "animalworld:hippo", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "player"},
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:elephant", "animalworld:hippo", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = false,
|
||||
jump_height = 6,
|
||||
drops = {
|
||||
|
@ -73,6 +73,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = 0,
|
||||
max_height = 2,
|
||||
})
|
||||
|
|
|
@ -70,6 +70,7 @@ mobs:spawn({
|
|||
min_light = 14,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 0,
|
||||
max_height = 3,
|
||||
day_toggle = true,
|
||||
|
|
|
@ -67,6 +67,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = 0,
|
||||
max_height = 65,
|
||||
day_toggle = true,
|
||||
|
|
|
@ -0,0 +1,82 @@
|
|||
mobs:register_mob("animalworld:frog", {
|
||||
stepheight = 3,
|
||||
type = "animal",
|
||||
passive = true,
|
||||
reach = 1,
|
||||
attack_npcs = false,
|
||||
damage = 1,
|
||||
hp_min = 5,
|
||||
hp_max = 15,
|
||||
armor = 200,
|
||||
collisionbox = {-0.268, -0.01, -0.268, 0.268, 0.167, 0.268},
|
||||
visual = "mesh",
|
||||
mesh = "Frog.b3d",
|
||||
drawtype = "front",
|
||||
textures = {
|
||||
{"texturefrog.png"},
|
||||
|
||||
},
|
||||
sounds = {
|
||||
random = "animalworld_frog",},
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = 2,
|
||||
run_velocity = 3,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = true,
|
||||
jump_height = 6,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 6,
|
||||
animation = {
|
||||
speed_normal = 100,
|
||||
stand_start = 1,
|
||||
stand_end = 100,
|
||||
walk_start = 100,
|
||||
walk_end = 200,
|
||||
fly_start = 250, -- swim animation
|
||||
fly_end = 350,
|
||||
},
|
||||
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing"},
|
||||
floats = 0,
|
||||
follow = {"fishing:bait:worm"},
|
||||
view_range = 6,
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
local spawn_on = "default:sand"
|
||||
|
||||
if minetest.get_modpath("ethereal") then
|
||||
spawn_on = "ethereal:prairie_dirt"
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
mobs:spawn({
|
||||
name = "animalworld:frog",
|
||||
nodes = {"default:dirt_with_grass"}, {"default:dirt_with_rainforest_litter"},
|
||||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = -10,
|
||||
max_height = 2,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mobs:register_egg("animalworld:frog", ("Frog"), "afrog.png", 0)
|
||||
|
||||
|
||||
mobs:alias_mob("animalworld:frog", "animalworld:frog") -- compatibility
|
||||
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
mobs:register_mob("animalworld:gnu", {
|
||||
stepheight = 2,
|
||||
type = "animal",
|
||||
passive = true,
|
||||
attack_type = "dogfight",
|
||||
group_attack = true,
|
||||
owner_loyal = true,
|
||||
attack_npcs = false,
|
||||
reach = 2,
|
||||
damage = 2,
|
||||
hp_min = 30,
|
||||
hp_max = 40,
|
||||
armor = 200,
|
||||
collisionbox = {-0.6, -0.01, -0.6, 0.6, 0.95, 0.6},
|
||||
visual = "mesh",
|
||||
mesh = "Gnu.b3d",
|
||||
textures = {
|
||||
{"texturegnu.png"},
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "animalworld_gnu",
|
||||
|
||||
},
|
||||
walk_velocity = 1,
|
||||
run_velocity = 5,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = false,
|
||||
jump_height = 3,
|
||||
pushable = true,
|
||||
follow = {"default:apple", "default:dry_dirt_with_dry_grass"},
|
||||
view_range = 10,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
light_damage = 0,
|
||||
fear_height = 3,
|
||||
animation = {
|
||||
speed_normal = 60,
|
||||
stand_start = 0,
|
||||
stand_end = 100,
|
||||
walk_start = 100,
|
||||
walk_end = 200,
|
||||
run_start = 200,
|
||||
run_end = 300,
|
||||
|
||||
die_start = 1, -- we dont have a specific death animation so we will
|
||||
die_end = 2, -- re-use 2 standing frames at a speed of 1 fps and
|
||||
die_speed = 1, -- have mob rotate when dying.
|
||||
die_loop = false,
|
||||
die_rotate = true,
|
||||
},
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
if mobs:feed_tame(self, clicker, 8, true, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
local spawn_on = {"default:dry_dirt_with_dry_grass"}
|
||||
|
||||
if minetest.get_mapgen_setting("mg_name") ~= "v6" then
|
||||
spawn_on = {"default:dry_dirt_with_dry_grass"}
|
||||
end
|
||||
|
||||
if minetest.get_modpath("ethereal") then
|
||||
spawn_on = {"default:dry_dirt_with_dry_grass"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
mobs:spawn({
|
||||
name = "animalworld:gnu",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"},
|
||||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 20,
|
||||
max_height = 50,
|
||||
day_toggle = true,
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("animalworld:gnu", ("Gnu"), "agnu.png")
|
||||
|
||||
|
||||
mobs:alias_mob("animalworld:gnu", "animalworld:gnu") -- compatibility
|
||||
|
3
hare.lua
3
hare.lua
|
@ -20,7 +20,7 @@ stepheight = 1,
|
|||
walk_velocity = 3,
|
||||
run_velocity = 6,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "player"},
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = true,
|
||||
jump_height = 6,
|
||||
drops = {
|
||||
|
@ -114,6 +114,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = 5,
|
||||
max_height = 100,
|
||||
day_toggle = true,
|
||||
|
|
|
@ -72,6 +72,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 2,
|
||||
min_height = 0,
|
||||
max_height = 5,
|
||||
day_toggle = true,
|
||||
|
|
|
@ -0,0 +1,77 @@
|
|||
mobs:register_mob("animalworld:hyena", {
|
||||
stepheight = 2,
|
||||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
attack_animals = true,
|
||||
reach = 2,
|
||||
damage = 8,
|
||||
hp_min = 35,
|
||||
hp_max = 45,
|
||||
armor = 200,
|
||||
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
|
||||
visual = "mesh",
|
||||
mesh = "Hyena.b3d",
|
||||
visual_size = {x = 1.0, y = 1.0},
|
||||
textures = {
|
||||
{"texturehyena.png"},
|
||||
},
|
||||
sounds = {
|
||||
random = "animalworld_hyena",
|
||||
attack = "animalworld_hyena",
|
||||
},
|
||||
makes_footstep_sound = true,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 3,
|
||||
runaway = false,
|
||||
jump = true,
|
||||
jump_height = 6,
|
||||
stepheight = 2,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 4,
|
||||
animation = {
|
||||
speed_normal = 75,
|
||||
stand_start = 0,
|
||||
stand_end = 100,
|
||||
walk_start = 150,
|
||||
walk_end = 250,
|
||||
punch_start = 250,
|
||||
punch_end = 350,
|
||||
-- 50-70 is slide/water idle
|
||||
},
|
||||
|
||||
follow = {
|
||||
"ethereal:fish_raw", "animalworld:rawfish", "mobs_fish:tropical",
|
||||
"mobs:meat_raw", "animalworld:rabbit_raw", "animalworld:pork_raw"
|
||||
},
|
||||
view_range = 10,
|
||||
|
||||
on_rightclick = function(self, clicker)
|
||||
|
||||
-- feed or tame
|
||||
if mobs:feed_tame(self, clicker, 4, false, true) then return end
|
||||
if mobs:protect(self, clicker) then return end
|
||||
if mobs:capture_mob(self, clicker, 5, 50, 80, false, nil) then return end
|
||||
end,
|
||||
})
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
mobs:spawn({
|
||||
name = "animalworld:hyena",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"},
|
||||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 30,
|
||||
max_height = 60,
|
||||
|
||||
})
|
||||
end
|
||||
|
||||
mobs:register_egg("animalworld:hyena", ("Hyena"), "ahyena.png")
|
16
init.lua
16
init.lua
|
@ -42,6 +42,22 @@ dofile(path .. "spider.lua") --
|
|||
dofile(path .. "spidermale.lua") --
|
||||
dofile(path .. "crab.lua") --
|
||||
dofile(path .. "reindeer.lua") --
|
||||
dofile(path .. "volverine.lua") --
|
||||
dofile(path .. "owl.lua") --
|
||||
dofile(path .. "frog.lua") --
|
||||
dofile(path .. "monitor.lua") --
|
||||
dofile(path .. "gnu.lua") --
|
||||
dofile(path .. "puffin.lua") --
|
||||
dofile(path .. "anteater.lua") --
|
||||
dofile(path .. "hyena.lua") --
|
||||
dofile(path .. "rat.lua") --
|
||||
dofile(path .. "vulture.lua") --
|
||||
dofile(path .. "toucan.lua") --
|
||||
dofile(path .. "snowleopard.lua") --
|
||||
dofile(path .. "lobster.lua") --
|
||||
dofile(path .. "squid.lua") --
|
||||
dofile(path .. "kobra.lua") --
|
||||
dofile(path .. "bat.lua") --
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ mobs:register_mob("animalworld:kangaroo", {
|
|||
walk_velocity = 5,
|
||||
run_velocity = 5,
|
||||
runaway = true,
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "player"},
|
||||
runaway_from = {"animalworld:bear", "animalworld:crocodile", "animalworld:tiger", "animalworld:spider", "animalworld:spidermale", "animalworld:shark", "animalworld:hyena", "animalworld:kobra", "animalworld:monitor", "animalworld:snowleopard", "animalworld:volverine", "player"},
|
||||
jump = true,
|
||||
jump_height = 8,
|
||||
pushable = true,
|
||||
|
@ -76,6 +76,7 @@ mobs:spawn({
|
|||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
active_object_count = 3,
|
||||
min_height = 5,
|
||||
max_height = 45,
|
||||
day_toggle = true,
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
mobs:register_mob("animalworld:kobra", {
|
||||
stepheight = 2,
|
||||
type = "monster",
|
||||
passive = false,
|
||||
attack_type = "dogshoot",
|
||||
dogshoot_switch = 1,
|
||||
dogshoot_count_max = 12, -- shoot for 10 seconds
|
||||
dogshoot_count2_max = 3, -- dogfight for 3 seconds
|
||||
reach = 3,
|
||||
shoot_interval = 2.2,
|
||||
arrow = "animalworld:snakepoison",
|
||||
shoot_offset = 1,
|
||||
attack_animals = true,
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
hp_min = 20,
|
||||
hp_max = 40,
|
||||
armor = 200,
|
||||
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.95, 0.5},
|
||||
visual = "mesh",
|
||||
mesh = "Kobra.b3d",
|
||||
visual_size = {x = 0.3, y = 0.3},
|
||||
textures = {
|
||||
{"texturekobra.png"},
|
||||
},
|
||||
sounds = {
|
||||
random = "animalworld_kobra",
|
||||
attack = "animalworld_kobra",
|
||||
},
|
||||
makes_footstep_sound = false,
|
||||
view_range = 6,
|
||||
walk_velocity = 1,
|
||||
run_velocity = 2,
|
||||
runaway = false,
|
||||
jump = false,
|
||||
jump_height = 0,
|
||||
stepheight = 2,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
light_damage = 0,
|
||||
fear_height = 3,
|
||||
animation = {
|
||||
speed_normal = 60,
|
||||
stand_start = 0,
|
||||
stand_end = 100,
|
||||
walk_start = 250,
|
||||
walk_end = 350,
|
||||
punch_start = 150,
|
||||
punch_end = 200,
|
||||
-- 50-70 is slide/water idle
|
||||
},
|
||||
|
||||
fly_in = {"default:water_source", "default:river_water_source", "default:water_flowing"},
|
||||
floats = 0,
|
||||
})
|
||||
|
||||
|
||||
if not mobs.custom_spawn_monster then
|
||||
mobs:spawn({
|
||||
name = "animalworld:kobra",
|
||||
nodes = {"default:desert_sandstone", "default:desert_stone", "default:sandstone", "default:dirt_with_rainforest_litter"},
|
||||
min_light = 0,
|
||||
interval = 60,
|
||||
chance = 8000, -- 15000
|
||||
min_height = -30,
|
||||
max_height = 10,
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
mobs:register_egg("animalworld:kobra", ("Cobra"), "akobra.png")
|
||||
|
||||
|
||||
mobs:alias_mob("animalworld:kobra", "animalworld:kobra") -- compatiblity
|
||||
|
||||
-- mese arrow (weapon)
|
||||
mobs:register_arrow("animalworld:snakepoison", {
|
||||
visual = "sprite",
|
||||
-- visual = "wielditem",
|
||||
visual_size = {x = 0.5, y = 0.5},
|
||||
textures = {"animalworld_snakepoison.png"},
|
||||
--textures = {""animalworld_snakepoison.png""},
|
||||
velocity = 6,
|
||||
-- rotate = 180,
|
||||
|
||||
hit_player = function(self, player)
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 2},
|
||||
}, nil)
|
||||
end,
|
||||
|
||||
hit_mob = function(self, player)
|
||||
player:punch(self.object, 1.0, {
|
||||
full_punch_interval = 1.0,
|
||||
damage_groups = {fleshy = 2},
|
||||
}, nil)
|
||||
end,
|
||||
|
||||
hit_node = function(self, pos, node)
|
||||
end
|
||||
})
|
||||
|
Loading…
Reference in New Issue