This would be complicated, what I would do is something like, if there are two wood blocks next to each other, you click glue on one, and click on the other, those blocks are set as glued. You could maybe do this with nbt tags or variables, or you could make a new block called glued wood. I'm guessing you will want this to move, so if it is glued, make it check if there is a glued block next to it. If there is, move it too.
This would be complicated, what I would do is something like, if there are two wood blocks next to each other, you click glue on one, and click on the other, those blocks are set as glued. You could maybe do this with nbt tags or variables, or you could make a new block called glued wood. I'm guessing you will want this to move, so if it is glued, make it check if there is a glued block next to it. If there is, move it too.
ok another question how can I use the ender dragon explode effect for my custom tnt in mcreator