mirror of
https://github.com/t-affeldt/minetest_moon_phase.git
synced 2025-01-05 07:40:33 +01:00
Add screenshots, change default style to realistic
This commit is contained in:
parent
d5c611c9fc
commit
fa93b311d6
@ -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.
|
||||
|
6
init.lua
6
init.lua
@ -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
BIN
screenshot..png
Normal file
Binary file not shown.
After Width: | Height: | Size: 700 KiB |
Before Width: | Height: | Size: 548 KiB After Width: | Height: | Size: 548 KiB |
BIN
screenshot.3.png
Normal file
BIN
screenshot.3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 608 KiB |
@ -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
|
Loading…
Reference in New Issue
Block a user