Hello Spyros,
This question is indeed related to that linked post :D Thank you for digging it up to provide context!
First of all, I'd like to say that "glueing" blocks together isn't really supported at the moment :/ If you want it to be impossible to delete or disconnect blocks from each other, I recommend making them a single block. You can use setDeletable(false) as you've done, and setMovable(false) as well. But setMovable(false) still
allows other blocks to be inserted between immovable blocks.
That being said, if you still want to pursue this design, a JSON toolbox is always recommended, because the XML system is iceboxed. To solve your particular problem, I would recommend implementing Option 1 from the linked forum post (if possible) "You can define the deletability, movability, and editability of your blocks using the setDeletable, setMovable, and setEditable functions within your block definition."
If that's not possible then I would recommend implementing Option 2.
While your event listener may work right now, it will cause problems down the line. For example, if you delete a block, and then undo that deletion a create event is fired. So any child blocks of the deleted block will become impossible to delete, even if they weren't originally supposed to be.
I hope that helps! If you have any further questions please reply!
--Beka