Refresh

This website github-wiki-see.page/m/ChenCMD/datapack-helper-plus-JP/wiki/nbtListBracketSpacing is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh.

nbtListBracketSpacing - ChenCMD/datapack-helper-plus-JP GitHub Wiki

ルールの詳細

🎨 Stylistic: これは、フォーマッティングで使用されるスタイル規則です。

NBTリストの角括弧内に空白を入れる。

  • (object) Root.
    • inside: (数値) 括弧内の空白の数。
    • zeroValue: (数値) 任意。括弧内のNBTリストが空([])である場合の空白の数。指定されていない場合はinsideと同じ数値を使用します。
    • oneValue: (数値) 任意。括弧内のNBTリストが1つのみの場合の括弧内の空白の数。指定されていない場合はinsideと同じ数値を使用します。

Default

{
    "nbtListBracketSpacing": { "inside": 0 }
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Pos: []}
summon minecraft:armor_stand ~ ~ ~ {Pos: [0.0d, 0.0d, 0.0d]}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Pos: [ ]}
summon minecraft:armor_stand ~ ~ ~ {Pos: [ 0.0d, 0.0d, 0.0d ]}

Spacious

{
    "nbtListBracketSpacing": { "inside": 1, "zeroValue": 0 }
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Pos: []}
summon minecraft:armor_stand ~ ~ ~ {Pos: [ 0.0d, 0.0d, 0.0d ]}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Pos: [ ]}
summon minecraft:armor_stand ~ ~ ~ {Pos: [0.0d, 0.0d, 0.0d]}

History

このルールはDHP 2.0.0で実装されました。

⚠️ **GitHub.com Fallback** ⚠️