I have Created pets in minecraft put these three commands in 3 command blocks and activate them. Then right click the signs to get your pets! First you need to tame your wolf then use the name tag on it then you will get your pet! it will fight and collect items for you!
make sure you have enough room in between the three command blocks!