From 6a3fa9df12d5982f84e83e1c61ff757edc1043f4 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 18 Oct 2013 11:53:19 +0300 Subject: Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness --- doc/lua_api.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index beec54085..f42cec76c 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1820,6 +1820,9 @@ Player-only: (no-op for other objects) - "plain": Uses 0 textures, bgcolor used ^ Note: currently does not work directly in on_joinplayer; use minetest.after(0) in there. +- override_day_night_ratio(ratio or nil) + ^ 0...1: Overrides day-night ratio, controlling sunlight to a specific amount + ^ nil: Disables override, defaulting to sunlight based on day-night cycle InvRef: Reference to an inventory methods: -- cgit v1.2.3