Skip to content

nbtArraySemicolonSpacing

SPGoding edited this page Apr 26, 2020 · 1 revision

Rule Details

🎨 Stylistic: this is a stylistic rule used by the formatting feature.

Enforce spacing after semicolons in NBT arrays. No matter what the setting is, spaces after the semicolon are always removed if the array is empty.

  • (object) Root.
    • after: (number) the number of spaces after the semicolon.

Examples

Default

{
    "nbtArraySemicolonSpacing": { "after": 1 }
}

👍 Good

summon minecraft:arrow ~ ~ ~ {Owner: [I; 0, 1, 2, 3]}

👎 Bad

summon minecraft:arrow ~ ~ ~ {Owner: [I;0, 1, 2, 3]}

Dense

{
    "nbtArraySemicolonSpacing": { "after": 0 }
}

👍 Good

summon minecraft:arrow ~ ~ ~ {Owner: [I;0, 1, 2, 3]}

👎 Bad

summon minecraft:arrow ~ ~ ~ {Owner: [I; 0, 1, 2, 3]}

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally