Improve nether crystal panes

There was an attempt
This commit is contained in:
Treer 2021-02-01 23:49:52 +11:00 committed by Treer
parent 0be2f4beb1
commit 84a5fba4dd
3 changed files with 17 additions and 10 deletions

View File

@ -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

View File

@ -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 = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 495 B

After

Width:  |  Height:  |  Size: 590 B