Rename sky textures, add basalt.

This commit is contained in:
Craig 2014-05-14 18:41:04 +01:00
parent da4a5ae69d
commit 08ade7640b
10 changed files with 37 additions and 27 deletions

View file

@ -21,20 +21,22 @@ minetest.register_biome({
height_max = 160,
})
-- Obsidian Biome
-- Basalt Biome
minetest.register_biome({
name = "plains",
node_top = "default:obsidian",
node_bottom = "moontest:stone",
depth_top = 8,
name = "basalt",
node_top = "moontest:basalt",
depth_top = 2,
node_filler = "moontest:stone",
depth_filler = 3,
node_dust = "air",
height_min = -30,
height_max = 20,
height_min = -50,
height_max = 2,
heat_point = 54,
humidity_point = 51,
})
-- Aliases
minetest.register_alias("mapgen_water_source", "moontest:vacuum")
minetest.register_alias("mapgen_lava_source", "default:lava_source")
minetest.register_alias("mapgen_lava_source", "moontest:hlsource")
minetest.register_alias("mapgen_water_source", "moontest:hlsource")
minetest.register_alias("mapgen_stone", "moontest:stone")
minetest.register_alias("mapgen_dirt", "moontest:dust")

View file

@ -1,3 +1,6 @@
-- Nodes
-- Natural Blocks
minetest.register_node("moontest:stone", {
description = "Moon Stone",
tiles = {"moontest_stone.png"},
@ -14,6 +17,14 @@ minetest.register_node("moontest:dust", {
}),
})
minetest.register_node("moontest:basalt", {
description = "Basalt",
tiles = {"moontest_basalt.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
-- Footsteps
minetest.register_node("moontest:dustprint1", {
description = "Moon Dust Footprint1",
tiles = {"moontest_dustprint1.png", "moontest_dust.png"},
@ -96,7 +107,7 @@ minetest.register_node("moontest:waterice", {
})
minetest.register_node("moontest:hlflowing", {
description = "Flowing Hydroponics",
description = "Flowing Hydroponic Liquid",
inventory_image = minetest.inventorycube("moontest_hl.png"),
drawtype = "flowingliquid",
tiles = {"moontest_hl.png"},
@ -127,18 +138,18 @@ minetest.register_node("moontest:hlflowing", {
})
minetest.register_node("moontest:hlsource", {
description = "Hydroponic Source",
description = "Hydroponic Liquid Source",
inventory_image = minetest.inventorycube("moontest_hl.png"),
drawtype = "liquid",
tiles = {"moontest_hl.png"},
special_tiles = {
{
image="moontest_hl_animated.png",
image="moontest_hlflowing_animated.png",
backface_culling=false,
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
},
{
image="moontest_hl_animated.png",
image="moontest_hlflowing_animated.png",
backface_culling=true,
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2}
},
@ -147,14 +158,14 @@ minetest.register_node("moontest:hlsource", {
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
diggable = false
buildable_to = true,
liquidtype = "source",
liquid_alternative_flowing = "moontest:hlflowing",
liquid_alternative_source = "moontest:hlsource",
liquid_viscosity = 1,
post_effect_color = {a=224, r=115, g=55, b=24},
groups = {water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1},
groups = {water=3, liquid=3, puts_out_fire=1},
})
minetest.register_node("moontest:soil", {
@ -282,17 +293,14 @@ minetest.register_node("moontest:stonestair", {
minetest.register_craftitem("moontest:spacesuit", {
description = "Spacesuit",
inventory_image = "moontest_spacesuit.png",
groups = {not_in_creative_inventory=1},
})
minetest.register_craftitem("moontest:helmet", {
description = "Helmet",
inventory_image = "moontest_helmet.png",
groups = {not_in_creative_inventory=1},
})
minetest.register_craftitem("moontest:lifesupport", {
description = "Life Support",
inventory_image = "moontest_lifesupport.png",
groups = {not_in_creative_inventory=1},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 B

View file

@ -16,15 +16,15 @@ end)
-- Sky textures
minetest.register_on_joinplayer(function(player)
minetest.after(0, function()
skytex ={
"pink_planet_pos_y.png",
"pink_planet_neg_y.png",
"pink_planet_pos_z.png",
"pink_planet_neg_z.png",
"pink_planet_neg_x.png",
"pink_planet_pos_x.png",
skytextures ={
"sky_pos_y.png",
"sky_neg_y.png",
"sky_pos_z.png",
"sky_neg_z.png",
"sky_neg_x.png",
"sky_pos_x.png",
}
player:set_sky({r=0, g=0, b=0, a=0},"skybox", skytex)
player:set_sky({r=0, g=0, b=0, a=0},"skybox", skytextures)
end)
end)

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 KiB