Call 'get_bool' instead of 'get' for 'log_mods' setting

This commit is contained in:
AntumDeluge 2017-06-15 20:41:17 -07:00
parent e053f71ce6
commit 6219fafd8d
39 changed files with 39 additions and 39 deletions

View File

@ -178,6 +178,6 @@ minetest.register_craftitem(":mobs:feather", {
inventory_image = "mobs_feather.png",
})
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC mobs loaded")
end

View File

@ -88,6 +88,6 @@ mobs:spawn_specific("mobs_mc:bat", {"default:air","default:stone"},{"air"},0, 17
mobs:register_egg("mobs_mc:bat", "Bat", "bat_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Bat loaded")
end

View File

@ -161,6 +161,6 @@ minetest.register_craftitem("mobs_mc:blaze_powder", {
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Blaze loaded")
end

View File

@ -134,6 +134,6 @@ mobs:register_egg("mobs_mc:rabbit", "Rabbit", "rabbit_inv.png", 0)
-- compatibility
mobs:alias_mob("mobs:bunny", "mobs_mc:rabbit")
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Bunny loaded")
end

View File

@ -333,6 +333,6 @@ mobs:alias_mob("mobs:chicken", "mobs_mc:chicken")
-- spawn eggs
mobs:register_egg("mobs_mc:chicken", "Chicken", "chicken_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC chicken loaded")
end

View File

@ -197,6 +197,6 @@ mobs:alias_mob("mobs_animal:cow", "mobs_mc:cow")
-- spawn egg
mobs:register_egg("mobs_mc:cow", "Cow", "cow_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Cow loaded")
end

View File

@ -199,6 +199,6 @@ mobs:alias_mob("mobs:cow", "mobs_mc:cow")
--mobs:register_egg("mobs_mc:mooshroom_cow", "Mooshroom_Cow", "spawn_egg_mooshroom_cow.png")
mobs:register_egg("mobs_mc:mooshroom_cow", "Mooshroom", "mooshroom_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Cow loaded")
end

View File

@ -183,6 +183,6 @@ mobs:alias_mob("mobs:creeper", "mobs_mc:creeper")
-- spawn eggs
mobs:register_egg("mobs_mc:creeper", "Creeper", "creeper_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Creeper loaded")
end

View File

@ -119,7 +119,7 @@ mobs:register_spawn("mobs_mc:ender_man", { "default:end_stone"}, 7, -1, 5000, 5,
-- spawn eggs
mobs:register_egg("mobs_mc:ender_man", "Ender man", "enderman_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Enderman loaded")
end

View File

@ -154,6 +154,6 @@ minetest.register_craftitem("mobs_mc:ghast_tear", {
--mobs:register_egg("mobs_mc:ghast", "Ghast", "ghast_front.png")
mobs:register_egg("mobs_mc:ghast", "Ghast", "ghast_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Ghast loaded")
end

View File

@ -202,6 +202,6 @@ minetest.register_craft({
})
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Horse loaded")
end

View File

@ -164,6 +164,6 @@ mobs:register_spawn("mobs_mc:horseskeleton", {"default:cobblestone"}, 5, -1, 170
--spawnegg
mobs:register_egg("mobs_mc:horseskeleton", "Skeleton Horse", "horseskeleton_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Skeleton Horse loaded")
end

View File

@ -168,6 +168,6 @@ mobs:register_spawn("mobs_mc:horsezombie", {"default:cobblestone"}, 5, -1, 17000
--spawnegg
mobs:register_egg("mobs_mc:horsezombie", "Zombie Horse", "horsezombie_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Horse Zombie loaded")
end

View File

@ -105,6 +105,6 @@ mobs:register_spawn("mobs_mc:iron_golem", {"default:steelblock"}, 20, 0, 19000,
mobs:register_egg("mobs_mc:iron_golem", "Iron Golem", "iron_golem_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Iron Golem loaded")
end

View File

@ -186,6 +186,6 @@ mobs:register_spawn("mobs_mc:llama", {"default:dirt_with_dry_grass"}, 20, 12, 15
-- spawn eggs
mobs:register_egg("mobs_mc:llama", "Llama", "llama_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Llama loaded")
end

View File

@ -93,6 +93,6 @@ mobs:alias_mob("mobs:kitten", "mobs_mc:ocelot")
-- spawn eggs
mobs:register_egg("mobs_mc:ocelot", "Ocelot", "cat_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Ocelot loaded")
end

View File

@ -142,6 +142,6 @@ mobs:register_spawn("mobs_mc:parrot", {"default:dirt_with_rainforest_litter"}, 2
-- spawn eggs
mobs:register_egg("mobs_mc:parrot", "Parrot", "parrot_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Parrot loaded")
end

View File

@ -250,6 +250,6 @@ mobs:alias_mob("mobs:pig", "mobs_mc:pig")
-- spawn eggs
mobs:register_egg("mobs_mc:pig", "Pig", "pig_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Pig loaded")
end

View File

@ -131,6 +131,6 @@ mobs:register_spawn("mobs_mc:polar_bear", {"default:snowblock"}, 20, 8, 17000, 3
mobs:register_egg("mobs_mc:polar_bear", "Polar bear", "polarbear_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Polar Bear loaded")
end

View File

@ -234,6 +234,6 @@ mobs:alias_mob("mobs_animal:sheep", "mobs_mc:sheep")
-- spawn eggs
mobs:register_egg("mobs_mc:sheep", "Sheep", "mobs_mc_spawn_icon_sheep.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Sheep loaded")
end

View File

@ -97,6 +97,6 @@ mobs:spawn_specific("mobs_mc:shulker", {"default:purpur_block"}, {"default:cobbl
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Shulkers loaded")
end

View File

@ -126,6 +126,6 @@ mobs:spawn_specific("mobs_mc:skeleton", {"default:dirt_with_grass", "default:dir
-- spawn eggs
mobs:register_egg("mobs_mc:skeleton", "Skeleton", "skeleton_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Skeleton loaded")
end

View File

@ -121,6 +121,6 @@ mobs:spawn_specific("mobs_mc:stray", {"default:sandstone", "default:sand"},{"air
-- spawn eggs
mobs:register_egg("mobs_mc:stray", "Stray", "stray_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Stray Skeleton loaded")
end

View File

@ -122,6 +122,6 @@ mobs:register_spawn("mobs_mc:witherskeleton",
-- spawn eggs
mobs:register_egg("mobs_mc:witherskeleton", "Wither Skeleton", "witherskeleton_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Wither Skeleton loaded")
end

View File

@ -449,6 +449,6 @@ mobs:register_egg("mobs_mc:magma_cube_big", "Magma Cube", "magmacube_inv.png")
mobs:register_egg("mobs_mc:slime_big", "Slime", "slime_inv.png")
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Slimes loaded")
end

View File

@ -130,6 +130,6 @@ mobs:register_spawn("mobs_mc:enderman", { "default:sand", "default:desert_sand"}
mobs:register_egg("mobs_mc:enderman", "Enderman", "spawn_egg_overlay.png")
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Enderman loaded")
end

View File

@ -148,6 +148,6 @@ mobs:alias_mob("esmobs:spider", "mobs_mc:spider")
--mobs:register_egg("mobs_mc:spider", "Spider", "mobs_cobweb.png", 1)
mobs:register_egg("mobs_mc:spider", "Spider", "spider_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Spiders loaded")
end

View File

@ -145,6 +145,6 @@ minetest.register_craftitem("mobs_mc:spider_eye", {
--mobs:register_egg("mobs_mc:spider", "Spider", "mobs_cobweb.png", 1)
mobs:register_egg("mobs_mc:cavespider", "Cave Spider", "cave_spider_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Spiders loaded")
end

View File

@ -113,6 +113,6 @@ minetest.register_craftitem("mobs_mc:totem", {
mobs:register_egg("mobs_mc:vex", "Vex", "vex_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Vex loaded")
end

View File

@ -205,6 +205,6 @@ mobs:alias_mob("mobs:villager", "mobs_mc:villager")
--mobs:register_egg("mobs_mc:villager", "Villager", "spawn_egg_villager.png")
mobs:register_egg("mobs_mc:villager", "Villager", "villager_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC mobs loaded")
end

View File

@ -219,6 +219,6 @@ mobs:alias_mob("mobs:villager", "mobs_mc:villager")
mobs:register_egg("mobs_mc:villager", "Villager", "spawn_egg_villager.png")
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC mobs loaded")
end

View File

@ -193,6 +193,6 @@ mobs:spawn_specific("mobs_mc:evoker", {"stairs:slab_aspen_wood"}, {"air"}, 0, 20
mobs:register_egg("mobs_mc:evoker", "Evoker", "evoker_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Evoker loaded")
end

View File

@ -45,6 +45,6 @@ mobs:register_mob("mobs_mc:illusioner", {
mobs:register_egg("mobs_mc:illusioner", "Illusioner", "illusioner_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Illusioner loaded")
end

View File

@ -113,6 +113,6 @@ mobs:spawn_specific("mobs_mc:evoker", {"stairs:slab_aspen_wood"}, {"air"}, 0, 20
-- spawn eggs
mobs:register_egg("mobs_mc:vindicator", "Vindicator", "vindicator_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC vindicator loaded")
end

View File

@ -118,6 +118,6 @@ mobs:register_spawn("mobs_mc:villager_zombie", {"mg_villages:road"}, 7, -1, 4090
--mobs:register_egg("mobs_mc:villager", "Villager", "spawn_egg_villager.png")
mobs:register_egg("mobs_mc:villager_zombie", "Zombie Villager", "zvillager_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC mobs Zombie Villager loaded")
end

View File

@ -141,6 +141,6 @@ mobs:register_spawn("mobs_mc:witch", {"default:dirt_with_rainforest_litter"}, 20
--mobs:register_egg("mobs_mc:witch", "Villager", "spawn_egg_villager.png")
mobs:register_egg("mobs_mc:witch", "Witch", "witch_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC mobs loaded")
end

View File

@ -218,6 +218,6 @@ mobs:alias_mob("esmobs:dog", "mobs_mc:dog")
--mobs:register_egg("mobs_mc:dog", "Dog", "wool_brown.png", 1)
mobs:register_egg("mobs_mc:wolf", "Wolf", "wolf_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Wolf loaded")
end

View File

@ -168,6 +168,6 @@ mobs:register_egg("mobs_mc:husk", "Spawn Husk", "spawn_egg_husk.png") -- TODO: T
mobs:register_egg("mobs_mc:baby_husk", "Spawn Baby Husk", "spawn_egg_baby_husk.png") -- TODO: To be removed
mobs:register_egg("mobs_mc:zombie", "Zombie", "zombie_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Zombie loaded")
end

View File

@ -146,6 +146,6 @@ mobs:alias_mob("mobs:pigman", "mobs_mc:pigman")
-- spawn eggs
mobs:register_egg("mobs_mc:pigman", "Zombie Pigman", "zombie_pigman_inv.png", 0)
if minetest.settings:get("log_mods") then
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "MC Pigmen loaded")
end