mirror of
https://github.com/t-affeldt/climate_api.git
synced 2025-07-06 06:30:28 -04:00
Add hail effect and date functions
This commit is contained in:
parent
dd8b07056a
commit
6481cf409a
15 changed files with 88 additions and 6 deletions
|
@ -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>",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue