Add hail effect and date functions

This commit is contained in:
Till Affeldt
2020-04-10 05:00:31 +02:00
parent dd8b07056a
commit 6481cf409a
15 changed files with 88 additions and 6 deletions

View File

@ -3,6 +3,13 @@ minetest.register_privilege("weather", {
give_to_singleplayer = false
})
minetest.register_chatcommand("date", {
func = function(playername, param)
local date = weather_mod.print_date()
minetest.chat_send_player(playername, date)
end
})
-- Force a weather effect to override environment
minetest.register_chatcommand("set_weather", {
params = "<weather>",