Changed mod id to the reference class.
added code for item dropping