Pocket Dimension "Bubble" for Boss
I'll try to keep this description simple but the idea is a little weird so if anything needs to be clarified lmk. -I want to make a structure that generates randomly and has an altar in the center, and makes an exact replica of all blocks in x radius and pastes them into a different dimension. Not here to ask structure questions, though I do want to know if I'm able to tie into playerRightClickBlock event to trigger a sequence of functions, or if that is not doable through a datapack. If I can't tie into the right click event, how might I make the altar trigger this series of events. -If you look at the screenshot, I just drew a house for simplicity, but imagine this supposed altar was activated in the center of the house, on left is before, on right is after (a "bubble" of blocks from dimension previously in, pasted into a different dimension. I also want it to happen at the equivalent coordinates in other dimension, so if center point of altar is x y z, when pasted into other dimension it's centered around same spot). -Obivously I then want the player to tp there (I already know how to do that) and I can (probably) figure out the summon commands and whatnot for the boss and will make a separate post if I have questions on that, but mainly wondering how I could/is it even possible to take a snapshot of the surrounding world at a center point, and paste the exact replica in another dimension at same coordinate point. I already have many mods installed, so I was wondering if one possible solution might be the installing world edit mod, would I be able to use world edit commands within functions to achieve this? Or is there a way to do it without world edit. Also I have limited knowledge of world edit so I might be wrong, but I am pretty sure you only can use pos1 and pos2? So it wouldn't take a snapshot of a "bubble "type radius, it would teleport a cube (I think, maybe way around this?). (I'm beyond tired rn if description is weird that's mb)