All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Better Command Block UI

Better Command Block UI

by Tec • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Tired of holding down your arrow keys to get to the middle of a long command, only to overshoot and spend another half an eternity backtracking? Wishing you could just see the whole thing in a more structured format without needing to copy it into external software and back again?

This clientside mod intends to address these issues and more by completely overhauling the Command Block UI.

Current features:

  • Multi-line command text field
    • Automatic indentation based on parentheses
    • Colorcoding of nested NBT data
    • Line wraparound
    • Horizontal and vertical scrolling
    • Improved selection & erasing
      • Click-and-drag selection
      • Double click word selection
      • Ctrl-erasing only erases actual words instead of all NBT
    • Adapts to UI scale and window dimensions
  • Reorganization of existing buttons
    • Command block state buttons (Type, conditionality, power mode, output tracking) reduced to simple icons with tooltips
    • New button to switch between viewing the command and output
  • Command block chain navigation
    • Buttons to move backwards and forwards through the chain without leaving the UI
    • If multiple blocks point into current one, all of them are listed with the direction they're in as a tooltip. The one "in line" with the current block will be listed first
  • UI Button and CTRL + S to save without leaving the UI
  • Tools window
    • Rotation selector, outputs radians
    • Color selector, outputs integer and hex code
  • Area selector keybind
    • Press ; to select two opposite corners of a volume (akin to WorldEdit), and the mod will put the corresponding area selector (x=..,y=..,z=..,dx=..,dy=..,dz=..) in your clipboard
  • Config options
    • Fully configurable indentation behaviour
    • Optional auto-saving when closing the screen or moving along chain
    • ModMenu support
  • Compatible with NBT Autocomplete, Component Utils, Better Suggestions, and Better Highlighting

Example

As mentioned, the mod is entirely clientside. It takes in the command as received from the server and just displays it across multiple lines and with indentation, but doesn't actually add any line breaks to it.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric Quilt
20h ago 1
26.3
Fabric Quilt
20h ago 1
26.2
Fabric Quilt
20h ago 1
26.1
Fabric Quilt
20h ago 1
1.21.11
Fabric Quilt
20h ago 1
1.21.10
Fabric Quilt
20h ago 1
1.21.x
Fabric Quilt
20h ago 1
1.21.6
Fabric Quilt
20h ago 1
1.21.4
Fabric Quilt
20h ago 1
1.21.5
Fabric Quilt
20h ago 1
1.21.4
Fabric Quilt
20h ago 1
1.21.x
Fabric Quilt
20h ago 1
1.21.x
Fabric Quilt
20h ago 1
1.21
Fabric Quilt
20h ago 1
1.20.6
Fabric Quilt
20h ago 1
1.20.x
Fabric
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.2
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.19.4
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.2
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.19.4
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.20.2
Fabric Quilt
20h ago 1
1.20.x
Fabric Quilt
20h ago 1
1.19.4
Fabric Quilt
20h ago 1
1.19.3
Fabric Quilt
20h ago 1
1.19.x
Fabric Quilt
20h ago 1
1.18.2
Fabric Quilt
20h ago 1
1.19.4
Fabric Quilt
20h ago 1
1.19.3
Fabric Quilt
20h ago 1
1.19.x
Fabric Quilt
20h ago 1
1.18.2
Fabric Quilt
20h ago 1
1.19.4
Fabric Quilt
20h ago 1
1.19.3
Fabric Quilt
20h ago 1
1.19.x
Fabric Quilt
20h ago 1
1.18.2
Fabric Quilt
20h ago 1
1.19.x
Fabric Quilt
20h ago 1
1.19.3
Fabric
20h ago 1
1.19.x
Fabric
20h ago 1
1.18.2
Fabric
20h ago 1
1.19.x
Fabric
20h ago 1
1.18.2
Fabric
20h ago 1
1.19.2
Fabric
20h ago 1
1.18.2
Fabric
20h ago 1
1.18.2
Fabric
20h ago 1
1.19.2
Fabric
20h ago 1
  • Fix Simplified Chinese lang file
  • Updated to 26.3
  • Added an alpha channel to the color picker and a checkbox to toggle whether it affects the output
  • Updated to 26.2
  • Updated to 26.1
Updated to 1.21.11
  • Update to 1.21.10
  • Updated to 1.21.7
  • Updated to 1.21.6
  • Updated to 1.21.5
  • Fixed pasting text not counting as modifying the command (A.k.a. the save button not working sometimes)
  • Fixed alignment of "Console command" and "Previous output" text box headers
  • Fixed glitched visuals of very long scrollbars
  • Added CTRL + S functionality for commiting changes
  • Added Autosave config option (Automatically commits changes when closing the screen via Esc or moving along the chain)
  • Updated to 1.21.4
Update to 1.21
  • Added basic chain navigation
  • Buttons on the top left let you move along a chain of command blocks
  • If multiple blocks point into the currently selected one, all of them are listed on the far left, with the one "in line" with the current one at the top
  • Added save button to save without closing UI
  • Added double-click word selection
  • Added config option to ignore Enter key presses to avoid exiting command block when trying to add a line break
  • Note: Manual line breaks are not supported
  • Fixed Enter key press always opening config menu if tools window is open
  • Added translation strings for area selector prompts
  • Added Simplified Chinese translation (Thanks to [ClovenBugle](https://github.com/Chiloven945))
# The Config update
  • Added config screen with ModMenu integration
  • Previous config options have been moved here from the tools window
  • Extra config options for defining where line breaks are added
  • Changed tools window
  • Rotation helper has been extended with interactive visualization and output text field
  • Added basic color picker with integer and hex output text fields
  • Added config screen button
  • Quality of Life changes
  • Line wraparound tries not to chop words in half anymore
  • Added click-and-drag text selection
  • Added improved word skipping/erasing (when holding CTRL)
  • Added checkboxes to set default command/output view and default output tracking state
  • Command block attributes that have been modified are now marked with an asterisk
  • Added asterisks to show which command block properties have been edited (most notably the output tracking state if it was overridden by the default)
  • Fixed some overdraw issues with the side window
  • Text wraparound now tries to keep words intact. If a word is longer than the wraparound width, the old behaviour applies
  • Added checkboxes to set the default output tracking state and whether the output view should be open by default
  • Config is now saved when exiting the config screen rather than when exiting the game
  • Config only gets rewritten on startup if it's found to be corrupt or outdated
  • Fixed some crashes when CTRL-deleting or moving at the very start of a command or with an empty command
  • Fix command suggestor not rendering if command is empty
  • Fix previous command changes being lost and not being able to confirm new changes when returning from config screen
  • Fixed indentation settings not working on first launch with new update
  • Fixed false error thrown by MultiLineCommandSuggestor
This is update changed a lot of internal stuff so I would appreciate bug reports on the GitHub page if you come across any issues. If there are none I'll work on backporting this to older MC versions.

Changes:
  • Actually runs on Quilt again, not sure why that worked to begin with and why/when it stopped working...
  • Finally added proper config screen and ModMenu support!
  • Moved previous config stuff from tools window to new config screen, added button to go to config screen in their place
  • Tools window now stays open when exiting and re-entering command blocks until you close it
  • Added config options to define where line breaks are placed
  • Added click-and-drag text selection
  • Added better per-word erasing and cursor movement (i.e. when holding down CTRL)
  • Gave scroll bars a lower size limit to prevent miniscule bars on really long commands
  • Added output text box to Pi fraction selector to make its function clearer
  • Added rudimentary color picker which outputs both integer and hex codes
Updated to 1.20.3 & 1.20.4
  • Updated to 1.20.2
  • Command suggestor now sticks to the cursor
  • Command suggestor now sticks to the cursor
  • Command suggestor now sticks to the cursor
  • Command suggestor now sticks to the cursor
Better Command Block UI Icon
Download Better Command Block UI
Select game version
Select platform