跳到正文

Better Beyond Dimensions

作者:lingmu

Adds a searchable Beyond Dimensions network sidebar to every container.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Features

  • Displays a searchable Beyond Dimensions network sidebar on the left side of all AbstractContainerScreen screens.
  • The sidebar is shown only when the server confirms that the player has an available Beyond Dimensions network.
  • Left-click extracts one stack from the network; right-click extracts one item. Search supports both display names and registry names.
  • “Move Player Items” and “Move Container Items” independently control Shift-click behavior.
  • “Deposit Container” stores items from the currently open container into the network. “Deposit Inventory” only processes the player’s main inventory; the hotbar is excluded.
  • Default shortcuts: F for “Deposit Container” and G for “Deposit Inventory`. They only work while the sidebar is visible and the search box is not focused.
  • Player and container Shift-transfer settings are saved to the client file config/better_beyond_dimensions-settings.json and synchronized with the server when a new screen is opened.
  • All network storage operations and Shift-click interception are validated and executed server-side.

Sidebar Display Event

SidebarDisplayEvent is fired on the client after the sidebar has been created and before it is displayed. The event can access the current Screen, disable the functionality of individual buttons, override button text or tooltips, or completely disable the sidebar for the current screen. The event only affects the current screen instance and does not modify the server-side menu.

For example, to disable “Deposit Container” on the crafting screen and change its tooltip to “Disabled”:

private static void onSidebarDisplay(SidebarDisplayEvent event)
{
    if (event.getScreen() instanceof CraftingScreen)
    {
        event.disableButton(SidebarDisplayEvent.ButtonId.DEPOSIT_CONTAINER);
        event.setButtonTooltip(
                SidebarDisplayEvent.ButtonId.DEPOSIT_CONTAINER,
                Component.literal("Disabled")
        );
    }
}

常见问题

Better Beyond Dimensions 支持哪些 Minecraft 版本?

Better Beyond Dimensions 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Better Beyond Dimensions 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

lingmu 的其他作品

查看全部 →