Minecraft wiki entry for Command_blocks_and_functions, associated text: Do note that if you have a nether portal within the protection zone, that the player will NOT be reverted to survival once they step through, so place a reversion cube of any type (Impulse or Repeating) in the Nether on the other side of that portal.