2018-11-03 15:12:44 +01:00
|
|
|
-- Code below by Casimir.
|
|
|
|
|
|
|
|
minetest.after(1, function()
|
|
|
|
local i = 0
|
|
|
|
local number = 0
|
|
|
|
for name, item in pairs(minetest.registered_items) do
|
|
|
|
if (name and name ~= "") then
|
|
|
|
number = number + 1
|
|
|
|
end
|
|
|
|
i = i + 1
|
|
|
|
end
|
|
|
|
minetest.log("action", "There are " .. number .. " registered nodes, items and tools.")
|
|
|
|
end)
|
|
|
|
|
|
|
|
minetest.register_on_joinplayer(function(player)
|
|
|
|
minetest.sound_play("player_join", {gain = 0.75})
|
|
|
|
end)
|
|
|
|
|
|
|
|
minetest.register_on_leaveplayer(function(player)
|
|
|
|
minetest.sound_play("player_leave", {gain = 1})
|
|
|
|
end)
|
|
|
|
|
2021-02-25 23:39:15 +01:00
|
|
|
if minetest.settings.get_bool("log_mods") then
|
2018-11-03 15:12:44 +01:00
|
|
|
-- Highlight the default mod in the mod loading logs:
|
|
|
|
minetest.log("action", "Carbone: * [default] loaded.")
|
|
|
|
end
|