parent
0be2f4beb1
commit
84a5fba4dd
|
@ -198,8 +198,8 @@ mapgen.getGeodeInteriorNodeId = function(x, y, z)
|
||||||
|
|
||||||
local d3_1 = distSquaredList[3] - distSquaredList[1]
|
local d3_1 = distSquaredList[3] - distSquaredList[1]
|
||||||
local d3_2 = distSquaredList[3] - distSquaredList[2]
|
local d3_2 = distSquaredList[3] - distSquaredList[2]
|
||||||
local d4_1 = distSquaredList[4] - distSquaredList[1]
|
--local d4_1 = distSquaredList[4] - distSquaredList[1]
|
||||||
--local d4_3 = distSquaredList[4] - distSquaredList[3]
|
--local d4_3 = distSquaredList[4] - distSquaredList[3]
|
||||||
|
|
||||||
-- Some shape formulas (tuned for a structureSize of 50)
|
-- Some shape formulas (tuned for a structureSize of 50)
|
||||||
-- (d3_1 < 0.05) gives connective lines
|
-- (d3_1 < 0.05) gives connective lines
|
||||||
|
@ -212,9 +212,9 @@ mapgen.getGeodeInteriorNodeId = function(x, y, z)
|
||||||
|
|
||||||
if (d3_1 < 0.05 or d3_2 < .02) and distSquaredList[1] > .3 then
|
if (d3_1 < 0.05 or d3_2 < .02) and distSquaredList[1] > .3 then
|
||||||
return c_crystal
|
return c_crystal
|
||||||
elseif d4_1 < 0.08 then
|
elseif (distSquaredList[4] - distSquaredList[1]) < 0.08 then
|
||||||
return c_glowstone
|
return c_glowstone
|
||||||
|
else
|
||||||
|
return c_air
|
||||||
end
|
end
|
||||||
|
|
||||||
return c_air
|
|
||||||
end
|
end
|
17
nodes.lua
17
nodes.lua
|
@ -207,8 +207,8 @@ minetest.register_node("nether:geodelite", {
|
||||||
scale = 4
|
scale = 4
|
||||||
}},
|
}},
|
||||||
light_source = 2,
|
light_source = 2,
|
||||||
is_ground_content = true,
|
|
||||||
drop = "nether:geode",
|
drop = "nether:geode",
|
||||||
|
is_ground_content = true,
|
||||||
groups = {cracky = 3, oddly_breakable_by_hand = 3, nether_crystal = 1},
|
groups = {cracky = 3, oddly_breakable_by_hand = 3, nether_crystal = 1},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
@ -216,10 +216,17 @@ minetest.register_node("nether:geodelite", {
|
||||||
if minetest.get_modpath("xpanes") and minetest.global_exists("xpanes") and xpanes.register_pane ~= nil then
|
if minetest.get_modpath("xpanes") and minetest.global_exists("xpanes") and xpanes.register_pane ~= nil then
|
||||||
xpanes.register_pane("nether_crystal_pane", {
|
xpanes.register_pane("nether_crystal_pane", {
|
||||||
description = S("Nether Crystal Pane"),
|
description = S("Nether Crystal Pane"),
|
||||||
textures = {"nether_geode_glass.png", "", "xpanes_edge_obsidian.png"},
|
textures = {
|
||||||
inventory_image = "nether_geode_glass.png",
|
{
|
||||||
wield_image = "nether_geode_glass.png",
|
name = "nether_geode_glass.png",
|
||||||
use_texture_alpha = true,
|
align_style = "world",
|
||||||
|
scale = 2
|
||||||
|
},
|
||||||
|
"",
|
||||||
|
"xpanes_edge_obsidian.png"
|
||||||
|
},
|
||||||
|
inventory_image = "([combine:32x32:-8,-8=nether_geode_glass.png:24,-8=nether_geode_glass.png:-8,24=nether_geode_glass.png:24,24=nether_geode_glass.png)^[resize:16x16^[multiply:#922^default_obsidian_glass.png",
|
||||||
|
wield_image = "([combine:32x32:-8,-8=nether_geode_glass.png:24,-8=nether_geode_glass.png:-8,24=nether_geode_glass.png:24,24=nether_geode_glass.png)^[resize:16x16^[multiply:#922^default_obsidian_glass.png", use_texture_alpha = true,
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3},
|
groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3},
|
||||||
recipe = {
|
recipe = {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 495 B After Width: | Height: | Size: 590 B |
Loading…
Reference in New Issue