Home›Java›Mods›Lovic's Better Command Block
Lovic's Better Command Block
ModsJava

Lovic's Better Command Block

Java mod listed for Minecraft 1.20. Downloads from the MC Java Mods app on Android.

by Lovic · on Modrinth

This project adds an enhanced user interface and advanced editing features to standard command blocks, making command creation much easier and more…

⬇ Download on Modrinth
Lovic's Better Command Block — screenshot 1Lovic's Better Command Block — screenshot 2Lovic's Better Command Block — screenshot 3Lovic's Better Command Block — screenshot 4Lovic's Better Command Block — screenshot 5

Lovic's Better Command Block (English Description)

Better Command Block UI —— A command block GUI enhancement mod built for map makers and command creators.

Detail Description
Mod ID lovicsbettercommandblock
Current Version 1.1.1
Game Version Minecraft Java Edition 1.20.1
Loader Fabric (Fabric API Required)
Author ZhuHongMing (Bilibili: 洛维Lovic)

Introduction

Lovic's Better Command Block (LBCB) fully optimizes the command block editing experience without changing vanilla command block mechanics:

Perfect for map creators, server admins, and advanced technical players who constantly write, debug, and reuse command blocks.


Requirements

  1. Minecraft Java Edition 1.20.1
  2. Fabric Loader (≥ 0.15.0 recommended)
  3. Fabric API
  4. Place the .jar into your game's mods folder

Features

UI Enhancements

Right-clicking a command block (or command block minecart) opens the newly designed GUI:

Feature Description
Multi-line Field Replaces the single-line input; wraps long commands with mouse scroll support
Syntax Highlighting Unparsed segments, literals, and parameters are distinguished by colors
Auto-completion Retains vanilla Brigadier suggestions, displayed in an independent panel
Undo / Redo Text undo/redo actions are fully supported within the input field
Focus Mode Focus the input field during deep edits; press Esc or click × to exit focus
Custom Names Add a custom name at the top; persists even after reloading the world
Name Plates Looking at a named command block displays its custom name hovering above

The top of the interface provides three tabs:

Hand-held Editing

While holding a Command Block or Command Block Minecart item:

Edited data is saved directly to the item's NBT and applies once placed in the world.

Tooltip Details

Hover over a command block item that contains data:

Command Presets

LBCB offers a complete template workflow. The preset files use the .pvic format and share a directory with the VicColor mod: config/viccolor/custom/

Preset Menu

GUI Importing

  1. Open the command block GUI
  2. Switch to the "Import Preset" tab
  3. Click your target preset → Auto-imports and returns to the "Edit Command" page

Template Exporting

  1. Switch to the "Export Template" tab in the GUI
  2. Fill in the name, select an icon, block type, tags, etc.
  3. Exports as a .pvic file to the config directory (supports sub-folders)

You can assign the LBCB-exclusive "command" tag (displayed in cyan) to make pure command templates easy to identify.

Preset Tags

Tag Meaning
pattern Pattern-based presets
animation Animation-based presets
text Text-based presets
command LBCB-exclusive "Command" templates

Copy Coordinates

Aim at any block and press Alt + C:

Only works when looking directly at a block; does not copy when pointing at air or entities.


Keybinds

Key Function
\ Open the command preset menu (rebindable)
Alt + C Copy integer coordinates of targeted block
Middle-Click (Holding block, no Ctrl) Open editing GUI for the held item
Ctrl + Hover View detailed tooltips on command block items
Esc (When focused) Exit input field focus

Keybinds can be adjusted in Options → Controls → Lovic's Better Command Block (Alt+C is a global key combination and currently has no separate rebind option).


Compatibility


FAQ

Q: The interface didn't change after installation?
A: Please ensure your game version is 1.20.1, and both Fabric Loader and Fabric API are correctly installed. The mod jar must be in the mods folder. You must be in Creative Mode or have OP permissions to edit command blocks.

Q: The preset list is completely empty?
A: Move .pvic files into config/viccolor/custom/ (or its sub-folders), or click "Export Command Template" in the preset menu to create a new one.

Q: Command content is lost after exporting a template?
A: This issue where command text went missing when returning from the "Export Template" page has been fixed since version 1.1.0. Please update to the latest version.

Q: Command block custom names disappear after reloading the world?
A: Fixed since 1.1.0; custom display names are now saved persistently.

Q: Game crashes when middle-clicking a held block?
A: Fixed since 1.1.0; please update to the latest release.

Q: What should I know when upgrading from the old bettercommandblock?
A: Please delete the old bettercommandblock-*.jar and use lovicsbettercommandblock-1.1.1.jar. The Mod ID has been changed to lovicsbettercommandblock. Saved custom names and preset items from older worlds will automatically migrate from old NBT keys (BCBDisplayName, etc.) and will overwrite with new keys (LBCBDisplayName, etc.) upon saving.

