We have "humbled" our mean rooster by hobbling him. We put a zip tie on each leg and trimmed them (so it looks like a bracelet) and then tied a stout string on. He can walk but he can't run very fast. This has mellowed him out, but it might not help you with the pecking problem.