When a carpet is placed over a barrier, players can jump over the barrier without being on a elevated block beside of the barrier.
When a carpet is placed over a barrier, players can jump over the barrier without being on a elevated block beside of the barrier.
I assume by barrier you mean fence post. This works correctly, because the hit-box of the carpet is larger than that of the post. The player fist jumps onto the carpet, before moving on top of the remaining height of the fence.