fix configurable nyancat horrible flying pig with namespaced change
* complete the commit from e114cb543fc0e32f848d615c407764167abda833
* finish the backported confifurable nyancat the horrible flying pig
* backported from 74fc8110c1
* closed https://codeberg.org/minenux/minetest-mod-mobs_doomed/issues/8
This commit is contained in:
parent
5ff7d64b48
commit
eda954a04b
6
init.lua
6
init.lua
@ -16,8 +16,8 @@ if mobs_doomed.regulars == nil then
|
||||
mobs_doomed.regulars = true
|
||||
end
|
||||
|
||||
-- Enable NyanCat
|
||||
dmobs.allow_nyanc = minetest.settings:get_bool("dmobs.allow_nyanc") or false
|
||||
-- Enabling of NyanCat
|
||||
mobs_doomed.allow_nyanc = minetest.settings:get_bool("mobs_doomed.allow_nyanc") or false
|
||||
|
||||
-- Enable fireballs/explosions
|
||||
mobs_doomed.destructive = minetest.settings:get_bool("mobs_doomed.destructive") or false
|
||||
@ -81,7 +81,7 @@ local mobslist = {
|
||||
|
||||
if mobs_doomed.regulars then
|
||||
for _,mobname in pairs(mobslist) do
|
||||
if mobslist == "nyan" and dmobs.allow_nyanc then
|
||||
if mobslist == "nyan" and mobs_doomed.allow_nyanc then
|
||||
loadmob("nyan")
|
||||
else
|
||||
loadmob(mobname)
|
||||
|
@ -10,6 +10,6 @@ mobs_doomed.destructive (Fire balls will be destructive) bool false
|
||||
# If disabled only a common dragon will be spawned
|
||||
mobs_doomed.dragons (Enable all the dragons not only common) bool true
|
||||
|
||||
# if enabled will load a mobs very ugply and stupid.. nyancat.. a pig that fly and leve arciris
|
||||
# if enabled will load a mobs very ugly and stupid.. nyancat.. a pig that fly and leve arciris
|
||||
mobs_doomeds.allow_nyanc (Enable the stupid nyanCat mob fliying pig) bool false
|
||||
|
||||
|
10
spawn.lua
10
spawn.lua
@ -26,10 +26,12 @@ if mobs_doomed.regulars then
|
||||
-- friendlies
|
||||
-- nodes = {"darkage:marble"}
|
||||
-- neighbor = {"darkage:slate"}
|
||||
mobs:spawn({name = "mobs_doomed:nyan", nodes = {"air"}, neighbor = {"group:leaves"},
|
||||
min_light = 10, max_light = 15, interval = 300, chance = 64000, active_object_count = 2, min_height = 0, max_height = 2000})
|
||||
mobs:spawn({name = "mobs_doomed:nyan", nodes = {"air"}, neighbor = {"ethereal:mushroom", "nyanland:meseleaves"},
|
||||
min_light = 10, max_light = 15, interval = 300, chance = 16000, active_object_count = 2, min_height = 0, max_height = 2000})
|
||||
if mobs_doomed.allow_nyanc then
|
||||
mobs:spawn({name = "mobs_doomed:nyan", nodes = {"air"}, neighbor = {"group:leaves"},
|
||||
min_light = 10, max_light = 15, interval = 300, chance = 64000, active_object_count = 2, min_height = 0, max_height = 2000})
|
||||
mobs:spawn({name = "mobs_doomed:nyan", nodes = {"air"}, neighbor = {"ethereal:mushroom", "nyanland:meseleaves"},
|
||||
min_light = 10, max_light = 15, interval = 300, chance = 16000, active_object_count = 2, min_height = 0, max_height = 2000})
|
||||
end
|
||||
mobs:spawn({name = "mobs_doomed:hedgehog", nodes = {"group:flora", "ethereal:prairie_dirt"},
|
||||
neighbor = {}, min_light = 0, max_light = 8, interval = 300, chance = 8000, active_object_count = 3, min_height = 0, max_height = 2000})
|
||||
mobs:spawn({name = "mobs_doomed:whale", nodes = {"default:water_source"}, neighbor = {"group:sand"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user