mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-15 23:10:28 +02:00
two crystal sizes, add slight glow to cave moss, add columns to layer 1
This commit is contained in:
@ -35,7 +35,7 @@ minetest.register_node("dfcaverns:glow_ruby_ore", {
|
||||
minetest.register_node("dfcaverns:big_crystal", {
|
||||
description = S("Giant Crystal"),
|
||||
drawtype = "mesh",
|
||||
mesh = "hex_crystal.obj",
|
||||
mesh = "hex_crystal_big.obj",
|
||||
tiles = {
|
||||
"dfcaverns_glow_ruby4x.png",
|
||||
"dfcaverns_glow_ruby.png",
|
||||
@ -58,11 +58,37 @@ minetest.register_node("dfcaverns:big_crystal", {
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("dfcaverns:med_crystal", {
|
||||
description = S("Big Crystal"),
|
||||
drawtype = "mesh",
|
||||
mesh = "hex_crystal_med.obj",
|
||||
tiles = {
|
||||
"dfcaverns_glow_ruby.png",
|
||||
"dfcaverns_glow_ruby_quarter.png",
|
||||
},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
light_source = 12,
|
||||
groups = {cracky=2, dfcaverns_big_crystal = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 1.25, 0.25},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.25, -0.5, -0.25, 0.25, 1.25, 0.25},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("dfcaverns:big_crystal_30", {
|
||||
description = S("Giant Crystal"),
|
||||
drawtype = "mesh",
|
||||
mesh = "hex_crystal_30.obj",
|
||||
mesh = "hex_crystal_30_big.obj",
|
||||
tiles = {
|
||||
"dfcaverns_glow_ruby4x.png",
|
||||
"dfcaverns_glow_ruby.png",
|
||||
@ -82,7 +108,7 @@ minetest.register_node("dfcaverns:big_crystal_30", {
|
||||
{-0.5, -0.5, -0.625, 0.5, 0.5, 0.375},
|
||||
{-0.5, 0.5, -1.25, 0.5, 1.5, -0.25},
|
||||
{-0.5, 1.5, -1.875, 0.5, 2.5, -0.875},
|
||||
}
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
@ -90,14 +116,49 @@ minetest.register_node("dfcaverns:big_crystal_30", {
|
||||
{-0.5, -0.5, -0.625, 0.5, 0.5, 0.375},
|
||||
{-0.5, 0.5, -1.25, 0.5, 1.5, -0.25},
|
||||
{-0.5, 1.5, -1.875, 0.5, 2.5, -0.875},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("dfcaverns:med_crystal_30", {
|
||||
description = S("Big Crystal"),
|
||||
drawtype = "mesh",
|
||||
mesh = "hex_crystal_30_med.obj",
|
||||
tiles = {
|
||||
"dfcaverns_glow_ruby.png",
|
||||
"dfcaverns_glow_ruby_quarter.png",
|
||||
},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
light_source = 12,
|
||||
drop = "dfcaverns:med_crystal",
|
||||
groups = {cracky=2, dfcaverns_big_crystal = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.5, -0.3125, 0.25, 0.0, 0.1875},
|
||||
{-0.25, 0.0, -0.625, 0.25, 0.5, -0.125},
|
||||
{-0.25, 0.5, -0.9375, 0.25, 1.0, -0.4375},
|
||||
}
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, -0.5, -0.3125, 0.25, 0.0, 0.1875},
|
||||
{-0.25, 0.0, -0.625, 0.25, 0.5, -0.125},
|
||||
{-0.25, 0.5, -0.9375, 0.25, 1.0, -0.4375},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("dfcaverns:big_crystal_30_45", {
|
||||
description = S("Giant Crystal"),
|
||||
drawtype = "mesh",
|
||||
mesh = "hex_crystal_30_45.obj",
|
||||
mesh = "hex_crystal_30_45_big.obj",
|
||||
tiles = {
|
||||
"dfcaverns_glow_ruby4x.png",
|
||||
"dfcaverns_glow_ruby.png",
|
||||
@ -117,7 +178,7 @@ minetest.register_node("dfcaverns:big_crystal_30_45", {
|
||||
{-0.375, -0.5, -0.625, 0.625, 0.5, 0.375},
|
||||
{0.0625, 0.5, -1.0625, 1.0625, 1.5, -0.0625},
|
||||
{0.5, 1.5, -1.5, 1.5, 2.5, -0.5},
|
||||
}
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
@ -125,25 +186,76 @@ minetest.register_node("dfcaverns:big_crystal_30_45", {
|
||||
{-0.375, -0.5, -0.625, 0.625, 0.5, 0.375},
|
||||
{0.0625, 0.5, -1.0625, 1.0625, 1.5, -0.0625},
|
||||
{0.5, 1.5, -1.5, 1.5, 2.5, -0.5},
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("dfcaverns:med_crystal_30_45", {
|
||||
description = S("Big Crystal"),
|
||||
drawtype = "mesh",
|
||||
mesh = "hex_crystal_30_45_med.obj",
|
||||
tiles = {
|
||||
"dfcaverns_glow_ruby4x.png",
|
||||
"dfcaverns_glow_ruby.png",
|
||||
},
|
||||
use_texture_alpha = true,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
light_source = 12,
|
||||
drop = "dfcaverns:med_crystal",
|
||||
groups = {cracky=2, dfcaverns_big_crystal = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.1875, -0.5, -0.3125, 0.3125, 0.0, 0.1875},
|
||||
{0.03125, 0.0, -0.53125, 0.53125, 0.5, -0.03125},
|
||||
{0.25, 0.5, -0.75, 0.75, 1.0, -0.25},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.1875, -0.5, -0.3125, 0.3125, 0.0, 0.1875},
|
||||
{0.03125, 0.0, -0.53125, 0.53125, 0.5, -0.03125},
|
||||
{0.25, 0.5, -0.75, 0.75, 1.0, -0.25},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
local c_stone = minetest.get_content_id("default:stone")
|
||||
local c_air = minetest.get_content_id("air")
|
||||
local c_big_crystal = minetest.get_content_id("dfcaverns:big_crystal")
|
||||
local c_med_crystal = minetest.get_content_id("dfcaverns:med_crystal")
|
||||
local c_big_crystal_30 = minetest.get_content_id("dfcaverns:big_crystal_30")
|
||||
local c_med_crystal_30 = minetest.get_content_id("dfcaverns:med_crystal_30")
|
||||
local c_big_crystal_30_45 = minetest.get_content_id("dfcaverns:big_crystal_30_45")
|
||||
local c_med_crystal_30_45 = minetest.get_content_id("dfcaverns:med_crystal_30_45")
|
||||
local c_glow_ore = minetest.get_content_id("dfcaverns:glow_ruby_ore")
|
||||
|
||||
local place_big_crystal = function(data, data_param2, i, ceiling)
|
||||
orientation = math.random()
|
||||
if orientation < 0.33 then
|
||||
data[i] = c_big_crystal
|
||||
if math.random() > 0.5 then
|
||||
data[i] = c_big_crystal
|
||||
else
|
||||
data[i] = c_med_crystal
|
||||
end
|
||||
elseif orientation < 0.66 then
|
||||
data[i] = c_big_crystal_30
|
||||
if math.random() > 0.5 then
|
||||
data[i] = c_big_crystal_30
|
||||
else
|
||||
data[i] = c_med_crystal_30
|
||||
end
|
||||
else
|
||||
data[i] = c_big_crystal_30_45
|
||||
if math.random() > 0.5 then
|
||||
data[i] = c_big_crystal_30_45
|
||||
else
|
||||
data[i] = c_med_crystal_30_45
|
||||
end
|
||||
end
|
||||
if ceiling then
|
||||
data_param2[i] = math.random(20,23)
|
||||
|
@ -16,6 +16,7 @@ minetest.register_node("dfcaverns:dirt_with_cave_moss", {
|
||||
tileable_vertical = false}},
|
||||
drop = "default:dirt",
|
||||
is_ground_content = true,
|
||||
light_source = 2,
|
||||
groups = {crumbly = 3, soil = 1, light_sensitive_fungus = 11},
|
||||
sounds = default.node_sound_dirt_defaults({
|
||||
footstep = {name = "default_grass_footstep", gain = 0.25},
|
||||
|
Reference in New Issue
Block a user