minetest.register_node("btmt:barrel", {
	description = "Barrel",
	tiles = {		
		"xdecor_barrel_top.png", 
		"xdecor_barrel_top.png", 
		"xdecor_barrel_sides.png",
		"xdecor_barrel_sides.png", 
		"xdecor_barrel_sides.png", 
		"xdecor_barrel_sides.png", 	
	},
	drawtype = "nodebox",
	paramtype = "light",
	paramtype2 = "facedir",
	groups = {choppy = 2, oddly_breakable_by_hand = 1},
	drop = "btmt:barrel",
	sounds = default.node_sound_wood_defaults(),
	on_place = minetest.rotate_node,
		
	--on_rightclick = function(pos, node, player, itemstack, pointed_thing)	
	--end
})

core.register_craft{
		--type = "shapeless",
		output = "btmt:barrel",
		recipe = {
		{"group:wood","group:wood","group:wood"},
		{"default:steel_ingot","","default:steel_ingot"},
		{"group:wood","group:wood","group:wood"},
		},
	}
