blockStateEqualSpacing - ChenCMD/datapack-helper-plus-JP GitHub Wiki
🎨 Stylistic: これは、フォーマッティングで使用されるスタイル規則です。
blockstate内の等号の前後に空白を入れる。
- (object) Root.
-
before
: (数値) 等号の前の空白の数。 -
after
: (数値) 等号の後の空白の数。
-
{
"blockStateEqualSpacing": { "before": 0, "after": 0 }
}
setblock ~ ~ ~ minecraft:stone_button[face=ceiling]
setblock ~ ~ ~ minecraft:stone_button[face= ceiling]
setblock ~ ~ ~ minecraft:stone_button[face =ceiling]
setblock ~ ~ ~ minecraft:stone_button[face = ceiling]
{
"blockStateEqualSpacing": { "before": 1, "after": 1 }
}
setblock ~ ~ ~ minecraft:stone_button[face = ceiling]
setblock ~ ~ ~ minecraft:stone_button[face=ceiling]
setblock ~ ~ ~ minecraft:stone_button[face= ceiling]
setblock ~ ~ ~ minecraft:stone_button[face =ceiling]
このルールはDHP 2.0.0で実装されました。