forked from Mirrorlandia_minetest/minetest
0f25fa7af6
* Also Disable shadows when sun/moon is hidden. Fixes #11972.
8 lines
330 B
Lua
8 lines
330 B
Lua
core.register_chatcommand("set_lighting", {
|
|
params = "shadow_intensity",
|
|
description = "Set lighting parameters.",
|
|
func = function(player_name, param)
|
|
local shadow_intensity = tonumber(param)
|
|
minetest.get_player_by_name(player_name):set_lighting({shadows = { intensity = shadow_intensity} })
|
|
end
|
|
}) |