Y Level Lock lets you select a Y-coordinate and lock block placement to that exact level. This prevents accidentally placing blocks above or below your chosen building layer. It runs entirely client-side.
Default controls:
Keybinds can be changed in Minecraft’s Controls menu.