From 86a6cca3cf641fc2c88184ad26d2be3d7e7460f7 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 2 May 2013 23:52:50 +0300 Subject: Add player:set_sky() with simple skybox support --- doc/lua_api.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') 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: -- cgit v1.2.3