mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
This commit is contained in:
parent
86a6cca3cf
commit
6a3fa9df12
11 changed files with 107 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue