Skip to content

nbtDoubleOmitSuffix

SPGoding edited this page Apr 26, 2020 · 1 revision

Rule Details

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

Whether or not to omit the suffix of NBT double numbers if possible.

  • (boolean)

Examples

Default

{
    "nbtDoubleOmitSuffix": false
}

👍 Good

summon minecraft:arrow ~ ~ ~ {damage: 2.0d}

👎 Bad

summon minecraft:arrow ~ ~ ~ {damage: 2.0}

True

{
    "nbtDoubleOmitSuffix": true
}

👍 Good

summon minecraft:arrow ~ ~ ~ {damage: 2.0}

👎 Bad

summon minecraft:arrow ~ ~ ~ {damage: 2.0d}

History

This rule was introduced in DHP 2.0.0.

Clone this wiki locally