Add screenshots, change default style to realistic

This commit is contained in:
Till Affeldt 2020-04-12 02:11:29 +02:00
parent d5c611c9fc
commit fa93b311d6
6 changed files with 6 additions and 4 deletions

View File

@ -24,6 +24,8 @@ Use ``/grant <player> moonphase`` to grant it.
Just like the chat commands, this mod provides a LUA api for accessing the moon phase.
It contains a method called ``moon_phases.get_phase()`` that will return a numeric value representing the current moon phase.
You can also set the phase via ``moon_phases.set_phase(phase)`` where ``phase`` is an integer between 1 and 8.
The texture style of a specific player can be set with ``moon_phases.set_style(player, style)`` where ``style`` referes to either
``classic`` or ``realistic``.
## Configuration
The mod provides the option to change the length of the moon cycle.

View File

@ -2,9 +2,9 @@ local mod_skylayer = minetest.get_modpath("skylayer") ~= nil
local modpath = minetest.get_modpath("moon_phases");
local GSCYCLE = 0.5 -- global step cycle
local DEFAULT_LENGTH = 4 -- default cycle length
local DEFAULT_STYLE = "classic" -- default texture style
local GSCYCLE = 0.5 -- global step cycle
local DEFAULT_LENGTH = 4 -- default cycle length
local DEFAULT_STYLE = "realistic" -- default texture style
moon_phases = {}
local state = minetest.get_mod_storage()

BIN
screenshot..png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 KiB

View File

Before

Width:  |  Height:  |  Size: 548 KiB

After

Width:  |  Height:  |  Size: 548 KiB

BIN
screenshot.3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 KiB

View File

@ -1,2 +1,2 @@
moon_phases_cycle (Change moon phase every X days) int 4
moon_phases_style (Choose a default texture style) enum classic classic,realistic
moon_phases_style (Choose a default texture style) enum realistic classic,realistic