You can make a one-way barrier by placing platforms along a single block thick wall and sloping them away from it, no wiring required. I'm not familiar with specific mechanics in console edition, but I assume that it would work the same as it does on PC.