mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Added light ore!
This commit is contained in:
parent
a5f29b214b
commit
7b3b79335d
9 changed files with 58 additions and 4 deletions
|
@ -1,11 +1,13 @@
|
||||||
-- Mapgen
|
-- Mapgen
|
||||||
|
|
||||||
|
dofile(minetest.get_modpath("mapgen").."/ores.lua")
|
||||||
|
|
||||||
-- Set mapgen mode to v7
|
-- Set mapgen mode to v7
|
||||||
minetest.register_on_mapgen_init(function(params)
|
minetest.register_on_mapgen_init(function(params)
|
||||||
minetest.set_mapgen_params({
|
minetest.set_mapgen_params({
|
||||||
mgname = "v7",
|
mgname = "v7",
|
||||||
seed = params.seed,
|
seed = params.seed,
|
||||||
water_level = 0,
|
water_level = -10,
|
||||||
flags = "caves",
|
flags = "caves",
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
@ -17,7 +19,7 @@ minetest.register_biome({
|
||||||
depth_top = 2,
|
depth_top = 2,
|
||||||
node_bottom = "moontest:stone",
|
node_bottom = "moontest:stone",
|
||||||
node_dust = "air",
|
node_dust = "air",
|
||||||
height_min = -10,
|
height_min = 3,
|
||||||
height_max = 30,
|
height_max = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -30,7 +32,7 @@ minetest.register_biome({
|
||||||
depth_filler = 1,
|
depth_filler = 1,
|
||||||
node_dust = "air",
|
node_dust = "air",
|
||||||
height_min = -50,
|
height_min = -50,
|
||||||
height_max = 2,
|
height_max = 5,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Lunar Ice Cap Biome
|
-- Lunar Ice Cap Biome
|
||||||
|
@ -39,7 +41,7 @@ minetest.register_biome({
|
||||||
node_top = "moontest:waterice",
|
node_top = "moontest:waterice",
|
||||||
depth_top = 4,
|
depth_top = 4,
|
||||||
node_filler = "moontest:dust",
|
node_filler = "moontest:dust",
|
||||||
depth_filler = 2
|
depth_filler = 2,
|
||||||
node_dust = "air",
|
node_dust = "air",
|
||||||
height_min = 25,
|
height_min = 25,
|
||||||
height_max = 100,
|
height_max = 100,
|
||||||
|
|
10
mods/mapgen/ores.lua
Normal file
10
mods/mapgen/ores.lua
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "moontest:lightore",
|
||||||
|
wherein = "moontest:stone",
|
||||||
|
clust_scarcity = 10*10*10,
|
||||||
|
clust_num_ores = 6,
|
||||||
|
clust_size = 5,
|
||||||
|
height_min = -31000,
|
||||||
|
height_max = 5,
|
||||||
|
})
|
|
@ -9,6 +9,15 @@ minetest.register_craft({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "moontest:light",
|
||||||
|
recipe = {
|
||||||
|
{"moontest:light_crystal", "moontest:stone", "moontest:light_crystal"},
|
||||||
|
{"moontest:light_crystal", "default:mese_crystal", "moontest:light_crystal"},
|
||||||
|
{"moontest:light_crystal", "moontest:stone", "moontest:light_crystal"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "moontest:airgen",
|
output = "moontest:airgen",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
|
|
@ -290,6 +290,24 @@ minetest.register_node("moontest:stonestair", {
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("moontest:lightore", {
|
||||||
|
description = "Light ore",
|
||||||
|
tiles = {"moontest_stone.png^moontest_light_ore.png"},
|
||||||
|
light_source = 7,
|
||||||
|
groups = {cracky = 3, stone = 1},
|
||||||
|
drop = "moontest:light_crystal",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_node("moontest:light", {
|
||||||
|
description = "Light",
|
||||||
|
tiles = {"moontest_light.png"},
|
||||||
|
light_source = 14,
|
||||||
|
groups = {cracky = 3, stone = 1},
|
||||||
|
drop = "moontest:light_crystal",
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Items
|
-- Items
|
||||||
|
|
||||||
minetest.register_craftitem("moontest:spacesuit", {
|
minetest.register_craftitem("moontest:spacesuit", {
|
||||||
|
@ -297,6 +315,11 @@ minetest.register_craftitem("moontest:spacesuit", {
|
||||||
inventory_image = "moontest_spacesuit.png",
|
inventory_image = "moontest_spacesuit.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("moontest:light_crystal", {
|
||||||
|
description = "Light Cyrstal",
|
||||||
|
inventory_image = "moontest_light_crystal.png",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("moontest:helmet", {
|
minetest.register_craftitem("moontest:helmet", {
|
||||||
description = "Helmet",
|
description = "Helmet",
|
||||||
inventory_image = "moontest_helmet.png",
|
inventory_image = "moontest_helmet.png",
|
||||||
|
|
9
mods/moontest/ores.lua
Normal file
9
mods/moontest/ores.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
minetest.register_node("moontest:lightore", {
|
||||||
|
description = "Lightore",
|
||||||
|
tiles = {"moontest_stone.png^moontest_light_ore.png"},
|
||||||
|
light_source = 7,
|
||||||
|
groups = {cracky = 3, stone = 1},
|
||||||
|
drop = "moontest:light_crystal",
|
||||||
|
})
|
||||||
|
|
||||||
|
|
1
mods/moontest/readme.md
Normal file
1
mods/moontest/readme.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
With thanks to Evergreen for the Light Ore texture. (A modified version of the quatz ore from his quatz mod.) CC-BY-SA
|
Binary file not shown.
Before Width: | Height: | Size: 155 B After Width: | Height: | Size: 727 B |
BIN
mods/moontest/textures/moontest_light_crystal.png
Normal file
BIN
mods/moontest/textures/moontest_light_crystal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 322 B |
BIN
mods/moontest/textures/moontest_light_ore.png
Normal file
BIN
mods/moontest/textures/moontest_light_ore.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 298 B |
Loading…
Add table
Reference in a new issue