Thank you for the quick reply!
Yes, with this line of code:
MinecraftForge.EVENT_BUS.register(new DiamondOreTrap());
but from what I understand, if its registered or not should not matter, as the program adds nothing new and makes use of imports so I do not know what the issue is
EDIT: This is forge for 1.8 minecraft, recommended