summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-10-18 11:53:19 +0300
committersapier <Sapier at GMX dot net>2014-02-01 18:38:21 +0100
commit6a3fa9df12d5982f84e83e1c61ff757edc1043f4 (patch)
tree074930c80821663e70101f8fafc0a4c46c9d9a3b /doc
parent86a6cca3cf641fc2c88184ad26d2be3d7e7460f7 (diff)
downloadminetest-6a3fa9df12d5982f84e83e1c61ff757edc1043f4.tar.gz
minetest-6a3fa9df12d5982f84e83e1c61ff757edc1043f4.tar.bz2
minetest-6a3fa9df12d5982f84e83e1c61ff757edc1043f4.zip
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt3
1 files changed, 3 insertions, 0 deletions
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: