-
Notifications
You must be signed in to change notification settings - Fork 2
Suggestion Style Settings
Important
If you're using v1.x of Smart Completion, some of these settings won't be available.
Furthermore, the names of some settings/settings files were slightly different.
You may want to read Suggestion Style Settings (v1) instead.
Note
If you're playing on a Minecraft version prior to 1.20.3, you may need to edit these options by creating a resource pack,
as the /smartcompletion command is not supported in earlier versions.
These settings define how suggestions are displayed, as long as the enable_suggestion_highlighting option is set to true.
Tip
Resource packs may define these options under a smart-completion/style.json file.
User config for these settings is managed by the /smartcompletion style command under the config/smart-completion/style.json file.
This file supports 7 style entries and 3 color entries.
Style entries:
-
suggestionthe default style for suggestions (default:gray) -
matchthe style for matches of words initials within suggestions (default:blue) -
weak_matchthe style for fallback matches of your query within suggestions (default:dark_aqua) -
prefixthe style for resource location namespaces (such asminecraft:) (default:dark_gray)
Note
Resource location namespaces are only recognized if at the start of a suggestion.
-
repeatthe style for a potential alternate match of a word initial (default:dark_aqua) -
unexpectedthe style for unexpected suggestions from the server (affects the entire suggestion) (default:dark_aqua) -
selectedthe style applied to the selected suggestion (default:#FFFF00(yellow)) (sincev1.1.0)
Color entries:
-
background_colorthe color for the background behind suggestions (default:#BD000000) (sincev1.1.0) -
background_selected_colorthe color for the background of the selected suggestion (default:#BD242424) (sincev1.1.0) -
ellipsis_colorthe color for the dots atop/below the suggestion list when scrolling is possible (default:#80FFFFFF) (sincev2.0.0)
Additionally, a replace boolean key may be defined if you wish to replace all styles defined by resource packs with lower priority, rather
than merge the styles.
Note
Unknown entries are tolerated and ignored for forwards compatibility.
Style entries use the same syntax as Minecraft's raw JSON text format, that is, it may contain the following properties:
-
color, one of the following:- A named color (
black,dark_blue,dark_green,dark_aqua,dark_red,dark_purple,gold,gray,dark_gray,blue,green,aqua,red,light_purple,yellow,white) - A custom color in RGB hexadecimal format (
#RRGGBB) (does not support alpha channel (#AARRGGBB) nor the shorthand#RGBformat)
- A named color (
-
bold(true/false) -
italic(true/false) -
underlined(true/false) -
strikethrough(true/false) -
obfuscated(true/false)
Color entries use the same syntax as the color property of a style entry (as specified by Minecraft's raw JSON text format), optionally supporting an alpha channel.
That is, a color entry must be:
- A named color (
black,dark_blue,dark_green,dark_aqua,dark_red,dark_purple,gold,gray,dark_gray,blue,green,aqua,red,light_purple,yellow,white) - A custom color in ARGB/RGB hexadecimal (
#AARRGGBB/#RRGGBB) (does not support shorthand#RGBnor#ARGBformats)
The default style.json file looks as follows:
{
"replace": false,
"suggestion": {
},
"match": {
"color": "blue"
},
"weak_match": {
"color": "dark_aqua"
},
"prefix": {
"color": "dark_gray"
},
"repeat": {
"color": "dark_aqua"
},
"unexpected": {
"color": "dark_aqua"
},
"selected": {
"color": "#FFFF00"
},
"background_color": "#BD000000",
"background_selected_color": "#BD242424",
"ellipsis_color": "#80FFFFFF"
}If you have any doubts, feel free to drop by the official Discord Server.