balance
parent
c1ddf926b7
commit
73303a5c61
1
init.lua
1
init.lua
|
@ -18,5 +18,6 @@ dofile(MP.."/nodes.lua")
|
|||
dofile(MP.."/ores.lua")
|
||||
dofile(MP.."/mapgen.lua")
|
||||
dofile(MP.."/skybox.lua")
|
||||
dofile(MP.."/vacuum.lua")
|
||||
|
||||
print("[OK] Planet: mars (start: " .. planet_mars.y_start .. ", height:" .. planet_mars.y_height .. ")")
|
||||
|
|
16
nodes.lua
16
nodes.lua
|
@ -2,7 +2,7 @@
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_coal", {
|
||||
description = "Coal Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_coal.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'default:coal_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -10,7 +10,7 @@ minetest.register_node("planet_mars:stone_with_coal", {
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_iron", {
|
||||
description = "Iron Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_iron.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'default:iron_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -18,7 +18,7 @@ minetest.register_node("planet_mars:stone_with_iron", {
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_copper", {
|
||||
description = "Copper Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_copper.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_copper.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = 'default:copper_lump',
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -26,7 +26,7 @@ minetest.register_node("planet_mars:stone_with_copper", {
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_tin", {
|
||||
description = "Tin Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_tin.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_tin.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = "default:tin_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -34,7 +34,7 @@ minetest.register_node("planet_mars:stone_with_tin", {
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_mese", {
|
||||
description = "Mese Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_mese.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_mese.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = "default:mese_crystal",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -42,7 +42,7 @@ minetest.register_node("planet_mars:stone_with_mese", {
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_gold", {
|
||||
description = "Gold Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_gold.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_gold.png"},
|
||||
groups = {cracky = 2},
|
||||
drop = "default:gold_lump",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -51,8 +51,8 @@ minetest.register_node("planet_mars:stone_with_gold", {
|
|||
|
||||
minetest.register_node("planet_mars:stone_with_diamond", {
|
||||
description = "Diamond Ore",
|
||||
tiles = {"desert_stone.png^default_mineral_diamond.png"},
|
||||
tiles = {"default_desert_stone.png^default_mineral_diamond.png"},
|
||||
groups = {cracky = 1},
|
||||
drop = "default:diamond",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
})
|
||||
|
|
2
ores.lua
2
ores.lua
|
@ -1,5 +1,5 @@
|
|||
|
||||
local clust_scarcity = 24 * 24
|
||||
local clust_scarcity = 24 * 24 * 24
|
||||
local clust_num_ores = 27
|
||||
local clust_size = 10
|
||||
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
local has_vacuum_mod = minetest.get_modpath("vacuum")
|
||||
|
||||
local y_start = planet_mars.y_start
|
||||
local y_height = planet_mars.y_height
|
||||
|
||||
|
||||
if has_vacuum_mod then
|
||||
|
||||
local old_is_pos_in_space = vacuum.is_pos_in_space
|
||||
vacuum.is_pos_in_space = function(pos)
|
||||
|
||||
if pos.y < y_start or pos.y > (y_start + (y_height * 0.95)) then
|
||||
-- not on mars
|
||||
return old_is_pos_in_space(pos)
|
||||
end
|
||||
|
||||
-- atmosphere in mars caves
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
end
|
Loading…
Reference in New Issue