I made a AutoIt bot for Minecraft.
If you have a mobspawner that you have made a trap for this works great.
make sure mobs can't hit you, stand in front of attacking spot, food goes in slots 5,6,7,8,9 and weapons go in slot 1,2,3,4.
Pretty Simple
SpawnerKiller.rar