Need help with spawning an entity

Never mind dumb question, i figured it out

Could you rephrase the question?
I don’t really understand what it is you want.

What i want is to make it so when i right click it spawns a barrel.
Edit Figured it out