diff --git a/README.md b/README.md index c69acc7..4860b09 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ Use ``/grant 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. diff --git a/init.lua b/init.lua index 9cf8f95..9d4c5d2 100644 --- a/init.lua +++ b/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() diff --git a/screenshot..png b/screenshot..png new file mode 100644 index 0000000..e0dcb8b Binary files /dev/null and b/screenshot..png differ diff --git a/screenshot.png b/screenshot.2.png similarity index 100% rename from screenshot.png rename to screenshot.2.png diff --git a/screenshot.3.png b/screenshot.3.png new file mode 100644 index 0000000..e57adca Binary files /dev/null and b/screenshot.3.png differ diff --git a/settingtypes.txt b/settingtypes.txt index 5272e6e..55cf151 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -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 \ No newline at end of file +moon_phases_style (Choose a default texture style) enum realistic classic,realistic \ No newline at end of file