mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 10:25:21 +02:00
Add player:set_sky() with simple skybox support
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user