Tweak node groups

This commit is contained in:
jp 2015-11-15 22:55:12 +01:00
parent c6b4930650
commit 3c3bbc857f
7 changed files with 26 additions and 26 deletions

View File

@ -596,7 +596,7 @@ minetest.register_node(":realchess:chessboard", {
tiles = {"chessboard_top.png", "chessboard_top.png", tiles = {"chessboard_top.png", "chessboard_top.png",
"chessboard_sides.png", "chessboard_sides.png", "chessboard_sides.png", "chessboard_sides.png",
"chessboard_top.png", "chessboard_top.png"}, "chessboard_top.png", "chessboard_top.png"},
groups = {choppy=3, flammable=3}, groups = {choppy=3, oddly_breakable_by_hand=2, flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}}, node_box = {type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}},
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -93,7 +93,7 @@ xdecor.register("enchantment_table", {
"xdecor_enchantment_side.png", "xdecor_enchantment_side.png", "xdecor_enchantment_side.png", "xdecor_enchantment_side.png",
"xdecor_enchantment_side.png", "xdecor_enchantment_side.png" "xdecor_enchantment_side.png", "xdecor_enchantment_side.png"
}, },
groups = {cracky=1}, groups = {cracky=1, oddly_breakable_by_hand=1, level=2},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
can_dig = enchanting.dig, can_dig = enchanting.dig,

View File

@ -26,7 +26,7 @@ xdecor.register("hive", {
"xdecor_hive_side.png", "xdecor_hive_side.png", "xdecor_hive_side.png", "xdecor_hive_side.png",
"xdecor_hive_side.png", "xdecor_hive_front.png" "xdecor_hive_side.png", "xdecor_hive_front.png"
}, },
groups = {snappy=3, flammable=1}, groups = {choppy=3, oddly_breakable_by_hand=2, flammable=1},
on_construct = hive.construct, on_construct = hive.construct,
can_dig = hive.dig, can_dig = hive.dig,
on_punch = function(_, _, puncher, _) on_punch = function(_, _, puncher, _)

View File

