As part of my honours project Im making a warehouse and each shelve will have multiple box stacks on it. I want the stacks to have varied sizes of boxes with optional gaps where boxes could have been removed. Im new to geometry nodes and I cant find anything that really shows me how it can be done.
the ideal result
- parameters to edit height of stack/number of layers
- parameters to edit number of boxes on each layer/number of gaps on each layer
- the boxes do not overlap geometry
- the boxes stacked on top of each other have no gap between
- random rotation can be applied to each individual box
If anyone can help me out it would be much appreciated.

left is where im at unfortunately and right is roughly the ideal result made without geometry nodes just as an example