Create an object from variable maching the variable

So I’m working on a pick-up system for my game.
Each pickupable object has a “What_am_i” variable with a assigned number:
So eg. “rocks” are 1.
When you pickup an object, the animation of the player’s hands changes to the assigned number.
When you want to drop the item, you press q, and depending on what item you were holding, an coresponding object spawns:

When i hold rocks, and press q, rocks appear as an object on the ground.

Now im looking for a way to not hardcode every item “dropping”; a way to create an object with coresponding number variable, from number variable.

An example of the “dropping” code: