nbtCompoundBracketSpacing - ChenCMD/datapack-helper-plus-JP GitHub Wiki
🎨 Stylistic: これは、フォーマッティングで使用されるスタイル規則です。
NBTのCompoundの波括弧内に空白を入れる。
- (object) Root.
-
inside
: (数値) 括弧内の空白の数。 -
zeroValue
: (数値) 任意。括弧内のNBTのCompoundが空({}
)である場合の空白の数。 -
oneValue
: (数値) 任意。括弧内のNBTのCompoundが1つのみの場合の括弧内の空白の数。指定されていない場合はinside
と同じ数値を使用します。
-
{
"nbtCompoundBracketSpacing": { "inside": 0 }
}
summon minecraft:armor_stand ~ ~ ~ {}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ { }
summon minecraft:armor_stand ~ ~ ~ { Invisible: 1b }
{
"nbtCompoundBracketSpacing": { "inside": 1, "zeroValue": 0 }
}
summon minecraft:armor_stand ~ ~ ~ {}
summon minecraft:armor_stand ~ ~ ~ { Invisible: 1b }
summon minecraft:armor_stand ~ ~ ~ { }
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
このルールはDHP 2.0.0で実装されました。