Mechanisms placeable on halfslabs

Don't merge this yet. I don't know if this is okay.
Can you edit this code too?
A redstone repeater stands always on the ground.