Spawning Item logic

I want to create a spawning item. (I don’t know if I said it correctly.)

But my object is to create a spawn item when I harvest a resource, like a game like Forager or Vexlands. How do I find a tutorial or anything similar to this? Maybe I can adapt for it.