diff --git a/mapgen_geodes.lua b/mapgen_geodes.lua index 280809c..030c8cd 100644 --- a/mapgen_geodes.lua +++ b/mapgen_geodes.lua @@ -198,8 +198,8 @@ mapgen.getGeodeInteriorNodeId = function(x, y, z) local d3_1 = distSquaredList[3] - distSquaredList[1] local d3_2 = distSquaredList[3] - distSquaredList[2] - local d4_1 = distSquaredList[4] - distSquaredList[1] - --local d4_3 = distSquaredList[4] - distSquaredList[3] + --local d4_1 = distSquaredList[4] - distSquaredList[1] + --local d4_3 = distSquaredList[4] - distSquaredList[3] -- Some shape formulas (tuned for a structureSize of 50) -- (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 return c_crystal - elseif d4_1 < 0.08 then + elseif (distSquaredList[4] - distSquaredList[1]) < 0.08 then return c_glowstone + else + return c_air end - - return c_air end \ No newline at end of file diff --git a/nodes.lua b/nodes.lua index 8fb1ddc..fc9754c 100644 --- a/nodes.lua +++ b/nodes.lua @@ -207,8 +207,8 @@ minetest.register_node("nether:geodelite", { scale = 4 }}, light_source = 2, - is_ground_content = true, drop = "nether:geode", + is_ground_content = true, groups = {cracky = 3, oddly_breakable_by_hand = 3, nether_crystal = 1}, 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 xpanes.register_pane("nether_crystal_pane", { description = S("Nether Crystal Pane"), - textures = {"nether_geode_glass.png", "", "xpanes_edge_obsidian.png"}, - inventory_image = "nether_geode_glass.png", - wield_image = "nether_geode_glass.png", - use_texture_alpha = true, + textures = { + { + name = "nether_geode_glass.png", + 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(), groups = {snappy=2, cracky=3, oddly_breakable_by_hand=3}, recipe = { diff --git a/textures/nether_geode_glass.png b/textures/nether_geode_glass.png index 8d733a9..c84e5a9 100644 Binary files a/textures/nether_geode_glass.png and b/textures/nether_geode_glass.png differ