Q: Mod icon doesn't display in launchers like PCL?
A: Please use the official release build jar that embeds assets/lovicsbettercommandblock/icon.png.


Changelog

1.1.1

1.1.0


License & Contact



洛维的更好的命令方块界面

更好的命令方块界面 —— 为地图制作与指令创作而生的命令方块 GUI 增强模组。

项目 说明
模组 ID lovicsbettercommandblock
当前版本 1.1.1
游戏版本 Minecraft Java Edition 1.20.1
加载器 Fabric(需安装 Fabric API)
作者 ZhuHongMing(朱宏明)(B站:洛维Lovic)

简介

Lovic's Better Command Block(简称 LBCB)在不改变原版命令方块机制的前提下,全面优化命令方块的编辑体验:

适合经常编写、调试、复用命令方块的地图作者、服务器管理员与指令玩家。


安装要求

  1. 已安装 Minecraft Java Edition 1.20.1
  2. 已安装 Fabric Loader(建议 ≥ 0.15.0)
  3. 已安装 Fabric API
  4. 将本模组 .jar 放入游戏的 mods 文件夹

功能特性

界面增强

右键打开命令方块(或命令方块矿车)时,将看到重新设计的 GUI:

特性 说明
多行指令框 替代原版单行输入,长指令可换行显示,支持滚轮滚动
语法高亮 未解析片段、字面量、参数等以不同颜色区分
自动补全 保留原版 Brigadier 建议,并在独立面板中展示
撤销 / 重做 在指令框内支持文本撤销操作
聚焦模式 深度编辑指令时可聚焦输入框;按 Esc 或点击 × 退出聚焦
自定义名称 顶部可选填「命令方块名称」,重进存档后仍会保留
名称浮标 对准已命名的命令方块时,方块上方会显示自定义名称

界面顶部提供三个分页标签:

手持编辑

手持命令方块或命令方块矿车物品时:

编辑后的数据会保存在物品 NBT 中,放置到世界后生效。

物品提示

将鼠标悬停在已配置数据的命令方块物品上:

指令预设

LBCB 提供完整的指令模板工作流,预设文件格式为 .pvic,与 VicColor 模组共用目录: config/viccolor/custom/

预设菜单

界面导入

  1. 打开命令方块编辑界面
  2. 切换到 「导入预设」 标签
  3. 点击目标预设 → 自动导入并返回 「指令编辑」 页

模板导出

  1. 在命令方块 GUI 切换到 「导出模板」 标签
  2. 填写名称、选择图标、方块类型、标签等
  3. 导出为 .pvic 到指定目录(每次可选择子目录)

导出时可选择 LBCB 专用 「指令」 标签(界面中以青色显示),便于在预设列表中识别纯指令类模板。

预设标签

标签 含义
pattern 图案类预设
animation 动画类预设
text 文字类预设
command LBCB 专用「指令」类预设

坐标复制

对准任意方块后按 Alt + C:

仅当准心指向方块时生效;对准空气或实体不会复制。


快捷键

按键 功能
\ 打开指令预设菜单(可改键)
Alt + C 复制准心方块整数坐标
鼠标中键(手持命令方块,未按 Ctrl) 打开手持物品编辑界面
Ctrl + 悬停 查看命令方块物品详细 Tooltip
Esc(指令框聚焦时) 退出聚焦输入框

键位可在 选项 → 控制 → Lovic's Better Command Block 中调整(Alt+C 为全局组合键,暂无独立改键项)。


模组联动


常见问题

Q:安装后界面没有变化?
A:请确认游戏版本为 1.20.1、Fabric Loader 与 Fabric API 均已正确安装,且模组 jar 位于 mods 文件夹。需使用创造模式或拥有 OP 权限才能编辑命令方块。

Q:预设列表为空?
A:将 .pvic 文件放入 config/viccolor/custom/(或其子文件夹),或在预设菜单中点击「导出指令模板」创建新预设。

Q:导出模板后指令丢失?
A:1.1.0 起已修复从「导出模板」返回后指令内容丢失的问题;请使用最新版本。

Q:命令方块名称重进存档后消失?
A:1.1.0 起已修复;自定义名称会持久保存。

Q:手持中键打开界面崩溃?
A:1.1.0 起已修复;请更新至最新版。

Q:从旧版 bettercommandblock 升级需要注意什么?
A:请删除旧的 bettercommandblock-*.jar,改用 lovicsbettercommandblock-1.1.1.jar。模组 ID 已变更为 lovicsbettercommandblock。存档中已保存的自定义名称、预设物品等数据会自动从旧 NBT 键(BCBDisplayName 等)迁移读取;重新保存后会写入新键(LBCBDisplayName 等)。

Q:PCL 等启动器里模组图标不显示?
A:请使用已内嵌 assets/lovicsbettercommandblock/icon.png 的正式构建 jar。


更新日志

1.1.1

1.1.0


联系方式

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more