If you place a carpet on a fence, then jump, you get on top of the fence, and on the carpet, but then it looks as if you're floating in mid-air, rather than actually standing on the carpet.
If you place a carpet on a fence, then jump, you get on top of the fence, and on the carpet, but then it looks as if you're floating in mid-air, rather than actually standing on the carpet.
You don't need a carpet for this.
The fence is 1.5 blocks high.