diff options
author | Perttu Ahola <celeron55@gmail.com> | 2013-05-02 23:52:50 +0300 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-02-01 18:34:26 +0100 |
commit | 86a6cca3cf641fc2c88184ad26d2be3d7e7460f7 (patch) | |
tree | 25406b5df8244667ae3c494eaf3f945be1d0ae2b /doc/lua_api.txt | |
parent | e258675eabc874d31bc9c6cf49e4bbc1f7f3f417 (diff) | |
download | minetest-86a6cca3cf641fc2c88184ad26d2be3d7e7460f7.tar.gz minetest-86a6cca3cf641fc2c88184ad26d2be3d7e7460f7.tar.bz2 minetest-86a6cca3cf641fc2c88184ad26d2be3d7e7460f7.zip |
Add player:set_sky() with simple skybox support
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9d97dd6fa..beec54085 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1812,6 +1812,14 @@ Player-only: (no-op for other objects) ^ sets background image for hotbar - hud_set_hotbar_selected_image(texturename) ^ sets image for selected item of hotbar +- set_sky(bgcolor, type, {texture names}) + ^ bgcolor: {r=0...255, g=0...255, b=0...255} or nil, defaults to white + ^ Available types: + - "regular": Uses 0 textures, bgcolor ignored + - "skybox": Uses 6 textures, bgcolor used + - "plain": Uses 0 textures, bgcolor used + ^ Note: currently does not work directly in on_joinplayer; use + minetest.after(0) in there. InvRef: Reference to an inventory methods: |