Minecraft – Creating space vacuum

minecraft-commandsminecraft-java-edition

So i'm trying to make a mini-game on my friends server. I am making it in "space" on a space station. I'm trying to design it so whenever a hole is made in the space station all players will get sucked out and die. I don't think this is possible but if it is can you try to find an answer in 1.7.10, if not just give me an answer for 1.8.

Best Answer

Based on one of your comments, saying that you'll teleport them to the void, you could use the command testforblocks which compares 2 3-dimensional areas and tests if they're the same. If your machine notices that the blocks are not identical, it will teleport them. Testing for if there's a hole may be a bit more tedious, and you'll need multiple testforblock commands testing for each wall.