diff --git a/ankylosaurus.lua b/ankylosaurus.lua index cf3bf4d..3313547 100644 --- a/ankylosaurus.lua +++ b/ankylosaurus.lua @@ -66,7 +66,7 @@ if minetest.get_modpath("ethereal") then end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:ankylosaurus", nodes = {"default:sand", "default:desert_sandstone", "default:sandstone", "default:dry_dirt_with_dry_grass"}, diff --git a/carnotaurus.lua b/carnotaurus.lua index 8efabb3..85e36e5 100644 --- a/carnotaurus.lua +++ b/carnotaurus.lua @@ -72,7 +72,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:dry_dirt", "default:dry_dirt_with_dry_grass"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:carnotaurus", nodes = {"default:dry_dirt_with_dry_grass"}, diff --git a/cavebear.lua b/cavebear.lua index 2eed463..0dcb408 100644 --- a/cavebear.lua +++ b/cavebear.lua @@ -66,7 +66,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:gray_dirt", "ethereal:crystal_dirt", "default:permafrost_with_moss", "default:dirt_with_snow", "default:dirt_with_coniferous_litter"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:smilodon", nodes = {"default:permafrost_with_moss", "default:dirt_with_snow", "default:dirt_with_coniferous_litter"}, diff --git a/deinotherium.lua b/deinotherium.lua index aeedf0f..d404855 100644 --- a/deinotherium.lua +++ b/deinotherium.lua @@ -68,7 +68,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:grove_dirt", "default:dirt_with_grass"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:deinotherium", nodes = {"default:dirt_with_grass"}, diff --git a/entelodon.lua b/entelodon.lua index 12c4cf3..599c4ee 100644 --- a/entelodon.lua +++ b/entelodon.lua @@ -70,7 +70,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:dry_dirt", "default:desert_sand", "default:dry_dirt_with_dry_grass"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:entelodon", nodes = {"default:desert_sand", "default:dry_dirt_with_dry_grass"}, diff --git a/gastornis.lua b/gastornis.lua index be5ea2b..80708d0 100644 --- a/gastornis.lua +++ b/gastornis.lua @@ -77,7 +77,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:grove_dirt", "ethereal:bamboo_dirt", "default:dirt_with_rainforest_litter"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:gastornis", nodes = {"default:dirt_with_rainforest_litter"}, diff --git a/gigantopithecus.lua b/gigantopithecus.lua index 7f58b05..b1331e2 100644 --- a/gigantopithecus.lua +++ b/gigantopithecus.lua @@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:grove_dirt", "ethereal:bamboo_dirt", "default:dirt_with_grass", "default:dirt_with_rainforest_litter"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:gigantopithecus", nodes = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"}, diff --git a/init.lua b/init.lua index 83fa652..9410199 100644 --- a/init.lua +++ b/init.lua @@ -12,7 +12,7 @@ mobs.intllib = S local input = io.open(path .. "spawn.lua", "r") if input then - mobs.custom_spawn_animal = true + mobs.custom_spawn_livingfloatlands = true input:close() input = nil end @@ -44,7 +44,7 @@ dofile(path .. "hunger.lua") -- -- Load custom spawning -if mobs.custom_spawn_animal then +if mobs.custom_spawn_livingfloatlands then dofile(path .. "spawn.lua") end diff --git a/lycaenops.lua b/lycaenops.lua index 5fdca61..048a105 100644 --- a/lycaenops.lua +++ b/lycaenops.lua @@ -66,7 +66,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:gray_dirt", "dry:dry_dirt", "default:dirt_with_grass", "default:dry_dirt_with_dry_grass", "default:dirt_with_coniferous_litter"} end -if not mobs.custom_spawn_monster then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:lycaenops", nodes = {"default:dirt_with_grass", "default:dry_dirt_with_dry_grass", "default:dirt_with_coniferous_litter"}, diff --git a/mammooth.lua b/mammooth.lua index f8d6692..41dcc37 100644 --- a/mammooth.lua +++ b/mammooth.lua @@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:crystal_dirt", "ethereal:gray_dirt", "default:permafrost_with_moss", "default:dirt_with_snow", "default:snow"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:mammooth", nodes = {"default:permafrost_with_moss", "default:dirt_with_snow", "default:snow"}, diff --git a/nigersaurus.lua b/nigersaurus.lua index 57bd095..df36a8c 100644 --- a/nigersaurus.lua +++ b/nigersaurus.lua @@ -64,7 +64,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:grove_dirt", "ethereal:bamboo_dirt", "default:dirt_with_coniferous_litter"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:nigersaurus", nodes = {"default:dirt_with_coniferous_litter"}, diff --git a/oviraptor.lua b/oviraptor.lua index 66dc63b..cd4e116 100644 --- a/oviraptor.lua +++ b/oviraptor.lua @@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:dry_dirt", "default:desert_sand", "default:desert_sandstone", "default:sandstone"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:oviraptor", nodes = {"default:desert_sand", "default:desert_sandstone", "default:sandstone"}, diff --git a/parasaurolophus.lua b/parasaurolophus.lua index 5afd750..6e05758 100644 --- a/parasaurolophus.lua +++ b/parasaurolophus.lua @@ -66,7 +66,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:grove_dirt", "default:dirt_with_coniferous_litter"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:parasaurolophus", nodes = {"default:dirt_with_coniferous_litter"}, diff --git a/rhamphorhynchus.lua b/rhamphorhynchus.lua index ae2db30..fb4d4b8 100644 --- a/rhamphorhynchus.lua +++ b/rhamphorhynchus.lua @@ -72,7 +72,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:grove_dirt", "ethereal:bamboo_dirt", "default:dirt_with_rainforest_litter", "default:dirt_with_grass", "default:sand"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:rhamphorhynchus", nodes = {"default:dirt_with_rainforest_litter", "default:dirt_with_grass", "default:sand"}, diff --git a/smilodon.lua b/smilodon.lua index 35273c1..8e540de 100644 --- a/smilodon.lua +++ b/smilodon.lua @@ -64,7 +64,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:crystal_dirt", "ethereal:gray_dirt", "default:permafrost_with_moss", "default:dirt_with_snow", "default:snow"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:smilodon", nodes = {"default:permafrost_with_moss", "default:dirt_with_snow", "default:snow"}, diff --git a/stegosaurus.lua b/stegosaurus.lua index ebe66b5..ad6fa28 100644 --- a/stegosaurus.lua +++ b/stegosaurus.lua @@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:grove_dirt", "default:dirt_with_coniferous_litter", "default:dirt_with_grass", "default:dirt_with_rainforest_litter"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:stegosaurus", nodes = {"default:dirt_with_coniferous_litter", "default:dirt_with_grass", "default:dirt_with_rainforest_litter"}, diff --git a/triceratops.lua b/triceratops.lua index 9a43fa8..f13c3a7 100644 --- a/triceratops.lua +++ b/triceratops.lua @@ -70,7 +70,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:bamboo_dirt", "default:dry_dirt_with_dry_grass"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:triceratops", nodes = {"default:dry_dirt_with_dry_grass"}, diff --git a/tyrannosaurus.lua b/tyrannosaurus.lua index d363f42..6147b7f 100644 --- a/tyrannosaurus.lua +++ b/tyrannosaurus.lua @@ -69,7 +69,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:dry_dirt", "default:dry_dirt_with_dry_grass", "default:dirt_with_rainforest_litter", "default:sand"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:tyrannosaurus", nodes = {"default:dry_dirt_with_dry_grass", "default:dirt_with_rainforest_litter"}, diff --git a/velociraptor.lua b/velociraptor.lua index 2a0b914..8a2a896 100644 --- a/velociraptor.lua +++ b/velociraptor.lua @@ -71,7 +71,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:prairie_dirt", "ethereal:dry_dirt", "default:desert_sand", "default:desert_sandstone", "default:sandstone"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:velociraptor", nodes = {"default:desert_sand", "default:desert_sandstone", "default:sandstone"}, diff --git a/wildhorse.lua b/wildhorse.lua index 9d47650..b129bdb 100644 --- a/wildhorse.lua +++ b/wildhorse.lua @@ -67,7 +67,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:crystal_dirt", "ethereal:gray_dirt", "default:dry_dirt_with_dry_grass", "default:dirt_with_grass"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:wildhorse", nodes = {"default:dry_dirt_with_dry_grass", "default:dirt_with_grass"}, diff --git a/woollyrhino.lua b/woollyrhino.lua index 351725b..dc4c3e5 100644 --- a/woollyrhino.lua +++ b/woollyrhino.lua @@ -70,7 +70,7 @@ if minetest.get_modpath("ethereal") then spawn_on = {"ethereal:mushroom_dirt", "ethereal:crystal_dirt", "default:permafrost_with_moss", "default:dirt_with_snow", "default:snow"} end -if not mobs.custom_spawn_animal then +if not mobs.custom_spawn_livingfloatlands then mobs:spawn({ name = "livingfloatlands:woollyrhino", nodes = {"default:permafrost_with_moss", "default:dirt_with_snow", "default:snow"},