Add files via upload
parent
6f7b56eda0
commit
4112eb181c
2
ant.lua
2
ant.lua
|
@ -49,7 +49,7 @@ mobs:register_mob("animalworld:ant", {
|
|||
})
|
||||
|
||||
|
||||
if not mobs.custom_spawn_monster then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:ant",
|
||||
nodes = {"default:dirt_with_coniferous_litter"},
|
||||
|
|
|
@ -33,7 +33,7 @@ mobs:register_mob("animalworld:anteater", {
|
|||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "mobs:leather", chance = 1, min = 0, max = 2},
|
||||
{name = "animalworld:anteatercorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:anteatercorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
|
@ -72,7 +72,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"ethereal:grass_grove", "ethereal:green_dirt", "default:dirt_with_rainforest_litter"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:anteater",
|
||||
nodes = {"default:dirt_with_rainforest_litter"},
|
||||
|
|
2
bat.lua
2
bat.lua
|
@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:dirt_with_grass", "default:dry_dirt_with_dry_grass", "default:dirt_with_rainforest_litter", "default:dirt_with_coniferous_litter", "ethereal:gray_dirt", "ethereal:mushroom_dirt", "ethereal:grove_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld 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"},
|
||||
|
|
4
bear.lua
4
bear.lua
|
@ -28,7 +28,7 @@ stepheight = 1,
|
|||
stepheight = 1,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:bearcorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:bearcorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
|
@ -64,7 +64,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:dirt_with_coniferous_litter", "default:permafrost_with_moss", "ethereal:bamboo_dirt", "ethereal:gray_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:bear",
|
||||
nodes = {"default:dirt_with_coniferous_litter"}, {"default:permafrost_with_moss"},
|
||||
|
|
|
@ -30,7 +30,7 @@ stepheight = 3,
|
|||
drops = {
|
||||
{name = "animalworld:chicken_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:chicken_feather", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:blackbirdcorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:blackbirdcorpse", chance = 7, min = 1, max = 1},
|
||||
|
||||
},
|
||||
water_damage = 1,
|
||||
|
@ -67,7 +67,7 @@ view_range = 4,
|
|||
end,
|
||||
})
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:blackbird",
|
||||
nodes = {"default:dirt_with_grass"},
|
||||
|
|
4
boar.lua
4
boar.lua
|
@ -34,7 +34,7 @@ mobs:register_mob("animalworld:boar", {
|
|||
replace_with = "default:dirt",
|
||||
drops = {
|
||||
{name = "animalworld:pork_raw", chance = 1, min = 1, max = 3},
|
||||
{name = "animalworld:boarcorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:boarcorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
|
@ -74,7 +74,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"ethereal:mushroom_dirt", "ethereal:bamboo_dirt", "ethereal:green_dirt", "ethereal:mushroom_dirt", "default:dirt_with_coniferous_litter", "default:dirt_gray"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:boar",
|
||||
nodes = {"default:dirt_with_coniferous_litter", "default:dirt_gray"},
|
||||
|
|
|
@ -33,7 +33,7 @@ mobs:register_mob("animalworld:camel", {
|
|||
view_range = 7,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:camelcorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:camelcorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
|
@ -72,7 +72,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:desert_sand", "ethereal:dry_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:camel",
|
||||
nodes = {"default:desert_sand", "default:sandstone"},
|
||||
|
|
2
carp.lua
2
carp.lua
|
@ -64,7 +64,7 @@ stepheight = 0.0,
|
|||
end,
|
||||
})
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:carp",
|
||||
nodes = {"default:water_source"}, {"default:river_water_source"},
|
||||
|
|
2
crab.lua
2
crab.lua
|
@ -66,7 +66,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = "default:sand"
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:crab",
|
||||
nodes = {"default:sand"},
|
||||
|
|
|
@ -29,7 +29,7 @@ stepheight = 1,
|
|||
stepheight = 1,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:crocodilecorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:crocodilecorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
|
@ -68,7 +68,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"ethereal:grove_dirt", "default:dry_dirt_with_dry_grass", "default:dirt_with_rainforest_litter"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:crocodile",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"},
|
||||
|
|
|
@ -60,7 +60,7 @@ mobs:register_mob("animalworld:divingbeetle", {
|
|||
})
|
||||
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:divingbeetle",
|
||||
nodes = {"default:water_source", "default:river_water_source"},
|
||||
|
|
|
@ -64,7 +64,7 @@ view_range = 5,
|
|||
})
|
||||
|
||||
|
||||
if not mobs.custom_spawn_monster then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:dragonfly",
|
||||
nodes = {"air"},
|
||||
|
|
|
@ -29,7 +29,7 @@ stepheight = 2,
|
|||
stepheight = 2,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:elephantcorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:elephantcorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
|
@ -68,7 +68,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"}, {"ethereal:grove_dirt"}, {"ethereal:bamboo_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:elephant",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"},
|
||||
|
|
2
frog.lua
2
frog.lua
|
@ -60,7 +60,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = "ethereal:prairie_dirt", "default:dirt_with_grass", "ethereal:green_dirt"
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:frog",
|
||||
nodes = {"default:dirt_with_grass"}, {"default:dirt_with_rainforest_litter"},
|
||||
|
|
4
gnu.lua
4
gnu.lua
|
@ -33,7 +33,7 @@ mobs:register_mob("animalworld:gnu", {
|
|||
view_range = 10,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:gnucorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:gnucorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
|
@ -73,7 +73,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:dry_dirt_with_dry_grass", "ethereal:prairie_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:gnu",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"},
|
||||
|
|
2
goby.lua
2
goby.lua
|
@ -63,7 +63,7 @@ stepheight = 0.0,
|
|||
end,
|
||||
})
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:goby",
|
||||
nodes = {"default:water_source"}, {"default:river_water_source"},
|
||||
|
|
|
@ -56,7 +56,7 @@ mobs:register_mob("animalworld:goldenmole", {
|
|||
|
||||
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:goldenmole",
|
||||
nodes = {"default:desert_sand"},
|
||||
|
|
2
hare.lua
2
hare.lua
|
@ -107,7 +107,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = "ethereal:prairie_dirt", "default:dirt_with_grass"
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:hare",
|
||||
nodes = {"default:dirt_with_grass"},
|
||||
|
|
|
@ -29,7 +29,7 @@ stepheight = 1,
|
|||
stepheight = 1,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:hippocorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:hippocorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
|
@ -73,7 +73,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"}, {"ethereal:grove_dirt"}, {"ethereal:prairie_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:hippo",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"}, {"default:dirt_with_rainforest_litter"},
|
||||
|
|
|
@ -29,7 +29,7 @@ stepheight = 2,
|
|||
stepheight = 2,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:hyenacorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:hyenacorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 4,
|
||||
|
@ -65,7 +65,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:dry_dirt_with_dry_grass"}, {"ethereal:dry_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:hyena",
|
||||
nodes = {"default:dry_dirt_with_dry_grass"},
|
||||
|
|
12
init.lua
12
init.lua
|
@ -7,6 +7,13 @@ local S = minetest.get_translator and minetest.get_translator("animalworld") or
|
|||
|
||||
mobs.intllib = S
|
||||
|
||||
-- Check for custom mob spawn file
|
||||
local input = io.open(path .. "spawn.lua", "r")
|
||||
if input then
|
||||
mobs.custom_spawn_animalworld = true
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
|
||||
|
||||
-- Animals
|
||||
|
@ -69,7 +76,10 @@ dofile(path .. "hunger.lua") --
|
|||
|
||||
|
||||
|
||||
|
||||
-- Load custom spawning
|
||||
if mobs.custom_spawn_animalworld then
|
||||
dofile(path .. "spawn.lua")
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ mobs:register_mob("animalworld:kangaroo", {
|
|||
view_range = 10,
|
||||
drops = {
|
||||
{name = "mobs:meat_raw", chance = 1, min = 1, max = 1},
|
||||
{name = "animalworld:kangaroocorpse", chance = 9, min = 1, max = 1},
|
||||
{name = "animalworld:kangaroocorpse", chance = 7, min = 1, max = 1},
|
||||
},
|
||||
water_damage = 0,
|
||||
lava_damage = 5,
|
||||
|
@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"ethereal:grass_grove", "default:desert_sand", "ethereal:dry_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_animal then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:kangaroo",
|
||||
nodes = {"default:desert_sand", "default:dry_dirt_with_dry_grass"},
|
||||
|
|
|
@ -64,7 +64,7 @@ if minetest.get_modpath("ethereal") then
|
|||
spawn_on = {"default:desert_sandstone", "default:desert_stone", "default:sandstone", "default:dirt_with_rainforest_litter", "ethereal:grove_dirt"}
|
||||
end
|
||||
|
||||
if not mobs.custom_spawn_monster then
|
||||
if not mobs.custom_spawn_animalworld then
|
||||
mobs:spawn({
|
||||
name = "animalworld:kobra",
|
||||
nodes = {"default:desert_sandstone", "default:desert_stone", "default:sandstone", "default:dirt_with_rainforest_litter"},
|
||||
|
|
Loading…
Reference in New Issue