diff --git a/mods/coloredwood/init.lua b/mods/coloredwood/init.lua index 23dfa156..f1c863ce 100755 --- a/mods/coloredwood/init.lua +++ b/mods/coloredwood/init.lua @@ -133,5 +133,5 @@ dofile(minetest.get_modpath("coloredwood").."/wood.lua") dofile(minetest.get_modpath("coloredwood").."/fence.lua") dofile(minetest.get_modpath("coloredwood").."/stick.lua") -print("[Colored Wood] Loaded!") +minetest.log("action", "[Colored Wood] Loaded!") diff --git a/mods/colouredstonebricks/init.lua b/mods/colouredstonebricks/init.lua index e9cb82f7..d686490a 100755 --- a/mods/colouredstonebricks/init.lua +++ b/mods/colouredstonebricks/init.lua @@ -75,4 +75,4 @@ minetest.register_alias("dye:dark_blue","dye:blue") minetest.register_alias("dye:dark_pink","dye:magenta") minetest.register_alias("dye:purple","dye:violet") -print ("Coloured Stone Bricks [colouredstonebricks] has loaded!") +minetest.log ("action", "Coloured Stone Bricks [colouredstonebricks] has loaded!") diff --git a/mods/compassgps/init.lua b/mods/compassgps/init.lua index 09e2525b..2e1d52e3 100644 --- a/mods/compassgps/init.lua +++ b/mods/compassgps/init.lua @@ -61,7 +61,7 @@ local default_bookmark = {} local backwardscompatsave = "NO" -print(S("compassgps reading bookmarks")) +minetest.log("action", S("compassgps reading bookmarks")) local file = io.open(minetest.get_worldpath().."/bookmarks", "r") if file then bookmarks = minetest.deserialize(file:read("*all")) @@ -127,7 +127,7 @@ end --distance3d -- ********************************************************** -print(S("compassgps reading settings")) +minetest.log("action", S("compassgps reading settings")) if minetest.is_singleplayer() and show_shared_on_singleplayer==false then singleplayer=true else @@ -570,7 +570,7 @@ end --write_bookmarks function compassgps.write_settings() --loop through players and set settings --(less error prone than trying to keep settings in sync all the time - print(S("compassgps writing settings")) + minetest.log("action", S("compassgps writing settings")) local players = minetest.get_connected_players() for i,player in ipairs(players) do local name = player:get_player_name(); diff --git a/mods/darkage/init.lua b/mods/darkage/init.lua index be2ba198..63b5330b 100755 --- a/mods/darkage/init.lua +++ b/mods/darkage/init.lua @@ -13,4 +13,4 @@ dofile(minetest.get_modpath("darkage").."/aliases.lua") -- Config -- -print ("Darkage [darkage] has loaded!") \ No newline at end of file +minetest.log ("Darkage [darkage] has loaded!") diff --git a/mods/death_messages/init.lua b/mods/death_messages/init.lua index 24094725..4ac66a0d 100755 --- a/mods/death_messages/init.lua +++ b/mods/death_messages/init.lua @@ -123,5 +123,5 @@ else end ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ----------------------------------------------------------------------------------------------- diff --git a/mods/fishing/init.lua b/mods/fishing/init.lua index 13dd5b8d..18eecf4b 100644 --- a/mods/fishing/init.lua +++ b/mods/fishing/init.lua @@ -531,5 +531,5 @@ else end ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ----------------------------------------------------------------------------------------------- diff --git a/mods/food/food_basic/init.lua b/mods/food/food_basic/init.lua index 9f035d49..453d2877 100755 --- a/mods/food/food_basic/init.lua +++ b/mods/food/food_basic/init.lua @@ -6,7 +6,7 @@ -- Some basic foods -- ===================================== -print("Food Mod - Version 2.3") +minetest.log("action", "Food Mod - Version 2.3") dofile(minetest.get_modpath("food_basic").."/support.lua") dofile(minetest.get_modpath("food_basic").."/ingredients.lua") diff --git a/mods/homedecor_modpack/homedecor/init.lua b/mods/homedecor_modpack/homedecor/init.lua index 1c28ce9a..360d4ed6 100755 --- a/mods/homedecor_modpack/homedecor/init.lua +++ b/mods/homedecor_modpack/homedecor/init.lua @@ -170,4 +170,4 @@ dofile(homedecor.modpath.."/handlers/locked.lua") dofile(homedecor.modpath.."/crafts.lua") -print("[HomeDecor] "..S("Loaded!")) +minetest.log("action", "[HomeDecor] "..S("Loaded!")) diff --git a/mods/homedecor_modpack/signs_lib/init.lua b/mods/homedecor_modpack/signs_lib/init.lua index 2654ff13..699a43b8 100755 --- a/mods/homedecor_modpack/signs_lib/init.lua +++ b/mods/homedecor_modpack/signs_lib/init.lua @@ -634,7 +634,7 @@ function signs_lib.determine_sign_type(itemstack, placer, pointed_thing, locked) local fdir = minetest.dir_to_facedir(dir) local pt_name = minetest.get_node(under).name - print(dump(pt_name)) + minetest.log("action", dump(pt_name)) local signname = itemstack:get_name() if fences_with_sign[pt_name] and signname == "default:sign_wall" then @@ -981,7 +981,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname) minetest.register_node(":"..fencename, def) minetest.register_node(":"..fencewithsignname, def_sign) table.insert(signs_lib.sign_node_list, fencewithsignname) - print(S("Registered %s and %s"):format(fencename, fencewithsignname)) + minetest.log("action", S("Registered %s and %s"):format(fencename, fencewithsignname)) end build_char_db() diff --git a/mods/mana/init.lua b/mods/mana/init.lua index 4ecd5dbf..3dfb5953 100644 --- a/mods/mana/init.lua +++ b/mods/mana/init.lua @@ -173,7 +173,7 @@ do local savetable = minetest.deserialize(string) mana.playerlist = savetable.playerlist if mana.playerlist == nil then mana.playerlist = {} end - minetest.debug("[mana] mana.mt successfully read.") + minetest.log("action", "[mana] mana.mt successfully read.") end end end diff --git a/mods/mesecons/mesecons/init.lua b/mods/mesecons/mesecons/init.lua index 096e509f..031d8d90 100644 --- a/mods/mesecons/mesecons/init.lua +++ b/mods/mesecons/mesecons/init.lua @@ -126,7 +126,7 @@ function mesecon.receptor_off(pos, rules) end -print("[OK] Mesecons") +minetest.log("action", "[OK] Mesecons") -- Deprecated stuff -- To be removed in future releases diff --git a/mods/moretrees/init.lua b/mods/moretrees/init.lua index 9c368837..5f1bfdb2 100644 --- a/mods/moretrees/init.lua +++ b/mods/moretrees/init.lua @@ -301,4 +301,4 @@ function moretrees:grow_fir_snow(pos) minetest.spawn_tree(pos,moretrees.fir_model) end -print(S("[Moretrees] Loaded (2013-02-11)")) +minetest.log("action", S("[Moretrees] Loaded (2013-02-11)")) diff --git a/mods/nether/nether/init.lua b/mods/nether/nether/init.lua index 9e2a3b0f..7d09e69b 100644 --- a/mods/nether/nether/init.lua +++ b/mods/nether/nether/init.lua @@ -98,7 +98,7 @@ if nether.info then else info = "[nether] "..msg end - print(info) + minetest.log("action", info) if self.inform_all then minetest.chat_send_all(info) end diff --git a/mods/pipeworks/init.lua b/mods/pipeworks/init.lua index 92ce02c6..51656171 100755 --- a/mods/pipeworks/init.lua +++ b/mods/pipeworks/init.lua @@ -111,5 +111,5 @@ if pipeworks.enable_autocrafter then dofile(pipeworks.modpath.."/autocrafter.lua minetest.register_alias("pipeworks:pipe", "pipeworks:pipe_110000_empty") -print("Pipeworks loaded!") +minetest.log("Pipeworks loaded!") diff --git a/mods/plantlife_modpack/along_shore/init.lua b/mods/plantlife_modpack/along_shore/init.lua index 719d3245..a83d0f9b 100755 --- a/mods/plantlife_modpack/along_shore/init.lua +++ b/mods/plantlife_modpack/along_shore/init.lua @@ -5,5 +5,5 @@ local mname = "along_shore" ----------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ \ No newline at end of file +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +----------------------------------------------------------------------------------------------- diff --git a/mods/plantlife_modpack/bushes_classic/init.lua b/mods/plantlife_modpack/bushes_classic/init.lua index f06c50ca..43c848ea 100755 --- a/mods/plantlife_modpack/bushes_classic/init.lua +++ b/mods/plantlife_modpack/bushes_classic/init.lua @@ -55,4 +55,4 @@ plantslib:spawn_on_surfaces({ minetest.register_alias("bushes:basket_pies", "bushes:basket_strawberry") -print(S("[Bushes] Loaded.")) +minetest.log("action", S("[Bushes] Loaded.")) diff --git a/mods/plantlife_modpack/cavestuff/init.lua b/mods/plantlife_modpack/cavestuff/init.lua index f2bed1a5..d5209cbe 100755 --- a/mods/plantlife_modpack/cavestuff/init.lua +++ b/mods/plantlife_modpack/cavestuff/init.lua @@ -9,4 +9,4 @@ dofile(minetest.get_modpath("cavestuff").."/mapgen.lua") ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") diff --git a/mods/plantlife_modpack/dryplants/init.lua b/mods/plantlife_modpack/dryplants/init.lua index b33304fd..1a1a1705 100755 --- a/mods/plantlife_modpack/dryplants/init.lua +++ b/mods/plantlife_modpack/dryplants/init.lua @@ -195,5 +195,5 @@ minetest.register_abm({ }) ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ----------------------------------------------------------------------------------------------- diff --git a/mods/plantlife_modpack/ferns/init.lua b/mods/plantlife_modpack/ferns/init.lua index b629d5d4..5add4808 100755 --- a/mods/plantlife_modpack/ferns/init.lua +++ b/mods/plantlife_modpack/ferns/init.lua @@ -43,20 +43,20 @@ if run_tests then -- Check node names if abstract_ferns.config.enable_horsetails then - print("[Mod] " ..title.. " Checking horsetail item strings") + minetest.log("action", "[Mod] " ..title.. " Checking horsetail item strings") assert(minetest.registered_items["ferns:horsetail_01"] ~= nil) assert(minetest.registered_items["ferns:horsetail_02"] ~= nil) assert(minetest.registered_items["ferns:horsetail_03"] ~= nil) assert(minetest.registered_items["ferns:horsetail_04"] ~= nil) end if abstract_ferns.config.enable_lady_fern then - print("[Mod] ".. title .." Checking lady fern item strings") + minetest.log("action", "[Mod] ".. title .." Checking lady fern item strings") assert(minetest.registered_items["ferns:fern_01"] ~= nil) assert(minetest.registered_items["ferns:fern_02"] ~= nil) assert(minetest.registered_items["ferns:fern_03"] ~= nil) end if abstract_ferns.config.enable_treefern then - print("[Mod] ".. title .." Checking tree fern item strings") + minetest.log("action", "[Mod] ".. title .." Checking tree fern item strings") assert(minetest.registered_items["ferns:tree_fern_leaves"] ~= nil) assert(minetest.registered_items["ferns:tree_fern_leaves_02"] ~= nil) assert(minetest.registered_items["ferns:fern_trunk"] ~= nil) @@ -65,5 +65,5 @@ if run_tests then end ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ----------------------------------------------------------------------------------------------- diff --git a/mods/plantlife_modpack/flowers_plus/init.lua b/mods/plantlife_modpack/flowers_plus/init.lua index 02b7d084..7a28e4e7 100755 --- a/mods/plantlife_modpack/flowers_plus/init.lua +++ b/mods/plantlife_modpack/flowers_plus/init.lua @@ -535,4 +535,4 @@ minetest.register_alias("flowers:cotton", "farming:string") minetest.register_alias("flowers:cotton_wad", "farming:string") minetest.register_alias("sunflower:sunflower", "flowers:sunflower") -print(S("[Flowers] Loaded.")) +minetest.log("action", S("[Flowers] Loaded.")) diff --git a/mods/plantlife_modpack/molehills/init.lua b/mods/plantlife_modpack/molehills/init.lua index 28e157af..0e84e137 100755 --- a/mods/plantlife_modpack/molehills/init.lua +++ b/mods/plantlife_modpack/molehills/init.lua @@ -106,5 +106,5 @@ plantslib:register_generate_plant({ ) ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ----------------------------------------------------------------------------------------------- diff --git a/mods/plantlife_modpack/mushroom/init.lua b/mods/plantlife_modpack/mushroom/init.lua index 8c5b9eea..a65f28f6 100755 --- a/mods/plantlife_modpack/mushroom/init.lua +++ b/mods/plantlife_modpack/mushroom/init.lua @@ -258,4 +258,4 @@ minetest.register_abm({ dofile(minetest.get_modpath("mushroom").."/crafting.lua") dofile(minetest.get_modpath("mushroom").."/compat.lua") -print("[Mushrooms] loaded.") +minetest.log("action", "[Mushrooms] loaded.") diff --git a/mods/plantlife_modpack/plants_lib/init.lua b/mods/plantlife_modpack/plants_lib/init.lua index d0401ae5..2e29c55c 100755 --- a/mods/plantlife_modpack/plants_lib/init.lua +++ b/mods/plantlife_modpack/plants_lib/init.lua @@ -42,7 +42,7 @@ local DEBUG = false --... except if you want to spam the console with debugging function plantslib:dbg(msg) if DEBUG then - print("[Plantlife] "..msg) + minetest.log("action", "[Plantlife] "..msg) minetest.log("verbose", "[Plantlife] "..msg) end end @@ -446,8 +446,8 @@ end) -- to prevent unpopulated map areas minetest.register_on_shutdown(function() - print("[plants_lib] Stand by, playing out the rest of the aircheck mapblock log") - print("(there are "..#plantslib.blocklist_aircheck.." entries)...") + minetest.log("[plants_lib] Stand by, playing out the rest of the aircheck mapblock log") + minetest.log("(there are "..#plantslib.blocklist_aircheck.." entries)...") while true do plantslib:generate_block_with_air_checking(0.1) if #plantslib.blocklist_aircheck == 0 then return end @@ -455,8 +455,8 @@ minetest.register_on_shutdown(function() end) minetest.register_on_shutdown(function() - print("[plants_lib] Stand by, playing out the rest of the no-aircheck mapblock log") - print("(there are "..#plantslib.blocklist_aircheck.." entries)...") + minetest.log("[plants_lib] Stand by, playing out the rest of the no-aircheck mapblock log") + minetest.log("(there are "..#plantslib.blocklist_aircheck.." entries)...") while true do plantslib:generate_block_no_aircheck(0.1) if #plantslib.blocklist_no_aircheck == 0 then return end @@ -726,10 +726,10 @@ function plantslib:get_nodedef_field(nodename, fieldname) return minetest.registered_nodes[nodename][fieldname] end -print("[Plants Lib] Loaded") +minetest.log("action", "[Plants Lib] Loaded") minetest.after(0, function() - print("[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread") - print("[Plants Lib] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.") + minetest.log("action", "[Plants Lib] Registered a total of "..(#plantslib.surfaceslist_aircheck)+(#plantslib.surfaceslist_no_aircheck).." surface types to be evaluated, spread") + minetest.log("action", "[Plants Lib] across "..#plantslib.actionslist_aircheck.." actions with air-checking and "..#plantslib.actionslist_no_aircheck.." actions without.") end) diff --git a/mods/plantlife_modpack/poisonivy/init.lua b/mods/plantlife_modpack/poisonivy/init.lua index bb321219..6ab84f10 100755 --- a/mods/plantlife_modpack/poisonivy/init.lua +++ b/mods/plantlife_modpack/poisonivy/init.lua @@ -100,4 +100,4 @@ plantslib:grow_plants({ ground_nodes = {"default:dirt_with_grass"} }) -print(S("[Poison Ivy] Loaded.")) +minetest.log("action", S("[Poison Ivy] Loaded.")) diff --git a/mods/plantlife_modpack/trunks/init.lua b/mods/plantlife_modpack/trunks/init.lua index ee9427d0..fcbb86f2 100755 --- a/mods/plantlife_modpack/trunks/init.lua +++ b/mods/plantlife_modpack/trunks/init.lua @@ -13,5 +13,5 @@ dofile(minetest.get_modpath("trunks").."/nodes.lua") dofile(minetest.get_modpath("trunks").."/crafting.lua") ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ \ No newline at end of file +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +----------------------------------------------------------------------------------------------- diff --git a/mods/plantlife_modpack/vines/init.lua b/mods/plantlife_modpack/vines/init.lua index 72eda930..bf5694f5 100755 --- a/mods/plantlife_modpack/vines/init.lua +++ b/mods/plantlife_modpack/vines/init.lua @@ -11,4 +11,4 @@ dofile( minetest.get_modpath( vines.name ) .. "/nodes.lua" ) dofile( minetest.get_modpath( vines.name ) .. "/shear.lua" ) dofile( minetest.get_modpath( vines.name ) .. "/vines.lua" ) -print("[Vines] Loaded!") +minetest.log("action", "[Vines] Loaded!") diff --git a/mods/plantlife_modpack/woodsoils/init.lua b/mods/plantlife_modpack/woodsoils/init.lua index 9037d459..f52665f2 100755 --- a/mods/plantlife_modpack/woodsoils/init.lua +++ b/mods/plantlife_modpack/woodsoils/init.lua @@ -25,5 +25,5 @@ print("/____ >____/|__|____/____ >") print(" \\/ \\/")]] ----------------------------------------------------------------------------------------------- -print("[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") ------------------------------------------------------------------------------------------------ \ No newline at end of file +minetest.log("action", "[Mod] "..title.." ["..version.."] ["..mname.."] Loaded...") +----------------------------------------------------------------------------------------------- diff --git a/mods/riesenpilz/functions.lua b/mods/riesenpilz/functions.lua index 8b428692..6d554b40 100755 --- a/mods/riesenpilz/functions.lua +++ b/mods/riesenpilz/functions.lua @@ -7,7 +7,7 @@ if riesenpilz.info then else info = "[riesenpilz] "..msg end - print(info) + minetest.log("action", info) if riesenpilz.inform_all then minetest.chat_send_all(info) end diff --git a/mods/stained_glass/init.lua b/mods/stained_glass/init.lua index 53a248ad..08e647fa 100755 --- a/mods/stained_glass/init.lua +++ b/mods/stained_glass/init.lua @@ -289,7 +289,7 @@ for h = 1, 12 do end --hues -print("[stained_glass] Loaded!") +minetest.log("action", "[stained_glass] Loaded!") diff --git a/mods/unified_inventory/api.lua b/mods/unified_inventory/api.lua index 5f74ea73..f6a68d69 100755 --- a/mods/unified_inventory/api.lua +++ b/mods/unified_inventory/api.lua @@ -27,7 +27,7 @@ minetest.after(0.01, function() end table.sort(unified_inventory.items_list) unified_inventory.items_list_size = #unified_inventory.items_list - print("Unified Inventory. inventory size: "..unified_inventory.items_list_size) + minetest.log("Unified Inventory. inventory size: "..unified_inventory.items_list_size) for _, name in ipairs(unified_inventory.items_list) do local def = minetest.registered_items[name] if type(def.drop) == "string" then diff --git a/mods/unifieddyes/init.lua b/mods/unifieddyes/init.lua index e8c36b7a..54ea1862 100755 --- a/mods/unifieddyes/init.lua +++ b/mods/unifieddyes/init.lua @@ -373,5 +373,5 @@ minetest.register_alias("unifieddyes:grey_paint", "dye:grey") minetest.register_alias("unifieddyes:darkgrey_paint", "dye:dark_grey") minetest.register_alias("unifieddyes:carbon_black", "dye:black") -print(S("[UnifiedDyes] Loaded!")) +minetest.log("action", S("[UnifiedDyes] Loaded!"))