@ -81,7 +81,7 @@ end
xdecor.register("frame", { xdecor.register("frame", {
description = "Item Frame", description = "Item Frame",
groups = {choppy=3, snappy=2}, groups = {choppy=3, oddly_breakable_by_hand=2},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.disallow, on_rotate = screwdriver.disallow,
sunlight_propagates = true, sunlight_propagates = true,

View File

@ -9,7 +9,7 @@ xdecor.register("mailbox", {
"xdecor_mailbox_side.png", "xdecor_mailbox_side.png", "xdecor_mailbox_side.png", "xdecor_mailbox_side.png",
"xdecor_mailbox.png", "xdecor_mailbox.png", "xdecor_mailbox.png", "xdecor_mailbox.png",
}, },
groups = {cracky=3}, groups = {cracky=3, oddly_breakable_by_hand=1},
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
after_place_node = function(pos, placer, _) after_place_node = function(pos, placer, _)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)

View File

@ -40,7 +40,7 @@ xpanes.register_pane("bamboo_frame", {
textures = {"xdecor_bamboo_frame.png", "xdecor_bamboo_frame.png", "xpanes_space.png"}, textures = {"xdecor_bamboo_frame.png", "xdecor_bamboo_frame.png", "xpanes_space.png"},
inventory_image = "xdecor_bamboo_frame.png", inventory_image = "xdecor_bamboo_frame.png",
wield_image = "xdecor_bamboo_frame.png", wield_image = "xdecor_bamboo_frame.png",
groups = {snappy=3, pane=1, flammable=2}, groups = {choppy=3, oddly_breakable_by_hand=2, pane=1, flammable=2},
recipe = { recipe = {
{"default:papyrus", "default:papyrus", "default:papyrus"}, {"default:papyrus", "default:papyrus", "default:papyrus"},
{"default:papyrus", "farming:cotton", "default:papyrus"}, {"default:papyrus", "farming:cotton", "default:papyrus"},
@ -54,7 +54,7 @@ xdecor.register("baricade", {
walkable = false, walkable = false,
inventory_image = "xdecor_baricade.png", inventory_image = "xdecor_baricade.png",
tiles = {"xdecor_baricade.png"}, tiles = {"xdecor_baricade.png"},
groups = {snappy=3, flammable=3}, groups = {choppy=2, oddly_breakable_by_hand=1, flammable=3},
damage_per_second = 4, damage_per_second = 4,
selection_box = xdecor.nodebox.slab_y(0.3) selection_box = xdecor.nodebox.slab_y(0.3)
}) })
@ -64,7 +64,7 @@ xdecor.register("barrel", {
inventory = {size=24}, inventory = {size=24},
infotext = "Barrel", infotext = "Barrel",
tiles = {"xdecor_barrel_top.png", "xdecor_barrel_sides.png"}, tiles = {"xdecor_barrel_top.png", "xdecor_barrel_sides.png"},
groups = {choppy=3, flammable=3}, groups = {choppy=2, oddly_breakable_by_hand=1, flammable=3},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
}) })
@ -72,7 +72,7 @@ xdecor.register("cabinet", {
description = "Wood Cabinet", description = "Wood Cabinet",
inventory = {size=24}, inventory = {size=24},
infotext = "Wood Cabinet", infotext = "Wood Cabinet",
groups = {choppy=3, flammable=3}, groups = {choppy=2, oddly_breakable_by_hand=1, flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
tiles = { tiles = {
@ -86,7 +86,7 @@ xdecor.register("cabinet_half", {
description = "Half Wood Cabinet", description = "Half Wood Cabinet",
inventory = {size=8}, inventory = {size=8},
infotext = "Half Wood Cabinet", infotext = "Half Wood Cabinet",
groups = {choppy=3, flammable=3}, groups = {choppy=3, oddly_breakable_by_hand=2, flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = xdecor.nodebox.slab_y(0.5, 0.5), node_box = xdecor.nodebox.slab_y(0.5, 0.5),
tiles = { tiles = {
@ -124,7 +124,7 @@ xdecor.register("candle", {
xdecor.register("cauldron", { xdecor.register("cauldron", {
description = "Cauldron", description = "Cauldron",
groups = {cracky=2}, groups = {cracky=2, oddly_breakable_by_hand=1},
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
tiles = { tiles = {
{ name = "xdecor_cauldron_top_anim.png", { name = "xdecor_cauldron_top_anim.png",
@ -162,7 +162,7 @@ xpanes.register_pane("chainlink", {
textures = {"xdecor_chainlink.png", "xdecor_chainlink.png", "xpanes_space.png"}, textures = {"xdecor_chainlink.png", "xdecor_chainlink.png", "xpanes_space.png"},
inventory_image = "xdecor_chainlink.png", inventory_image = "xdecor_chainlink.png",
wield_image = "xdecor_chainlink.png", wield_image = "xdecor_chainlink.png",
groups = {snappy=3, pane=1}, groups = {cracky=3, oddly_breakable_by_hand=2, pane=1},
recipe = { recipe = {
{"default:steel_ingot", "", "default:steel_ingot"}, {"default:steel_ingot", "", "default:steel_ingot"},
{"", "default:steel_ingot", ""}, {"", "default:steel_ingot", ""},
@ -174,7 +174,7 @@ xdecor.register("chair", {
description = "Chair", description = "Chair",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
groups = {choppy=3, flammable=3}, groups = {choppy=3, oddly_breakable_by_hand=2, flammable=3},
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -310,7 +310,7 @@ for _, d in pairs(door_types) do
doors.register_door("xdecor:"..d[1].."_door", { doors.register_door("xdecor:"..d[1].."_door", {
description = string.gsub(d[1]:gsub("^%l", string.upper), "_r", " R").." Door", description = string.gsub(d[1]:gsub("^%l", string.upper), "_r", " R").." Door",
inventory_image = "xdecor_"..d[1].."_door_inv.png", inventory_image = "xdecor_"..d[1].."_door_inv.png",
groups = {choppy=3, flammable=2, door=1}, groups = {choppy=3, cracky=3, oddly_breakable_by_hand=1, flammable=2, door=1},
tiles_bottom = {"xdecor_"..d[1].."_door_b.png", "xdecor_"..d[2]..".png"}, tiles_bottom = {"xdecor_"..d[1].."_door_b.png", "xdecor_"..d[2]..".png"},
tiles_top = {"xdecor_"..d[1].."_door_a.png", "xdecor_"..d[2]..".png"}, tiles_top = {"xdecor_"..d[1].."_door_a.png", "xdecor_"..d[2]..".png"},
only_placer_can_open = door_access(d[1]), only_placer_can_open = door_access(d[1]),
@ -324,7 +324,7 @@ xdecor.register("empty_shelf", {
inventory = {size=24}, inventory = {size=24},
infotext = "Empty Shelf", infotext = "Empty Shelf",
tiles = {"default_wood.png", "default_wood.png^xdecor_empty_shelf.png"}, tiles = {"default_wood.png", "default_wood.png^xdecor_empty_shelf.png"},
groups = {choppy=3, flammable=3}, groups = {choppy=2, oddly_breakable_by_hand=1, flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
on_rotate = screwdriver.rotate_simple on_rotate = screwdriver.rotate_simple
}) })
@ -336,7 +336,7 @@ xdecor.register("enderchest", {
"xdecor_enderchest_side.png", "xdecor_enderchest_side.png", "xdecor_enderchest_side.png", "xdecor_enderchest_side.png",
"xdecor_enderchest_side.png", "xdecor_enderchest_front.png" "xdecor_enderchest_side.png", "xdecor_enderchest_front.png"
}, },
groups = {cracky=2}, groups = {cracky=1, choppy=1, oddly_breakable_by_hand=1},
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
on_construct = function(pos) on_construct = function(pos)
@ -438,7 +438,7 @@ xdecor.register("lantern", {
xdecor.register("lightbox", { xdecor.register("lightbox", {
description = "Light Box", description = "Light Box",
tiles = {"xdecor_lightbox.png"}, tiles = {"xdecor_lightbox.png"},
groups = {cracky=3}, groups = {cracky=3, choppy=3, oddly_breakable_by_hand=2},
light_source = 13, light_source = 13,
sounds = default.node_sound_glass_defaults() sounds = default.node_sound_glass_defaults()
}) })
@ -447,7 +447,7 @@ xdecor.register("packed_ice", {
drawtype = "normal", drawtype = "normal",
description = "Packed Ice", description = "Packed Ice",
tiles = {"xdecor_packed_ice.png"}, tiles = {"xdecor_packed_ice.png"},
groups = {cracky=2}, groups = {cracky=1, puts_out_fire=1},
sounds = default.node_sound_glass_defaults() sounds = default.node_sound_glass_defaults()
}) })
@ -512,7 +512,7 @@ xdecor.register("multishelf", {
infotext = "Multi Shelf", infotext = "Multi Shelf",
on_rotate = screwdriver.rotate_simple, on_rotate = screwdriver.rotate_simple,
tiles = {"default_wood.png", "default_wood.png^xdecor_multishelf.png"}, tiles = {"default_wood.png", "default_wood.png^xdecor_multishelf.png"},
groups = {choppy=3, flammable=3}, groups = {choppy=2, oddly_breakable_by_hand=1, flammable=3},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
}) })
@ -524,7 +524,7 @@ xpanes.register_pane("rust_bar", {
textures = {"xdecor_rust_bars.png", "xdecor_rust_bars.png", "xpanes_space.png"}, textures = {"xdecor_rust_bars.png", "xdecor_rust_bars.png", "xpanes_space.png"},
inventory_image = "xdecor_rust_bars.png", inventory_image = "xdecor_rust_bars.png",
wield_image = "xdecor_rust_bars.png", wield_image = "xdecor_rust_bars.png",
groups = {snappy=3, pane=1}, groups = {cracky=3, oddly_breakable_by_hand=2, pane=1},
recipe = { recipe = {
{"", "default:dirt", ""}, {"", "default:dirt", ""},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
@ -558,7 +558,7 @@ for _, t in pairs(stonish) do
description = string.sub(t:gsub("^%l", string.upper), 1, -6) description = string.sub(t:gsub("^%l", string.upper), 1, -6)
.." "..t:sub(-4):gsub("^%l", string.upper), .." "..t:sub(-4):gsub("^%l", string.upper),
tiles = {"xdecor_"..t..".png"}, tiles = {"xdecor_"..t..".png"},
groups = {cracky=2}, groups = {cracky=1},
sounds = default.node_sound_stone_defaults() sounds = default.node_sound_stone_defaults()
}) })
end end
@ -566,7 +566,7 @@ end
xdecor.register("table", { xdecor.register("table", {
description = "Table", description = "Table",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
groups = {choppy=3, flammable=3}, groups = {choppy=3, oddly_breakable_by_hand=2, flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -608,7 +608,7 @@ xpanes.register_pane("wood_frame", {
textures = {"xdecor_wood_frame.png", "xdecor_wood_frame.png", "xpanes_space.png"}, textures = {"xdecor_wood_frame.png", "xdecor_wood_frame.png", "xpanes_space.png"},
inventory_image = "xdecor_wood_frame.png", inventory_image = "xdecor_wood_frame.png",
wield_image = "xdecor_wood_frame.png", wield_image = "xdecor_wood_frame.png",
groups = {choppy=3, pane=1, flammable=3}, groups = {choppy=3, oddly_breakable_by_hand=2, pane=1, flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
recipe = { recipe = {
{"group:wood", "group:stick", "group:wood"}, {"group:wood", "group:stick", "group:wood"},
@ -621,7 +621,7 @@ xdecor.register("woodframed_glass", {
description = "Wood Framed Glass", description = "Wood Framed Glass",
drawtype = "glasslike_framed", drawtype = "glasslike_framed",
tiles = {"xdecor_woodframed_glass.png", "xdecor_woodframed_glass_detail.png"}, tiles = {"xdecor_woodframed_glass.png", "xdecor_woodframed_glass_detail.png"},
groups = {cracky=3}, groups = {cracky=3, oddly_breakable_by_hand=2},
sounds = default.node_sound_glass_defaults() sounds = default.node_sound_glass_defaults()
}) })
@ -629,6 +629,6 @@ xdecor.register("wood_tile", {
description = "Wood Tile", description = "Wood Tile",
tiles = {"xdecor_wood_tile.png"}, tiles = {"xdecor_wood_tile.png"},
drawtype = "normal", drawtype = "normal",
groups = {choppy=2, wood=1, flammable=2}, groups = {choppy=1, oddly_breakable_by_hand=1, wood=1, flammable=2},
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()
}) })

View File

@ -165,7 +165,7 @@ end
xdecor.register("worktable", { xdecor.register("worktable", {
description = "Work Table", description = "Work Table",
groups = {cracky=2, choppy=2}, groups = {cracky=2, choppy=2, oddly_breakable_by_hand=1},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
tiles = { tiles = {
"xdecor_worktable_top.png", "xdecor_worktable_top.png", "xdecor_worktable_top.png", "xdecor_worktable_top.png",