They plugin I want to make will be used to group any bodies (rigorously of the same type) that are interacting and make a single group out of them, so they could move together and so on...

After researching the currently plugins available, I think ObjectPairer comes closer on the kind of functionality I want to produce. There is also the Array plugin, which, I (Hope) I could learn how to get the properties of the other bodies using the SDK. But none of them has their source code available in the construct-source zip file.

Stripping my problem of all the details, I need a way to, using the SDK, get all the bodies of the same type that are interacting and make an array out of them, so I could update all their positions color, etc at the same time.

Could you guys please direct me? Or help me reach dave or the author of the Array plugin?

For example, whenever the player destroys the terrain/ice cube, the one's falling will snap to the others in rest and their images will change in result, as to always look like a huge terrain/iceberg block. These blocks can be moved, but only as a 'single' entity.

That doesn't sound too bad to replicate in events even without those plugs.The snapping together would be the easy part, but moving as a single object would be a bit involved, especially if you want to preserve angle.If you can set that up in events, there's a good chance the devs could point you in the right direction as to how to do it in a plug.For example Lucids "S" plug has an expression to help make on the fly image points.

the problem I'm facing using the events is that I can't get the other body properties properly when the collision involves objects of the same type. I can't tell which one is body A or body B in the collision, therefore I wanted to make the plugin. This happens at least in my construct's version (0.9.x).

So I've tried lots of things using the events, but failed. Like trying to use families to distinguish every body in the collision and so on. If i could get the position of all objects of the same type that are on stage, that would be pretty easy.