nbtDoubleOmitSuffix - SpyglassMC/Spyglass GitHub Wiki

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.

⚠️ **GitHub.com Fallback** ⚠️