Add more standard groups

This commit is contained in:
Wuzzy 2017-02-07 03:07:37 +01:00
parent 94f257028e
commit 928e58346d
3 changed files with 10 additions and 5 deletions

5
API.md
View File

@ -56,6 +56,11 @@ These groups are used mostly for informational purposes
* `liquid=3`: Lava * `liquid=3`: Lava
* `clock=1`: Clock * `clock=1`: Clock
* `compass`: Compass (rating doesn't matter) * `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 * `rail=1`: Rail
* `music_record`: Music Disc (rating is track ID) * `music_record`: Music Disc (rating is track ID)
* `tnt=1`: Block is TNT * `tnt=1`: Block is TNT

View File

@ -54,7 +54,7 @@ minetest.register_node("beds:bed_bottom", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
stack_max = 1, 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(), sounds = mcl_core.node_sound_wood_defaults(),
node_box = { node_box = {
type = "fixed", type = "fixed",

View File

@ -503,7 +503,7 @@ minetest.register_node("doors:trapdoor", {
paramtype = "light", paramtype = "light",
stack_max = 64, stack_max = 64,
paramtype2 = "facedir", 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(), sounds = mcl_core.node_sound_wood_defaults(),
drop = "doors:trapdoor", drop = "doors:trapdoor",
node_box = { node_box = {
@ -549,7 +549,7 @@ minetest.register_node("doors:trapdoor_open", {
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
pointable = true, 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(), sounds = mcl_core.node_sound_wood_defaults(),
drop = "doors:trapdoor", drop = "doors:trapdoor",
node_box = { node_box = {
@ -626,7 +626,7 @@ minetest.register_node("doors:iron_trapdoor", {
is_ground_content = false, is_ground_content = false,
stack_max = 64, stack_max = 64,
paramtype2 = "facedir", 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(), sounds = mcl_core.node_sound_wood_defaults(),
drop = "doors:iron_trapdoor", drop = "doors:iron_trapdoor",
node_box = { node_box = {
@ -672,7 +672,7 @@ minetest.register_node("doors:iron_trapdoor_open", {
paramtype2 = "facedir", paramtype2 = "facedir",
is_ground_content = false, is_ground_content = false,
pointable = true, 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(), sounds = mcl_core.node_sound_wood_defaults(),
drop = "doors:iron_trapdoor", drop = "doors:iron_trapdoor",
node_box = { node_box = {