diff --git a/mods/ENVIRONMENT/mcl_weather/init.lua b/mods/ENVIRONMENT/mcl_weather/init.lua index b362647c..efaafd5b 100644 --- a/mods/ENVIRONMENT/mcl_weather/init.lua +++ b/mods/ENVIRONMENT/mcl_weather/init.lua @@ -326,6 +326,18 @@ minetest.register_chatcommand("weather", { end }) +minetest.register_chatcommand("biome", { + params = "", + description = S("Gets current biome"), + privs = {weather_manager = true}, + func = function(name) + local player=minetest.get_player_by_name(name) + local biome=minetest.get_biome_data(player:get_pos()) + local bname = minetest.get_biome_name(biome.biome) + minetest.chat_send_player(name,bname.. " " ..dump(biome)) + end + }) + minetest.register_chatcommand("toggledownfall", { params = "", description = S("Toggles between clear weather and weather with downfall (randomly rain, thunderstorm or snow)"),