Language Search Backport
Backports the vanilla Language Selection Screen search box (introduced in Minecraft Java Edition 1.21.11 / snapshot 25w44a) to older versions, allowing players to filter the long language list instantly without manual scrolling.
Features
- Vanilla-Faithful Search Box: Places a centered
200×15search box directly beneath the Language screen title with matching header layout and spacing, plus a gray italicSearch...placeholder when unfocused. - Instant Keyboard Focus: Automatically focuses the search box when opening the Language screen so you can start typing immediately.
- Real-Time Filtering: Filters languages case-insensitively (
Locale.ROOT) by both language name and region name, keeping the original language order and clamping scroll bounds cleanly. - Preserves Selection & Input Reliability: Keeps your currently selected language highlighted while matching (fixing
MC-313081), prevents space/enter keys from accidentally closing the screen while typing, and retains search text and results across window resizes or font settings changes. - Client-Side & Server-Safe: Pure client UI enhancement that requires no installation on servers and loads safely if placed in a dedicated server modpack.
Source Code: https://github.com/hp3081925122/Language-Search-Backport
Language Search Backport(语言搜索栏向后移植)
将原版 Minecraft Java 版 1.21.11(快照 25w44a) 新增的语言选择界面搜索栏完整向后移植到旧版本,无需手动滚动上百项列表即可快速定位并切换语言。
功能亮点
- 原版风格顶栏布局:在语言选择界面标题正下方居中加入
200×15搜索框,还原原版顶栏高度与间距;失焦且为空时显示灰色斜体提示文字(搜索…/Search...)。 - 打开即聚焦输入:进入语言界面后自动将初始焦点放到搜索框,无需鼠标点击即可直接键盘打字筛选。
- 实时名称与地区筛选:忽略大小写(
Locale.ROOT)实时匹配语言名称与地区名称,保持原版排序并在条目变化时自动钳制滚动条范围。 - 选中高亮与防误触细节:同步修复原版
MC-313081(筛选时保持当前可见已选语言的高亮框),避免在搜索框输入空格或按回车时误关界面,并在窗口缩放或进入字体设置返回后完整保留搜索内容与筛选结果。 - 客户端轻量化且双端安全:纯客户端界面增强,联机服务器无需安装,随整合包一起放进专用服务端也可安全启动不崩溃。
开源仓库:https://github.com/hp3081925122/Language-Search-Backport