How do I create layouts for collectables?

Godot Version

4.2.1 stable

Question

I wanted to make an automation for placing collectables. Depending on the type you set for the collectable, it turns it into a circle of collectables or a line of collectables.

image