Minecraft wiki entry for Defense, associated text: You may defend against slimes by simply creating a long 1 block wide, 2 block tall corridor as an entrance to a walled-off area. Place dispensers loaded with arrows on the bottom row of each side, and any solid block on the top. The floor can be made with any material, but cover it with pressure plates.