Electric Fence 1.12

The Electric Fence was added with the Electronic Update.

The fence zaps players and mobs that touch it for approximately three hearts of damage (without the player/entity wearing armor).

If a Creeper touches an Electric Fence it will become a Charged Creeper.

Crafting Recipe
To craft Electric Fence you need 7 Iron Ingot, 1 White Fence and 1 Redstone Torch, yields 8 items.

Place the iron ingots in the top row, left side and right side, the White Fence in the exact middle and the redstone torch in the bottom middle.