From 5102ad7a39fe2f6a67accd90ecd6fed54d47a5f5 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 26 Oct 2023 18:02:06 +0200 Subject: [PATCH] white, colorable octagon glass --- crafts.lua | 9 +++++++++ nodes.lua | 22 ++++++++++++++++++++++ textures/scifi_nodes_octwht.png | Bin 0 -> 109 bytes 3 files changed, 31 insertions(+) create mode 100644 textures/scifi_nodes_octwht.png diff --git a/crafts.lua b/crafts.lua index c77f383..794c529 100644 --- a/crafts.lua +++ b/crafts.lua @@ -945,6 +945,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "scifi_nodes:octwht 4", + recipe = { + {"dye:white", "scifi_nodes:glass", ""}, + {"scifi_nodes:glass", "scifi_nodes:lightbar", "scifi_nodes:glass"}, + {"", "scifi_nodes:glass", "dye:white"} + } +}) + -- 1 purple node from 1 plastic, 1 blue dye and 1 red dye minetest.register_craft({ output = "scifi_nodes:purple", diff --git a/nodes.lua b/nodes.lua index 7755467..dfe0bf9 100644 --- a/nodes.lua +++ b/nodes.lua @@ -402,6 +402,28 @@ minetest.register_node("scifi_nodes:octppl", { sounds = scifi_nodes.node_sound_glass_defaults(), }) +minetest.register_node("scifi_nodes:octwht", { + description = "Octagon Glass", + sunlight_propagates = false, + drawtype = "glasslike", + tiles = { + "scifi_nodes_octwht.png", + }, + palette = "unifieddyes_palette_extended.png", + paramtype = "light", + paramtype2 = "color", + use_texture_alpha = "blend", + light_source = 10, + groups = { + cracky = 2, + dig_generic = 3, + ud_param2_colorable = 1 + }, + sounds = scifi_nodes.node_sound_glass_defaults(), + on_construct = unifieddyes.on_construct, + on_dig = unifieddyes.on_dig +}) + minetest.register_node("scifi_nodes:tower", { description = "Wind tower", sunlight_propagates = false, diff --git a/textures/scifi_nodes_octwht.png b/textures/scifi_nodes_octwht.png new file mode 100644 index 0000000000000000000000000000000000000000..e97b308537e7dba077da3792a0772632faf989de GIT binary patch literal 109 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!D3?x-;bCrM;TYyi9>who^t@)Y*6k#k0@(cF# zf2IghFY4*y7{Vc&T#}fuB_V-j(%FPb0@4f>J6L5Mrlej0Dq!$*^>bP0l+XkKo@*WK literal 0 HcmV?d00001