049dev version, custom skybox wip
This commit is contained in:
parent
841225aaa1
commit
747f9af495
@ -1,5 +1,5 @@
|
|||||||
moonrealm 0.7.1 by paramat
|
moonrealm 0.7.2 by paramat
|
||||||
For latest stable Minetest and back to 0.4.8
|
For Minetest 0.4.9 dev with custom skybox commit
|
||||||
Depends default
|
Depends default
|
||||||
Licenses: code WTFPL, textures CC BY-SA
|
Licenses: code WTFPL, textures CC BY-SA
|
||||||
|
|
||||||
|
@ -184,6 +184,17 @@ if SINGLENODE then
|
|||||||
minetest.setting_set("enable_clouds", "false")
|
minetest.setting_set("enable_clouds", "false")
|
||||||
minetest.set_timeofday(0.5)
|
minetest.set_timeofday(0.5)
|
||||||
minetest.setting_set("time_speed", 0)
|
minetest.setting_set("time_speed", 0)
|
||||||
|
minetest.after(0, function()
|
||||||
|
skytextures = {
|
||||||
|
"moonrealm_posy.png",
|
||||||
|
"moonrealm_negy.png",
|
||||||
|
"moonrealm_posz.png",
|
||||||
|
"moonrealm_negz.png",
|
||||||
|
"moonrealm_negx.png",
|
||||||
|
"moonrealm_posx.png",
|
||||||
|
}
|
||||||
|
player:set_sky({r=0, g=0, b=0, a=0},"skybox", skytextures)
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
|
10
init.lua
10
init.lua
@ -1,12 +1,8 @@
|
|||||||
-- moonrealm 0.7.1 by paramat
|
-- moonrealm 0.7.2 by paramat
|
||||||
-- For latest stable Minetest and back to 0.4.8
|
-- For Minetest 0.4.9 dev with custom skybox commit
|
||||||
-- Depends default
|
-- Depends default
|
||||||
-- Licenses: code WTFPL, textures CC BY-SA
|
-- Licenses: code WTFPL, textures CC BY-SA
|
||||||
|
|
||||||
-- give more stuff at spawn
|
|
||||||
-- terrain will not overwrite egg
|
|
||||||
-- lights as yolk
|
|
||||||
|
|
||||||
-- Parameters
|
-- Parameters
|
||||||
|
|
||||||
local XMIN = -8000 -- -- Approx horizontal limits. 1/4 of normal realm size.
|
local XMIN = -8000 -- -- Approx horizontal limits. 1/4 of normal realm size.
|
||||||
@ -122,9 +118,11 @@ dofile(minetest.get_modpath("moonrealm").."/functions.lua")
|
|||||||
|
|
||||||
local player_pos = {}
|
local player_pos = {}
|
||||||
local player_pos_previous = {}
|
local player_pos_previous = {}
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
player_pos_previous[player:get_player_name()] = {x=0,y=0,z=0}
|
player_pos_previous[player:get_player_name()] = {x=0,y=0,z=0}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
player_pos_previous[player:get_player_name()] = nil
|
player_pos_previous[player:get_player_name()] = nil
|
||||||
end)
|
end)
|
||||||
|
@ -258,7 +258,7 @@ minetest.register_node("moonrealm:light", {
|
|||||||
tiles = {"moonrealm_light.png"},
|
tiles = {"moonrealm_light.png"},
|
||||||
light_source = 14,
|
light_source = 14,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {cracky=3},
|
groups = {cracky=3,oddly_breakable_by_hand=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -323,7 +323,7 @@ minetest.register_node("moonrealm:shell", {
|
|||||||
description = "Spawn Shell",
|
description = "Spawn Shell",
|
||||||
tiles = {"moonrealm_shell.png"},
|
tiles = {"moonrealm_shell.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {choppy=2,oddly_breakable_by_hand=1},
|
groups = {cracky=3, oddly_breakable_by_hand=1},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
BIN
textures/moonrealm_negx.png
Normal file
BIN
textures/moonrealm_negx.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
textures/moonrealm_negy.png
Normal file
BIN
textures/moonrealm_negy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
BIN
textures/moonrealm_negz.png
Normal file
BIN
textures/moonrealm_negz.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
textures/moonrealm_posx.png
Normal file
BIN
textures/moonrealm_posx.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
BIN
textures/moonrealm_posy.png
Normal file
BIN
textures/moonrealm_posy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
BIN
textures/moonrealm_posz.png
Normal file
BIN
textures/moonrealm_posz.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
Loading…
x
Reference in New Issue
Block a user