From 928e58346d56ba5224264db76b3bd30bb34ad8c1 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 7 Feb 2017 03:07:37 +0100 Subject: [PATCH] Add more standard groups --- API.md | 5 +++++ mods/beds/init.lua | 2 +- mods/doors/init.lua | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index a44ff19e9..d0ab36a4e 100644 --- a/API.md +++ b/API.md @@ -56,6 +56,11 @@ These groups are used mostly for informational purposes * `liquid=3`: Lava * `clock=1`: Clock * `compass`: Compass (rating doesn't matter) +* `book=1`: Book +* `pane=1`: Node is a “pane”-like node glass pane or iron bars +* `bed=1`: Bed +* `door=1`: Door +* `door=2`: Trapdoor * `rail=1`: Rail * `music_record`: Music Disc (rating is track ID) * `tnt=1`: Block is TNT diff --git a/mods/beds/init.lua b/mods/beds/init.lua index 99afba9a8..8e95822b2 100644 --- a/mods/beds/init.lua +++ b/mods/beds/init.lua @@ -54,7 +54,7 @@ minetest.register_node("beds:bed_bottom", { paramtype = "light", paramtype2 = "facedir", stack_max = 1, - groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,deco_block=1}, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3,bed=1,deco_block=1}, sounds = mcl_core.node_sound_wood_defaults(), node_box = { type = "fixed", diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 2d0704341..acf5d38b2 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -503,7 +503,7 @@ minetest.register_node("doors:trapdoor", { paramtype = "light", stack_max = 64, paramtype2 = "facedir", - groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=1}, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2}, sounds = mcl_core.node_sound_wood_defaults(), drop = "doors:trapdoor", node_box = { @@ -549,7 +549,7 @@ minetest.register_node("doors:trapdoor_open", { paramtype = "light", paramtype2 = "facedir", pointable = true, - groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=1}, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2}, sounds = mcl_core.node_sound_wood_defaults(), drop = "doors:trapdoor", node_box = { @@ -626,7 +626,7 @@ minetest.register_node("doors:iron_trapdoor", { is_ground_content = false, stack_max = 64, paramtype2 = "facedir", - groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=1}, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,mesecon_effector_on=1,door=2}, sounds = mcl_core.node_sound_wood_defaults(), drop = "doors:iron_trapdoor", node_box = { @@ -672,7 +672,7 @@ minetest.register_node("doors:iron_trapdoor_open", { paramtype2 = "facedir", is_ground_content = false, pointable = true, - groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=1,mesecon_effector_on=1}, + groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,door=2,mesecon_effector_on=1}, sounds = mcl_core.node_sound_wood_defaults(), drop = "doors:iron_trapdoor", node_box = {