datapack-language-server
Language server for Minecraft: Java Edition datapacks.
Todo
Lint Rules
There are lots of lint rules which can help format your commands.
'always single' | 'always double' | 'prefer single' | 'prefer double'
quoteType: Quotes used in NBT strings and phrase strings.
'always single'
: Always use single quotes.
'always double'
: Always use double quotes.
'prefer single'
: Always use single quotes, unless there are single quotes in the string.
'prefer double'
: Always use double quotes, unless there are double quotes in the string.
@default 'prefer double'
boolean
quoteEntitySelectorStrings: When the strings in entity selectors should be quoted.
true
: Always.
false
: Only when there are special characters in the string.
@default false
boolean
quoteSnbtStringKeys: When the string keys in SNBT should be quoted.
true
: Always.
false
: Only when there are special characters in the string.
@default false
boolean
quoteNbtStringValues: When the string values in SNBT should be quoted.
true
: Always.
false
: Only when there are special characters in the string.
@default true
boolean
snbtAppendSpaceAfterColon: Whether to append spaces after colons in SNBT or not.
@default true
boolean
snbtAppendSpaceAfterComma: Whether to append spaces after commas in SNBT or not.
@default true
boolean
snbtAppendSpaceAfterSemicolon: Whether to append spaces after semicolons in SNBT or not.
@default true
'b' | 'B'
snbtByteSuffix: The suffix used for TAG_Byte in SNBT.
@default 'b'
boolean
snbtUseBooleans: Whether 0b
and 1b
should be represents by false
and true
in SNBT or not.
@default false
's' | 'S'
snbtShortSuffix: The suffix used for TAG_Short in SNBT.
@default 's'
'l' | 'L'
snbtLongSuffix: The suffix used for TAG_Long in SNBT.
@default 'L'
'f' | 'F'
snbtFloatSuffix: The suffix used for TAG_Float in SNBT.
@default 'f'
'd' | 'D'
snbtDoubleSuffix: The suffix used for TAG_Double in SNBT.
@default 'd'
boolean
snbtOmitDoubleSuffix: Whether to omit the suffix of double numbers when possible in SNBT or not.
@default false
boolean
snbtKeepDecimalPlace: Whether to keep at least one decimal place in SNBT or not.
@default true
boolean
snbtSortKeys: Whether to sort the keys of a compound tag in SNBT or not.
@default false
NamingConventionConfig
nameOfTags: The naming convension for scoreboard tags.
@default 'whatever'
NamingConventionConfig
nameOfObjectives: The naming convension for scoreboard objectives.
@default 'whatever'
NamingConventionConfig
nameOfSnbtCompoundTagKeys: The naming convension for compound tag keys in SNBT.
@default ['PascalCase', 'camelCase']
Contributing
Contributions are welcome!
Sponsers
- 夏白千层心
- 爱发电用户_4vCR
- uuu2011
- Ganxiaozhe