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 0000000..e97b308 Binary files /dev/null and b/textures/scifi_nodes_octwht.png differ