1
0
mirror of https://codeberg.org/minenux/minetest-mod-xdecor synced 2023-10-20 21:43:39 -07:00

Remove snow and clay from Work Table (non-solid)

This commit is contained in:
jp 2015-08-08 18:29:53 +02:00
parent d4979519a7
commit cd7fb805ac
2 changed files with 6 additions and 8 deletions

View File

@ -82,10 +82,10 @@ xdecor.register("enchantment_table", {
},
groups = {cracky=1},
sounds = xdecor.stone,
on_construct = enchanting.construct,
can_dig = enchanting.dig,
allow_metadata_inventory_put = enchanting.put,
on_construct = enchanting.construct,
on_receive_fields = enchanting.fields,
allow_metadata_inventory_put = enchanting.put,
allow_metadata_inventory_move = enchanting.move
})

View File

@ -7,9 +7,9 @@ local material = {
"cobble", "mossycobble", "desert_cobble",
"stone", "sandstone", "desert_stone", "obsidian",
"stonebrick", "sandstonebrick", "desert_stonebrick", "obsidianbrick",
"snowblock", "coalblock", "copperblock", "steelblock", "goldblock",
"coalblock", "copperblock", "steelblock", "goldblock",
"bronzeblock", "mese", "diamondblock",
"brick", "cactus", "clay", "ice", "meselamp",
"brick", "cactus", "ice", "meselamp",
"glass", "obsidian_glass"
}
@ -120,16 +120,16 @@ function worktable.move(pos, from_list, from_index, to_list, to_index, count, pl
xdecor.register("worktable", {
description = "Work Table",
groups = {cracky=2},
groups = {cracky=2, choppy=2},
sounds = xdecor.wood,
tiles = {
"xdecor_worktable_top.png", "xdecor_worktable_top.png",
"xdecor_worktable_sides.png", "xdecor_worktable_sides.png",
"xdecor_worktable_front.png", "xdecor_worktable_front.png"
},
can_dig = worktable.dig,
on_construct = worktable.construct,
on_receive_fields = worktable.fields,
can_dig = worktable.dig,
allow_metadata_inventory_put = worktable.put,
allow_metadata_inventory_move = worktable.move
})
@ -142,8 +142,6 @@ end
local function groups(m)
if m:find("tree") or m:find("wood") or m == "cactus" then
return {choppy=3, not_in_creative_inventory=1}
elseif m == "clay" or m == "snowblock" then
return {snappy=3, not_in_creative_inventory=1}
end
return {cracky=3, not_in_creative_inventory=1}
end