-
Notifications
You must be signed in to change notification settings - Fork 2
Flatcase Splitting Settings
Important
If you're using v1.x of Smart Completion, some of these settings won't be available.
Furthermore, the names of settings files were slightly different.
You may want to read Flatcase Splitting 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 flatcase commands are split into words for matching.
Tip
Resource packs may define these options under a smart-completion/flatcase_splitting.json file.
User config for these settings is managed by the /smartcompletion flatcase_splitting command under the config/smart-completion/flatcase_splitting.json file.
The structure of this file consists of 2 set entries:
-
wordsa set of lowercase words to find in commands (longer words are always preferred) -
suffixesa set of lowercase suffixes to merge into found words if gaps are left between them (it's just a dumb feature, you may ignore this)
Additionally, a replace boolean key may be defined, if you wish to replace the lists defined by resource packs with lower priority, rather
than add to them.
Note
Unknown entries are tolerated and ignored for forwards compatibility.
Set entries can be defined with a variety of syntaxes, that enable you to define how to override the value from resource packs with lower priority:
- A JSON array:
Adds to the value of lower priority packs (unless the global
replaceflag istrue).{ "words": ["minceraft"] } - An object with
include/excludearrays: Adds to and removes from the values in lower priority packs (unless the globalreplaceflag istrue).{ "words": { "include": [ "minceraft" ], "exclude": [ "minecraft" ] } } - An object with a
replacearray: Replaces values from lower priority packs.{ "words": { "replace": [ "minceraft" ] } }
{
"replace": false,
"suffixes": [
"s"
],
"words": [
"mine",
"craft",
"ability",
"advancement",
"always",
"..."
]
}You can also see the actual list of known words defined by the default flatcase_splitting.json file.
If you have any doubts, feel free to drop by the official Discord Server.