Add an item drop event to custom materials

This commit adds the onDrop method to the CustomMaterial class, called when an item with that material is dropped.