Skip to content

nbtArrayTrailingComma

SPGoding edited this page Apr 26, 2020 · 1 revision

Rule Details

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

Whether there should be a trailing comma after the last number in NBT arrays or not.

  • (boolean)

Examples

Default

{
    "nbtArrayTrailingComma": false
}

👍 Good

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

👎 Bad

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

True

{
    "nbtArrayTrailingComma": true
}

👍 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