From a7fdfa13ef9f21cc738b193bb2d6f2ffd5428737 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Mar 2017 15:19:51 +0100 Subject: [PATCH] Add glass group --- GROUPS.md | 1 + mods/ITEMS/mcl_core/functions.lua | 2 +- mods/ITEMS/mcl_core/nodes.lua | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/GROUPS.md b/GROUPS.md index 3f3ddc0e7..00ebd742d 100644 --- a/GROUPS.md +++ b/GROUPS.md @@ -90,6 +90,7 @@ These groups are used mostly for informational purposes * `bed=1`: Bed * `door=1`: Door * `door=2`: Trapdoor +* `glass=1`: Glass (full cubes only) * `rail=1`: Rail * `music_record`: Music Disc (rating is track ID) * `tnt=1`: Block is TNT diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 1105bc973..47f3a21d9 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -577,7 +577,7 @@ function mcl_core.add_glass(desc, recipeitem, color) paramtype = "light", use_texture_alpha = true, stack_max = 64, - groups = {handy=1, building_block=1}, + groups = {handy=1, glass=1, building_block=1}, sounds = mcl_sounds.node_sound_glass_defaults(), drop = "", _mcl_blast_resistance = 1.5, diff --git a/mods/ITEMS/mcl_core/nodes.lua b/mods/ITEMS/mcl_core/nodes.lua index 69956a25f..6bda34f55 100644 --- a/mods/ITEMS/mcl_core/nodes.lua +++ b/mods/ITEMS/mcl_core/nodes.lua @@ -1116,7 +1116,7 @@ minetest.register_node("mcl_core:glass", { paramtype = "light", sunlight_propagates = true, stack_max = 64, - groups = {handy=1, building_block=1}, + groups = {handy=1, glass=1, building_block=1}, sounds = mcl_sounds.node_sound_glass_defaults(), drop = "", _mcl_blast_resistance = 1.5,