From 84a5fba4dd03f0738dc7eb170bb46765c08f9227 Mon Sep 17 00:00:00 2001 From: Treer Date: Mon, 1 Feb 2021 23:49:52 +1100 Subject: [PATCH] Improve nether crystal panes There was an attempt --- mapgen_geodes.lua | 10 +++++----- nodes.lua | 17 ++++++++++++----- textures/nether_geode_glass.png | Bin 495 -> 590 bytes 3 files changed, 17 insertions(+), 10 deletions(-) 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 8d733a95682316be99c676d12aa0f55ac4bca141..c84e5a9b8146ac25204d21c91b5e80ee19f7267a 100644 GIT binary patch delta 580 zcmaFQe2zu2Gr-TCmrII^fq{Y7)59eQNGpIa3p0>x3`sveQBk~}!63jV#5ItQFPJAh zRYU(I*gg_ z4=>%U=W$#bEoJmYlFLm|QC!DO_2HaI`2$DK7N1)yx9Lv*f3^C3%sUwmb;-M*6W!Q& zr{oq-@BB8$yUSG~uT;I$elg`{x(73(deza?ms&B;6qGr0HtX-^3~W@uda-qRf_8$aSoUFsq=K1762*t!>^^(KL9{+Dx?0#r(&Bh);t#=PWilSw zx$JGqGB*rQi1JuWVwt*S-G0^sf@jq)t84CLwm*KJF^;3+;^JaaLGOp<6O@%YQbl-9 z^E{3?sN1Y|$RtusPJ;3IBi8E+R%NlhN)7zataFvSarGSMeUJF!8tNZxJiZ{dQlF>c zpym{I{XOD0$|FD4&lmSp_;l$+^-Rx26ZO8|^H%M2dcC+}=G9q01V1Rm1x({T>T!GL z&y;HtJ3l=Ox3A%UaqbV(mU*17@7y?63ycBP64!_l$D)$V;u40CqSVwPg^ZGtf?_Lu z{q)R|jM5~%cj)^25dY)I%QSL3#mm2l4=II4sjsk7|e_`aza(Q>l?}`6;bfX-Ap-FiT0wHjtB!Qau=%cl_ z?<)RT9CJ1P13>gm;{dF`e#86aWdLGe2)4}KuSXSuRViuub?Z9-Uj}`eew}VB)CZ|i z{}U<034~zlg}}SMewIklgGS>);vh9@qvq*yZ2#oMPNA0?1>oK%zh@age+GSesZrfl zr~$UmFDfEsaz{$N1Ih`6D99$YiKbtF@SPYqn~=+*E>I!A%raJ`v}Jc&q24~fP}5&L zp6rerB?&#S