blockStateBracketSpacing - SpyglassMC/Spyglass GitHub Wiki
🎨 Stylistic: this is a stylistic rule used by the formatting feature.
Enforce spacing inside the square brackets of block states.
- (object) Root.
- 
inside: (number) the number of spaces inside each bracket.
- 
zeroValue: (number) Optional. The number of spaces inside each bracket if the block state is empty ([]). The same number asinsidewill be used if this is not specified.
- 
oneValue: (number) Optional. The number of spaces inside each bracket if the block state has exact one value. The same number asinsidewill be used if this is not specified.
 
- 
{
    "blockStateBracketSpacing": { "inside": 0 }
}setblock ~ ~ ~ minecraft:stone_button[]
setblock ~ ~ ~ minecraft:stone_button[face=ceiling,powered=true]setblock ~ ~ ~ minecraft:stone_button[face=ceiling,powered=true ]
setblock ~ ~ ~ minecraft:stone_button[ face=ceiling,powered=true]
setblock ~ ~ ~ minecraft:stone_button[ face=ceiling,powered=true ]{
    "blockStateBracketSpacing": { "inside": 1, "zeroValue": 0 }
}setblock ~ ~ ~ minecraft:stone_button[]
setblock ~ ~ ~ minecraft:stone_button[ face=ceiling,powered=true ]setblock ~ ~ ~ minecraft:stone_button[ ]
setblock ~ ~ ~ minecraft:stone_button[face=ceiling,powered=true]
setblock ~ ~ ~ minecraft:stone_button[face=ceiling,powered=true ]
setblock ~ ~ ~ minecraft:stone_button[ face=ceiling,powered=true]This rule was introduced in DHP 2.0.0.