Use matchMaterial as opposed to getMaterial in cuboid command