Add files via upload

master
Skandarella 2021-04-02 18:18:01 +02:00 committed by GitHub
parent 6f7b56eda0
commit 4112eb181c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
23 changed files with 44 additions and 34 deletions

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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"},

View File

@ -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

View File

@ -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"},

View File

@ -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"},