Tweak item groups

This commit is contained in:
jp 2015-07-28 22:08:23 +02:00
parent 270aaf7f6c
commit b3f9a68c16
4 changed files with 17 additions and 17 deletions

View File

@ -32,7 +32,7 @@ xdecor.register("hive", {
"xdecor_hive_side.png", "xdecor_hive_side.png",
"xdecor_hive_front.png", "xdecor_hive_front.png",
}, },
groups = {choppy=3, flammable=1}, groups = {snappy=3, choppy=3, flammable=1},
on_construct = hive_construct, on_construct = hive_construct,
can_dig = hive_dig, can_dig = hive_dig,
on_punch = function(pos, node, puncher, pointed_thing) on_punch = function(pos, node, puncher, pointed_thing)

View File

@ -5,7 +5,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=2}, groups = {snappy=2, cracky=2},
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local owner = placer:get_player_name() local owner = placer:get_player_name()

View File

@ -31,7 +31,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=2}, groups = {snappy=2, choppy=3, flammable=2},
sounds = xdecor.wood sounds = xdecor.wood
}) })
@ -39,7 +39,7 @@ xdecor.register("cabinet", {
description = "Cabinet", description = "Cabinet",
inventory = {size=24}, inventory = {size=24},
infotext = "Cabinet", infotext = "Cabinet",
groups = {choppy=3}, groups = {snappy=2, choppy=3},
sounds = xdecor.wood, sounds = xdecor.wood,
tiles = { tiles = {
"default_wood.png", "default_wood.png", "default_wood.png", "default_wood.png",
@ -52,7 +52,7 @@ xdecor.register("cabinet_half", {
description = "Half Cabinet", description = "Half Cabinet",
inventory = {size=8}, inventory = {size=8},
infotext = "Half Cabinet", infotext = "Half Cabinet",
groups = {choppy=3, flammable=2}, groups = {snappy=3, choppy=3, flammable=2},
sounds = xdecor.wood, sounds = xdecor.wood,
node_box = xdecor.nodebox.slab_y(0.5, 0.5), node_box = xdecor.nodebox.slab_y(0.5, 0.5),
tiles = { tiles = {
@ -138,7 +138,7 @@ xdecor.register("chair", {
description = "Chair", description = "Chair",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
sounds = xdecor.wood, sounds = xdecor.wood,
groups = {choppy=3, flammable=2}, groups = {snappy=2, choppy=3, flammable=2},
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -182,7 +182,7 @@ xdecor.register("cobweb", {
liquid_renewable = false, liquid_renewable = false,
liquid_range = 0, liquid_range = 0,
walkable = false, walkable = false,
selection_box = { type = "regular" }, selection_box = {type = "regular"},
groups = {dig_immediate=3, liquid=3, flammable=3}, groups = {dig_immediate=3, liquid=3, flammable=3},
sounds = xdecor.leaves sounds = xdecor.leaves
}) })
@ -244,7 +244,7 @@ for _, d in pairs(door_types) do
description = string.sub(string.upper(d), 0, 1).. description = string.sub(string.upper(d), 0, 1)..
string.sub(d, 2).." Door", string.sub(d, 2).." Door",
inventory_image = "xdecor_"..d.."_door_inv.png", inventory_image = "xdecor_"..d.."_door_inv.png",
groups = {choppy=3, flammable=2, door=1}, groups = {snappy=2, choppy=3, flammable=2, door=1},
tiles_bottom = {"xdecor_"..d.."_door_b.png", "xdecor_brown.png"}, tiles_bottom = {"xdecor_"..d.."_door_b.png", "xdecor_brown.png"},
tiles_top = {"xdecor_"..d.."_door_a.png", "xdecor_brown.png"}, tiles_top = {"xdecor_"..d.."_door_a.png", "xdecor_brown.png"},
sounds = xdecor.wood sounds = xdecor.wood
@ -256,7 +256,7 @@ xdecor.register("empty_shelf", {
inventory = {size=24}, inventory = {size=24},
infotext = "Empty Shelf", infotext = "Empty Shelf",
tiles = {"default_wood.png", "xdecor_empty_shelf.png"}, tiles = {"default_wood.png", "xdecor_empty_shelf.png"},
groups = {choppy=3, flammable=2}, groups = {snappy=2, choppy=3, flammable=2},
sounds = xdecor.wood sounds = xdecor.wood
}) })
@ -414,7 +414,7 @@ xdecor.register("painting", {
xdecor.register("plant_pot", { xdecor.register("plant_pot", {
description = "Plant Pot", description = "Plant Pot",
groups = {cracky=3}, groups = {snappy=3, cracky=3},
tiles = {"xdecor_plant_pot_top.png", "xdecor_plant_pot_bottom.png", tiles = {"xdecor_plant_pot_top.png", "xdecor_plant_pot_bottom.png",
"xdecor_plant_pot_sides.png"} "xdecor_plant_pot_sides.png"}
}) })
@ -422,7 +422,7 @@ xdecor.register("plant_pot", {
xdecor.register("metal_cabinet", { xdecor.register("metal_cabinet", {
description = "Metal Cabinet", description = "Metal Cabinet",
inventory = {size=24}, inventory = {size=24},
groups = {cracky=2}, groups = {snappy=1, cracky=2},
infotext = "Metal Cabinet", infotext = "Metal Cabinet",
tiles = { tiles = {
"xdecor_metal_cabinet_sides.png", "xdecor_metal_cabinet_sides.png", "xdecor_metal_cabinet_sides.png", "xdecor_metal_cabinet_sides.png",
@ -444,7 +444,7 @@ xdecor.register("multishelf", {
inventory = {size=24}, inventory = {size=24},
infotext = "Multi Shelf", infotext = "Multi Shelf",
tiles = {"default_wood.png", "xdecor_multishelf.png"}, tiles = {"default_wood.png", "xdecor_multishelf.png"},
groups = {choppy=3, flammable=2}, groups = {snappy=2, choppy=3, flammable=2},
sounds = xdecor.wood sounds = xdecor.wood
}) })
@ -517,7 +517,7 @@ xdecor.register("stone_tile", {
xdecor.register("table", { xdecor.register("table", {
description = "Table", description = "Table",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
groups = {choppy=3, flammable=2}, groups = {snappy=2, choppy=3, flammable=2},
sounds = xdecor.wood, sounds = xdecor.wood,
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -543,7 +543,7 @@ xdecor.register("tatami", {
xdecor.register("trash_can", { xdecor.register("trash_can", {
description = "Trash Can", description = "Trash Can",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
groups = {choppy=3, flammable=2}, groups = {snappy=2, choppy=3, flammable=2},
sounds = xdecor.wood, sounds = xdecor.wood,
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -599,7 +599,7 @@ xdecor.register("woodframed_glass", {
description = "Wood Framed Glass", description = "Wood Framed Glass",
drawtype = "glasslike_framed", drawtype = "glasslike_framed",
tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"}, tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"},
groups = {cracky=3}, groups = {snappy=2, cracky=3},
sounds = xdecor.glass sounds = xdecor.glass
}) })
@ -607,6 +607,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 = {snappy=1, choppy=2, wood=1, flammable=2},
sounds = xdecor.wood sounds = xdecor.wood
}) })

View File

@ -185,7 +185,7 @@ for m=1, #material do
light_source = light, light_source = light,
sounds = sound, sounds = sound,
tiles = {tile}, tiles = {tile},
groups = {cracky=2, not_in_creative_inventory=1}, groups = {snappy=2, cracky=2, not_in_creative_inventory=1},
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = w[3] fixed = w[3]