Skip to content

nbtListTrailingComma

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 lists or not.

  • (boolean)

Examples

Default

{
    "nbtListTrailingComma": false
}

👍 Good

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

👎 Bad

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

True

{
    "nbtListTrailingComma": true
}

👍 Good

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

👎 Bad

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

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally