Cubes Without Borders
一款允许你在无边框全屏窗口中游玩 Minecraft 的模组。这意味着你可以在与其他应用程序(位于不同显示器上,甚至直接叠加在 Minecraft 之上)交互时保持游戏打开,而游戏不会被最小化。
与其他“无边框全屏”模组不同,Cubes Without Borders 具有高度可配置性,不会增加你的输入延迟,并且明确支持所有主要平台——Linux、macOS 以及 Windows——而不是只为某一类玩家提供勉强可用的体验,却让其他平台的用户感觉被忽视。
使用方法
要启用非独占全屏,请前往 Video Settings(视频设置)选项卡,通常你可以在这里找到 Fullscreen(全屏)设置,并将其切换为新增的选项之一:Borderless(无边框)或 Windowed(窗口化)——选择最适合你的那个。
根据你是否安装了 Sodium,这些选项可能位于以下位置之一:
![]() |
![]() |
|---|
此外,该模组还引入了两个新的启动参数 --borderless 和 --windowed,无论你当前的设置如何,它们都会强制游戏以无边框或窗口化全屏模式启动。
常见问题
我是 Windows 用户,然后……
这确实是个问题,朋友!不过说正经的,如果你在无边框全屏方面遇到问题,可以切换到窗口化全屏,看看哪种方式更适合你。
另外,通常建议将 CWB 与 Sodium 一起使用,因为它修复了许多硬件和驱动程序相关的特定问题,这些问题可能会影响你的游戏体验。
在 Windows 上,启用全屏后,我的鼠标指针在物品栏中变得不可见。
如前所述,你可以前往视频设置切换到窗口化全屏,因为proper全屏模式在你的系统上似乎无法正常工作。
需要注意的是,你所遇到的问题并非模组本身的缺陷,而是你的系统存在的一些问题,你可能能够自行修复。人们通常在以下情况下报告在 Windows 游戏中鼠标指针变得不可见:
- 当使用 Medal 时
- 当在 Windows 11 上使用 OBS 并为源启用了 "Windows 10+ Capturing Method" 时
- 当控制面板中的 "显示指针轨迹" 选项启用时
- 由于常规原因,例如损坏和/或过时的驱动程序
该模组似乎与 Sodium 不兼容。
请确保你已安装最新版本的 Sodium 和 CWB,并验证 Sodium 设置中的 Fullscreen Mode(全屏模式)选项是否提供了四个选项:Off(关闭)、Exclusive(独占)、Borderless(无边框)和 Windowed(窗口化)。如果缺少任何选项,或者该设置只是一个简单的开关,则说明你使用的是过时版本的模组。
不过别担心!即使你无法更新,你也可以通过按下 Ctrl + Shift + P 从 Sodium 的自定义界面访问原版视频设置——在那里你将找到经过修改的全屏设置。
事实上,如果你只是简单地按下 F11 切换全屏,你应该会立即直接进入无边框模式,因为默认情况下它已被设置为你首选的全屏模式。
在 Linux 上,我希望浏览器打开的画中画 (PiP) 窗口保持在游戏上方。然而,当我把焦点切回 Minecraft 时,它总是跑到游戏窗口后面。
由于 FreeDesktop 规范 定义的堆叠顺序,符合规范的桌面环境(如 KDE Plasma 罕见的 GNOME W)会将 PiP 窗口置于聚焦的全屏应用程序之后。幸运的是,你始终可以通过使用窗口规则来更改你想要保持在游戏上方的窗口的层级。以下是针对 Firefox 的操作示例:

配置
该模组提供了一个简单的配置界面,如果你安装了 YACL 或 Cloth Config,即可访问:
否则,您可以通过直接编辑 cwb.json 文件来配置它,该文件存储在您的加载器的默认配置目录中:
{
// 指定游戏是否应以窗口化、独占全屏、无边框全屏或窗口化全屏模式启动。
//
// 应为以下之一:"OFF"、"EXCLUSIVE"、"BORDERLESS" 或 "WINDOWED"。
"fullscreenMode": "OFF",
// 指定当玩家尝试使用按键绑定(例如 F11)切换到全屏时,
// 游戏是否应进入独占或无边框全屏模式。
//
// 应为 "EXCLUSIVE"、"BORDERLESS" 或 "WINDOWED" 之一。
"preferredFullscreenMode": "BORDERLESS",
// 指定是否推迟进入全屏模式,直到 Minecraft 完全加载完毕。
//
// 启用此选项可能会使启动过程更加流畅,并可能修复在驱动程序有缺陷的系统上
// 某些窗口无法立即以不同于默认分辨率进入全屏模式的罕见问题。
"useDelayedFullscreen": true,
// 指定是否在屏幕坐标可以相对于像素坐标缩放的平台上
// (例如 macOS 和 Wayland (Linux))使用全分辨率帧缓冲区。
//
// 禁用此选项可能会带来显著的性能提升,但会以牺牲图像质量为代价。
"useScaledFramebuffer": true,
// 在支持的平台上(例如 macOS),指定在非独占全屏模式下是否自动隐藏
// Dock,以便通过将鼠标移动到屏幕边缘来显示它,而不是完全禁用它。
"autoHideDock": false,
// 在支持的平台上(例如 macOS),指定在非独占全屏模式下是否自动隐藏
// 菜单栏,以便通过将鼠标移动到屏幕边缘来显示它,而不是完全禁用它。
"autoHideMenuBar": false,
// 当启用 "pauseOnLostFocus" 时,指定其效果是否也应适用于多人游戏会话,
// 因为在多人游戏中游戏无法真正暂停。
//
// 注意:"pauseOnLostFocus" 是一个原版选项,应在标准的 "options.txt" 文件中查找。
"pauseOnLostFocusDuringMultiplayer": true,
// 控制当
// "fullscreenMode" 设置为 "EXCLUSIVE" 时启用的全屏模式类型。
"exclusiveFullscreenType": "@default",
// 控制当
// "fullscreenMode" 设置为 "BORDERLESS" 时启用的全屏模式类型。
"borderlessFullscreenType": "@borderless",
// 控制当
// "fullscreenMode" 设置为 "WINDOWED" 时启用的全屏模式类型。
"windowedFullscreenType": "@windowed",
// 为 Linux 操作系统提供配置覆盖。
// 在此部分中定义的属性优先于
// 其顶层对应属性。
"linux": {
"exclusiveFullscreenType": "minecraft:default",
"borderlessFullscreenType": "linux:borderless",
"windowedFullscreenType": "minecraft:maximized"
},
// 为 macOS 操作系统提供配置覆盖。
// 在此部分中定义的属性优先于
// 其顶层对应属性。
"macos": {
"exclusiveFullscreenType": "minecraft:default",
"borderlessFullscreenType": "macos:borderless",
"windowedFullscreenType": "macos:windowed"
},
// 为 Windows 操作系统提供配置覆盖。
// 在此部分中定义的属性优先于
// 其顶层对应属性。
"windows": {
"exclusiveFullscreenType": "minecraft:default",
"borderlessFullscreenType": "minecraft:windowed",
"windowedFullscreenType": "windows:windowed"
}
}
全屏模式类型
| 名称 | 描述 |
|---|---|
minecraft:default |
Minecraft 的默认独占全屏模式。 以牺牲可用性为代价,提供出色的性能与极低的延迟——每次游戏窗口失去焦点时,游戏会自动最小化。 |
minecraft:windowed |
一种窗口化全屏模式,其性能与用户体验特性因平台而异。 在 Windows 上,这通常是游玩游戏的最佳方式,因为它提供了无边框全屏体验的典型优势,且几乎没有性能损耗和延迟;然而,部分用户可能会在游戏窗口获得或失去焦点时遇到令人困扰的闪烁问题。 在 其他平台 上,此模式可能导致显著的性能下降和/或可用性问题,例如系统的 Dock 栏保持可见,甚至被渲染在游戏上方。 |
minecraft:maximized |
一种窗口化全屏模式,将游戏变为最大化的无边框窗口。 此模式的性能与用户体验特性可能因平台而异,但鉴于大多数主流合成器对窗口化应用强制实施隐式垂直同步(V-Sync),你通常可以预期其延迟略高于默认独占全屏模式。 最适合禁用或配置为自动隐藏 Dock 栏和/或菜单栏的系统,或者偏好它们保持可见的玩家。 |
linux:borderless |
Linux 及其他类 Unix 系统默认的无边框全屏模式。 提供出色的性能与极低的延迟。已知无任何缺点。 |
macos:borderless |
macOS 默认的无边框全屏模式。 提供尚可的性能,但由于操作系统对窗口化应用强制实施隐式垂直同步,其延迟略高于默认独占全屏模式。 |
macos:windowed |
macOS 默认的窗口化全屏模式。 与 macos:borderless 不同,此模式始终显示菜单栏,这对于那些不喜欢新款 MacBook 刘海遮挡部分游戏画面的用户来说可能很有用。提供尚可的性能,但由于操作系统对窗口化应用强制实施隐式垂直同步,其延迟略高于独占全屏模式。 |
windows:windowed |
Windows 默认的窗口化全屏模式。 与 minecraft:windowed 不同,它不会受到闪烁问题的困扰,但也缺乏该模式带来的性能优势。由于操作系统对窗口化应用强制实施隐式垂直同步,其延迟高于默认独占全屏模式。此外,部分用户可能会遭遇严重的性能下降,因为 Windows 有时会丢弃窗口化应用提供的帧而非将其渲染出来,尤其是在执行它认为比这更重要的后台任务时,例如下载更新或使用 Windows Recall 捕获的活动截图建立索引。 |
「AI」政策
本项目*(以及我的其他任何项目)*不接受由「AI」生成或「AI」辅助的贡献。
尽管许可证并未禁止此类行为,因为我希望以最纯粹的意义保持我的工作开源——即供所有人修改和重新分发,但我请求你不要将我的项目用作训练数据,也不要使用上述技术对其进行修改,即使是严格用于个人用途。
正如我们世界中常发生的那样,违反我的意愿也不会带来任何后果。除了能进一步证明我对普通「AI」使用者本性的看法是正确的这一点外。
许可证
根据 MIT 许可证 条款授权。
Cubes Without Borders
A mod that allows you to play Minecraft in a borderless fullscreen window. This means you can keep the game open while interacting with other applications on a different monitor, or even directly on top of Minecraft itself, without the game being minimized.
Unlike other "borderless fullscreen" mods, Cubes Without Borders is highly configurable, does not hinder your input latency, and explicitly supports all major platforms - Linux, macOS, and even Windows - instead of providing a passable experience for only one group of players while making it seem as though others do not exist.
Usage
To enable non-exclusive fullscreen, go to the Video Settings tab, where you would typically find the Fullscreen setting, and switch it to one of the newly added options: Borderless or Windowed - whichever works best for you.
Depending on whether you have Sodium installed, you may find these options in one of the following locations:
![]() |
![]() |
|---|
Additionally, the mod introduces two new startup flags, --borderless and --windowed, which force the game to launch in borderless or windowed fullscreen mode, respectively, regardless of your current settings.
FAQ
I'm a Windows user and...
That is a problem indeed, my friend! In all seriousness, though, if you are having issues with borderless fullscreen, you can switch to windowed fullscreen and see which one works better for you.
Additionally, it's generally recommended to use CWB alongside Sodium, as it fixes many hardware- and driver-specific issues that might otherwise hinder your experience.
On Windows, my cursor becomes invisible in inventories when fullscreen is enabled.
As mentioned earlier, you can switch to windowed fullscreen in Video Settings, as proper fullscreen mode does not seem to work correctly on your system.
It's worth noting, however, that what you are experiencing is not a problem with the mod, but rather an issue with your system that you might be able to fix. People commonly report their cursor becoming invisible in games on Windows in the following scenarios:
- When using Medal
- When using OBS on Windows 11 with the "Windows 10+ Capturing Method" enabled for the source
- When the "Display pointer trails" option is enabled in the Control Panel
- Due to your usual causes, such as broken and/or outdated drivers
The mod doesn't seem to work with Sodium.
Please, make sure you have the latest versions of both Sodium and CWB installed, and verify that the Fullscreen Mode option in Sodium's settings provides four options: Off, Exclusive, Borderless, and Windowed. If any of them are missing, or if the setting itself is but a simple toggle, you are using outdated versions of the mods.
No worries, though! Even if you are unable to update, you can always access vanilla Video Settings from Sodium's custom screen by pressing Ctrl + Shift + P - there you'll be able to find the modified Fullscreen setting.
In fact, if you simply toggle fullscreen by pressing F11, for example, you should immediately jump straight into the borderless mode, as it's set as your preferred fullscreen mode by default.
On Linux, I want to keep a Picture-in-Picture window opened by my browser on top of the game. However, it always goes behind the game window when I switch my focus back to Minecraft.
Due to the stacking order defined by the FreeDesktop specification, conforming desktop environments like KDE Plasma (rare GNOME W) place PiP windows behind focused fullscreen applications. Thankfully, you can always change the layer assigned to the window you want to keep above your game by using window rules. Here's an example of how to do this for Firefox:

Config
The mod provides a simple configuration screen that can be accessed if you have YACL or Cloth Config installed:
Otherwise, you can configure it by directly editing the cwb.json file, stored in your mod loader's default configuration directory:
{
// Specifies whether the game should start in windowed, exclusive fullscreen,
// borderless fullscreen, or windowed fullscreen mode.
//
// Should be one of: "OFF", "EXCLUSIVE", "BORDERLESS", or "WINDOWED".
"fullscreenMode": "OFF",
// Specifies whether the game should enter exclusive or borderless fullscreen mode
// when a player attempts to switch to fullscreen using a keybinding (e.g., F11).
//
// Should be either "EXCLUSIVE", "BORDERLESS", or "WINDOWED".
"preferredFullscreenMode": "BORDERLESS",
// Specifies whether to postpone entering fullscreen mode until Minecraft is fully loaded.
//
// Enabling this option may result in a smoother startup sequence and can fix rare issues
// on systems with faulty drivers that do not immediately allow certain windows to enter
// fullscreen mode at a resolution that differs from the default one.
"useDelayedFullscreen": true,
// Specifies whether to use a full-resolution framebuffer on platforms where
// screen coordinates can be scaled relative to pixel coordinates, such as
// macOS and Wayland (Linux).
//
// Disabling this option may lead to a significant performance boost
// at the cost of image quality.
"useScaledFramebuffer": true,
// On supported platforms (e.g., macOS), specifies whether to automatically
// hide the dock in non-exclusive fullscreen modes, so it can be revealed by
// moving the mouse to the edge of the screen, instead of disabling it entirely.
"autoHideDock": false,
// On supported platforms (e.g., macOS), specifies whether to automatically
// hide the menu bar in non-exclusive fullscreen modes, so it can be revealed by
// moving the mouse to the edge of the screen, instead of disabling it entirely.
"autoHideMenuBar": false,
// When "pauseOnLostFocus" is enabled, specifies whether its effect should
// also apply to multiplayer sessions, where the game cannot be truly paused.
//
// Note: "pauseOnLostFocus" is a vanilla option, and should be
// looked for in the standard "options.txt" file.
"pauseOnLostFocusDuringMultiplayer": true,
// Controls which fullscreen mode is enabled when
// "fullscreenMode" is set to "EXCLUSIVE".
"exclusiveFullscreenType": "@default",
// Controls which fullscreen mode is enabled when
// "fullscreenMode" is set to "BORDERLESS".
"borderlessFullscreenType": "@borderless",
// Controls which fullscreen mode is enabled when
// "fullscreenMode" is set to "WINDOWED".
"windowedFullscreenType": "@windowed",
// Provides configuration overrides for the Linux operating system.
// Properties defined within this section take precedence over
// their top-level counterparts.
"linux": {
"exclusiveFullscreenType": "minecraft:default",
"borderlessFullscreenType": "linux:borderless",
"windowedFullscreenType": "minecraft:maximized"
},
// Provides configuration overrides for the macOS operating system.
// Properties defined within this section take precedence over
// their top-level counterparts.
"macos": {
"exclusiveFullscreenType": "minecraft:default",
"borderlessFullscreenType": "macos:borderless",
"windowedFullscreenType": "macos:windowed"
},
// Provides configuration overrides for the Windows operating system.
// Properties defined within this section take precedence over
// their top-level counterparts.
"windows": {
"exclusiveFullscreenType": "minecraft:default",
"borderlessFullscreenType": "minecraft:windowed",
"windowedFullscreenType": "windows:windowed"
}
}
Fullscreen Types
| Name | Description |
|---|---|
minecraft:default |
Minecraft's default exclusive fullscreen mode. Provides great performance with minimal latency at the cost of usability - the game is automatically minimized each time its window loses focus. |
minecraft:windowed |
A windowed fullscreen mode with performance and UX characteristics that vary depending on the platform. On Windows, this mode is generally the best way to play the game, as it provides the benefits typical of a borderless fullscreen experience with zero to none performance and latency penalties; however, some users may experience annoying blinking each time the game window gains or loses focus. On other platforms, this mode may cause significant performance degradation and/or usability issues, such as your system's dock remaining visible or even being rendered on top of the game. |
minecraft:maximized |
A windowed fullscreen mode that turns the game into a maximized borderless window. Performance and UX characteristics of this mode may vary depending on the platform, but you can generally expect slightly higher latency than that of the default exclusive fullscreen mode due to the implicit V-Sync imposed on all windowed applications by most popular compositors. Pairs best with systems with the dock and/or menu bar disabled or configured to hide automatically, or with players who prefer them to stay visible. |
linux:borderless |
The default borderless fullscreen mode for Linux and other Unix-likes. Provides great performance with minimal latency. Has no known downsides. |
macos:borderless |
The default borderless fullscreen mode for macOS. Provides decent performance, but has slightly higher latency than that of the default exclusive fullscreen mode due to the implicit V-Sync imposed on all windowed applications by the OS. |
macos:windowed |
The default windowed fullscreen mode for macOS. Unlike macos:borderless, this mode leaves the menu bar visible at all times, which might prove useful for people who dislike the notch on newer MacBooks covering part of their game.Provides decent performance, but has slightly higher latency than that of the exclusive fullscreen mode due to the implicit V-Sync imposed on all windowed applications by the OS. |
windows:windowed |
The default windowed fullscreen mode for Windows. Unlike minecraft:windowed, it does not suffer from the blinking issues, but it also lacks the performance benefits of the said mode.Its latency is higher than that of the default exclusive fullscreen mode due to the implicit V-Sync imposed on all windowed applications by the OS. Additionally, some users may experience severe performance degradation, as Windows sometimes discards frames provided by windowed applications instead of rendering them, especially when performing background tasks it deems more important than that, such as downloading updates or indexing screenshots of your activity captured by Windows Recall. |
«AI» Policy
This project (nor any of my other projects, for that matter) does not accept "AI"-generated or "AI"-assisted contributions.
And while the license does not forbid it, because I want to keep my work open source in the truest sense of the term - available for everyone to modify and redistribute, I ask you not to use my projects as training data, nor to modify them using the aforementioned technology, even for strictly personal use.
As is often the case in our world, there will be no consequences for violating my consent. Except for proving me even more right about the nature of the average "AI" user.
License
Licensed under the terms of the MIT License.
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cubes Without Borders
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
功能特性
- 新增全屏模式选项
Windowed(窗口化),以简化访问那些优先考虑保留窗口应用程序特性而非性能的非边框全屏类型- 此前因相同原因在模组设置中更改过
Borderless Fullscreen Type(非边框全屏类型)选项的用户,建议恢复这些更改并改用此新的全屏模式
- 此前因相同原因在模组设置中更改过
- 新增两个与 macOS 相关的配置选项
autoHideDock和autoHideMenuBar,用于控制在使用非边框全屏时,通过将鼠标移至屏幕边缘来显示或隐藏程序坞(Dock)和菜单栏,而不是将其完全隐藏 - 新增一种全屏类型
minecraft:maximized,可将游戏窗口转换为最大化非边框窗口 - 新增一种全屏类型
macos:windowed,可始终显示菜单栏 (#135) - 提高了与其他尝试实现自身(存疑的)非边框全屏功能的模组的兼容性 (#139)
- 提高对新版 Sodium 的支持 (#108, #121)
- 提高对 NeoForge 的支持
- 禁用了菜单中原生 Minecraft 完全不必要的鼠标抓取功能
修复内容
- 修复了在 macOS 上 (Neo)Forge 环境下
useScaledFramebuffer无法正常工作的问题 - 修复了
windows:windowed模式下画面溢出至连接显示器的问题 (#64) - 修复了更多窗口尺寸不同步的情况 (#137)
破坏性变更
- 将
fullscreenType配置选项重命名为exclusiveFullscreenType - 移除了
minecraft:hybrid,因为可用的全屏类型中总有一种与其等效
其他
- 现在可以在配置文件中通过
@exclusive(或@default)、@borderless和@windowed分别引用默认独占、非边框和窗口化的全屏类型 - 暂时禁用了过时的翻译:
es_mx,et_ee,ko_kr,ms_my,pl_pl和zlm_arab(我们始终欢迎人工贡献!)
完整更新日志: v4.1.0...v5.0.0
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。


评论 0
登录后参与评分
还没有评论,来抢沙发吧