049dev version, custom skybox wip

master
Mat 2014-06-05 07:45:16 +01:00
parent 841225aaa1
commit 747f9af495
10 changed files with 23 additions and 14 deletions

View File

@ -1,5 +1,5 @@
moonrealm 0.7.1 by paramat
For latest stable Minetest and back to 0.4.8
moonrealm 0.7.2 by paramat
For Minetest 0.4.9 dev with custom skybox commit
Depends default
Licenses: code WTFPL, textures CC BY-SA
@ -99,4 +99,4 @@ LLL
LIL
LLL
L = moonrealm leaves
I = moonrealm waterice
I = moonrealm waterice

View File

@ -184,6 +184,17 @@ if SINGLENODE then
minetest.setting_set("enable_clouds", "false")
minetest.set_timeofday(0.5)
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)
minetest.register_on_leaveplayer(function(player)
@ -377,4 +388,4 @@ if SINGLENODE then
moonrealm_spawnplayer(player)
return true
end)
end
end

View File

@ -1,12 +1,8 @@
-- moonrealm 0.7.1 by paramat
-- For latest stable Minetest and back to 0.4.8
-- moonrealm 0.7.2 by paramat
-- For Minetest 0.4.9 dev with custom skybox commit
-- Depends default
-- Licenses: code WTFPL, textures CC BY-SA
-- give more stuff at spawn
-- terrain will not overwrite egg
-- lights as yolk
-- Parameters
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_previous = {}
minetest.register_on_joinplayer(function(player)
player_pos_previous[player:get_player_name()] = {x=0,y=0,z=0}
end)
minetest.register_on_leaveplayer(function(player)
player_pos_previous[player:get_player_name()] = nil
end)
@ -316,4 +314,4 @@ minetest.register_on_generated(function(minp, maxp, seed)
vm:write_to_map(data)
local chugent = math.ceil((os.clock() - t1) * 1000)
print ("[moonrealm] "..chugent.." ms")
end)
end)

View File

@ -258,7 +258,7 @@ minetest.register_node("moonrealm:light", {
tiles = {"moonrealm_light.png"},
light_source = 14,
is_ground_content = false,
groups = {cracky=3},
groups = {cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})
@ -323,7 +323,7 @@ minetest.register_node("moonrealm:shell", {
description = "Spawn Shell",
tiles = {"moonrealm_shell.png"},
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(),
})
@ -471,4 +471,4 @@ minetest.register_craft({
type = "fuel",
recipe = "default:mese_crystal",
burntime = 50,
})
})

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB