|
@ -1,7 +1,6 @@
|
|||
unused_args = false
|
||||
allow_defined_top = true
|
||||
|
||||
globals = {
|
||||
"planet_mars",
|
||||
"planetoids",
|
||||
"vacuum",
|
||||
"skybox"
|
||||
|
|
1
init.lua
|
@ -21,5 +21,6 @@ dofile(MP.."/ores.lua")
|
|||
dofile(MP.."/mapgen.lua")
|
||||
dofile(MP.."/skybox.lua")
|
||||
dofile(MP.."/vacuum.lua")
|
||||
dofile(MP.."/marble.lua")
|
||||
|
||||
print("[OK] Planet: mars (start: " .. planet_mars.y_start .. ", height:" .. planet_mars.y_height .. ")")
|
||||
|
|
|
@ -86,7 +86,7 @@ local mountain_perlin_map = {}
|
|||
local cave_perlin_map = {}
|
||||
local biome_perlin_map = {}
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp, seed)
|
||||
minetest.register_on_generated(function(minp, maxp)
|
||||
|
||||
if minp.y < y_start or minp.y > (y_start + y_height) then
|
||||
-- not in range
|
||||
|
|
|
@ -0,0 +1,53 @@
|
|||
|
||||
for _, color in ipairs({"red", "blue", "black"}) do
|
||||
|
||||
minetest.register_craft({
|
||||
output = "planet_mars:" .. color .. "marble_polished",
|
||||
recipe = {
|
||||
{"planet_mars:" .. color .. "marble"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "planet_mars:" .. color .. "marble_bricks 4",
|
||||
recipe = {
|
||||
{"planet_mars:" .. color .. "marble", "planet_mars:" .. color .. "marble"},
|
||||
{"planet_mars:" .. color .. "marble", "planet_mars:" .. color .. "marble"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("planet_mars:" .. color .. "marble_polished", {
|
||||
description = "polished " .. color .. " marble",
|
||||
tiles = {"planet_mars_" .. color .. "marble_polished.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("planet_mars:" .. color .. "marble_bricks", {
|
||||
description = color .. " marble bricks",
|
||||
tiles = {"planet_mars_" .. color .. "marble_bricks.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("planet_mars:" .. color .. "marble", {
|
||||
description = color .. " marble",
|
||||
tiles = {"planet_mars_" .. color .. "marble.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "planet_mars:" .. color .. "marble",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 7*7*7,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 5,
|
||||
y_max = planet_mars.y_start + planet_mars.y_height,
|
||||
y_min = planet_mars.y_start,
|
||||
})
|
||||
end
|
|
@ -4,3 +4,8 @@ Planet mars mod for minetest
|
|||
# Overview
|
||||
|
||||
Mapgen defaults to y 5000 to 11 000
|
||||
|
||||
|
||||
# License
|
||||
|
||||
* textures/planet_mars_*marble https://forum.minetest.net/viewtopic.php?t=12798
|
||||
|
|
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 571 B |
After Width: | Height: | Size: 517 B |
After Width: | Height: | Size: 949 B |
After Width: | Height: | Size: 659 B |
After Width: | Height: | Size: 694 B |
After Width: | Height: | Size: 811 B |
After Width: | Height: | Size: 665 B |
After Width: | Height: | Size: 592 B |