mirror of
https://github.com/t-affeldt/minetest_moon_phase.git
synced 2025-01-05 07:40:33 +01:00
Update meta information
This commit is contained in:
parent
42fa044c48
commit
46471862e9
6
init.lua
6
init.lua
@ -9,11 +9,11 @@ local DEFAULT_STYLE = "realistic" -- default texture style
|
||||
moon_phases = {}
|
||||
local state = minetest.get_mod_storage()
|
||||
if not state:contains("day") then
|
||||
state:from_table({
|
||||
state:from_table({fields = {
|
||||
day = 1,
|
||||
phase = 1,
|
||||
change_time = 1
|
||||
})
|
||||
}})
|
||||
end
|
||||
|
||||
-- retrieve mod configuration
|
||||
@ -100,8 +100,6 @@ end
|
||||
-- set the moon texture of newly joined player
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local phase = state:get_int("phase")
|
||||
-- phase might not have been set at server start
|
||||
if phase < 1 then phase = 1 end
|
||||
set_texture(player, phase)
|
||||
end)
|
||||
|
||||
|
9
mod.conf
9
mod.conf
@ -3,8 +3,11 @@ title = Moon Phases
|
||||
author = TestificateMods
|
||||
release = 10100
|
||||
description = """
|
||||
Changes the moon to follow a cycle between eight different phases.
|
||||
Expect the sky to change every four nights (or configure a custom schedule).
|
||||
Requires at least Minetest 5.2.0
|
||||
Changes the moon to follow a cycle between eight different phases.
|
||||
Expect the sky to change every four nights (or configure a custom schedule).
|
||||
Includes realistic 256x256px moon textures from NASA photographies as well as
|
||||
square vanilla themed 16x16px textures
|
||||
|
||||
Requires at least Minetest 5.2.0
|
||||
"""
|
||||
optional_depends = skylayer
|
BIN
screenshot.2.png
BIN
screenshot.2.png
Binary file not shown.
Before Width: | Height: | Size: 548 KiB After Width: | Height: | Size: 700 KiB |
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 700 KiB After Width: | Height: | Size: 289 KiB |
Loading…
Reference in New Issue
Block a user