mirror of
https://github.com/t-affeldt/minetest_moon_phase.git
synced 2025-01-07 00:30:29 +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 = {}
|
moon_phases = {}
|
||||||
local state = minetest.get_mod_storage()
|
local state = minetest.get_mod_storage()
|
||||||
if not state:contains("day") then
|
if not state:contains("day") then
|
||||||
state:from_table({
|
state:from_table({fields = {
|
||||||
day = 1,
|
day = 1,
|
||||||
phase = 1,
|
phase = 1,
|
||||||
change_time = 1
|
change_time = 1
|
||||||
})
|
}})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- retrieve mod configuration
|
-- retrieve mod configuration
|
||||||
@ -100,8 +100,6 @@ end
|
|||||||
-- set the moon texture of newly joined player
|
-- set the moon texture of newly joined player
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
local phase = state:get_int("phase")
|
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)
|
set_texture(player, phase)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
9
mod.conf
9
mod.conf
@ -3,8 +3,11 @@ title = Moon Phases
|
|||||||
author = TestificateMods
|
author = TestificateMods
|
||||||
release = 10100
|
release = 10100
|
||||||
description = """
|
description = """
|
||||||
Changes the moon to follow a cycle between eight different phases.
|
Changes the moon to follow a cycle between eight different phases.
|
||||||
Expect the sky to change every four nights (or configure a custom schedule).
|
Expect the sky to change every four nights (or configure a custom schedule).
|
||||||
Requires at least Minetest 5.2.0
|
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
|
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