Minecraft wiki entry for Minecarts, associated text: One-way powered rail lines can be created by placing a detector rail before a powered rail. This way, occupied carts are boosted only if they are traveling the proper direction. Carts going the "wrong" way come to a stop because the powered rail is inactive.