-xdecor.register("cardboard_box", {
- description = "Cardboard Box",
- inventory = {size=8},
- infotext = "Cardboard Box",
- groups = {snappy=3, flammable=3},
- tiles = {"xdecor_cardbox_top.png", "xdecor_cardbox_top.png",
- "xdecor_cardbox_sides.png"},
- node_box = {
- type = "fixed",
- fixed = {
- {-0.3125, -0.5, -0.3125, 0.3125, 0, 0.3125}
- }
- }
-})
-
-xdecor.register("cauldron", {
- description = "Cauldron",
- groups = {cracky=1},
- tiles = {
- { name = "xdecor_cauldron_top_anim.png",
- animation = {type="vertical_frames", length=3.0} },
- "xdecor_cauldron_sides.png"
- }
-})
-
-if minetest.get_modpath("bucket") then
- local original_bucket_on_use = minetest.registered_items["bucket:bucket_empty"].on_use
- minetest.override_item("bucket:bucket_empty", {
- on_use = function(itemstack, user, pointed_thing)
- local inv = user:get_inventory()
-
- if pointed_thing.type == "node" and
- minetest.get_node(pointed_thing.under).name == "xdecor:cauldron" then
- if inv:room_for_item("main", "bucket:bucket_water 1") then
- itemstack:take_item()
- inv:add_item("main", "bucket:bucket_water 1")
- else
- minetest.chat_send_player(user:get_player_name(),
- "No room in your inventory to add a filled bucket!")
- end
- return itemstack
- else if original_bucket_on_use then
- return original_bucket_on_use(itemstack, user, pointed_thing)
- else return end
- end
- end
- })
-end
-
-xdecor.register("chair", {
- description = "Chair",
- tiles = {"xdecor_wood.png"},
- sounds = xdecor.wood,
- groups = {snappy=2, choppy=3, flammable=2},
- node_box = {
- type = "fixed",
- fixed = {
- {-0.3125, -0.5, 0.1875, -0.1875, 0.5, 0.3125},
- {0.1875, -0.5, 0.1875, 0.3125, 0.5, 0.3125},
- {-0.1875, 0.025, 0.22, 0.1875, 0.45, 0.28},
- {-0.3125, -0.5, -0.3125, -0.1875, -0.125, -0.1875},
- {0.1875, -0.5, -0.3125, 0.3125, -0.125, -0.1875},
- {-0.3125, -0.125, -0.3125, 0.3125, 0, 0.1875}
- }
+xpanes.register_pane("chainlink", {
+ description = "Chain Link",
+ tiles = {"xdecor_chainlink.png"},
+ drawtype = "airlike",
+ paramtype = "light",
+ textures = {"xdecor_chainlink.png", "xdecor_chainlink.png", "xpanes_space.png"},
+ inventory_image = "xdecor_chainlink.png",
+ wield_image = "xdecor_chainlink.png",
+ groups = {cracky=3, oddly_breakable_by_hand=2, pane=1},
+ recipe = {
+ {"default:steel_ingot", "", "default:steel_ingot"},
+ {"", "default:steel_ingot", ""},
+ {"default:steel_ingot", "", "default:steel_ingot"}