Enable more options for particles, fix skybox reset, add new debug command, fix daylight influence

This commit is contained in:
Till Affeldt
2020-04-22 00:56:34 +02:00
parent d1bdf92937
commit c9d0cfca21
9 changed files with 57 additions and 23 deletions

View File

@ -156,3 +156,15 @@ minetest.register_chatcommand("weather_status", {
end
end
})
minetest.register_chatcommand("weather_influences", {
description = "Prints which weather influences cause your current weather",
func = function(playername)
minetest.chat_send_player(playername, "Current influences rules:\n================")
local player = minetest.get_player_by_name(playername)
local influences = climate_mod.trigger.get_player_environment(player)
for influence, value in pairs(influences) do
minetest.chat_send_player(playername, dump2(value, influence))
end
end
})