跳到正文

CustomHotbar

CustomHotbar is a Forge client-side mod that lets you decorate the vanilla Minecraft hotbar with custom underlay and overlay textures.

收藏

截图

介绍

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

CustomHotbar

CustomHotbar is a Forge client-side mod that lets you decorate the vanilla Minecraft hotbar with custom underlay and overlay textures.

It supports bundled textures, configurable texture paths, KubeJS asset loading, and an in-game reload command for quickly testing config or texture changes.

Features

  • Custom hotbar underlay texture
  • Custom hotbar overlay texture
  • Configurable X/Y positioning
  • Configurable texture dimensions
  • Configurable texture resource paths
  • Bundled fallback textures
  • KubeJS asset support
  • Client-side reload command
  • Forge GUI overlay ordering support

Screenshots

CustomHotbar screenshot 1
CustomHotbar screenshot 2
CustomHotbar screenshot 3
CustomHotbar screenshot 4
CustomHotbar screenshot 5

Requirements

  • Minecraft 1.20.1
  • Forge 47.x
  • KubeJS for Forge 1.20.1

Installation

Place the mod jar into your Minecraft mods folder:

{instance}/mods/customhotbar-1.0.*.jar

Since this mod depends on KubeJS, KubeJS must also be installed:

{instance}/mods/kubejs-forge-*.jar

Default Assets

The mod includes textures inside the jar, although these are transparent by default:

assets/customhotbar/textures/gui/underlay.png
assets/customhotbar/textures/gui/overlay.png

These are used automatically when no custom texture paths are configured, or when the configured texture cannot be found.

KubeJS Asset Support

You can provide custom textures through KubeJS assets.

Example folder structure:

{instance}/
  kubejs/
    assets/
      ce/
        textures/
          image/
            hotbar/
              underlay.png
              overlay.png

Example resource locations:

ce:textures/image/hotbar/underlay.png
ce:textures/image/hotbar/overlay.png

Configuration

After launching the game once, the client config file will be generated:

{instance}/config/customhotbar-client.toml

Example config:

[hotbar]
enabled = true

# Horizontal offset from centered hotbar position.
x_offset = 0

# Vertical offset from vanilla hotbar position.
y_offset = 0

# Overlay texture width.
width = 256

# Overlay texture height.
height = 55

# Leave blank to use the bundled default underlay.
underlay_path = ""

# Leave blank to use the bundled default overlay.
overlay_path = ""

Example using KubeJS textures:

[hotbar]
enabled = true
x_offset = 0
y_offset = 0
width = 256
height = 55
underlay_path = "ce:textures/image/hotbar/underlay.png"
overlay_path = "ce:textures/image/hotbar/overlay.png"

Reloading

Use the in-game command:

/customhotbar reload

Overlay Layering

CustomHotbar renders in two parts:

underlay -> vanilla hotbar/items -> overlay

The underlay is registered using Forge’s lowest overlay ordering so it renders as far behind the hotbar as possible.

The overlay renders above the vanilla hotbar, but below items and other UI elements.

This allows textures like frames, borders, highlights, or decorations to appear above the hotbar while the background stays behind items and other normal GUI elements.

常见问题

CustomHotbar 支持哪些 Minecraft 版本?

CustomHotbar 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

CustomHotbar 怎么安装?

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

评论

登录后评论和评分

FrigidAmbiance 的其他作品

查看全部 →