nbtBoolean - SpyglassMC/Spyglass GitHub Wiki
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Whether to use boolean literals to represent boolean-like NBT bytes or not.
- (false): always use numbers to represent byte values.
- (true): usetrueandfalseto represent1band0bin boolean-like byte values, respectively.
{
    "nbtBoolean": ["warning", false]
}summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:cat ~ ~ ~ {CollarColor: 1b}summon minecraft:armor_stand ~ ~ ~ {Invisible: true}
summon minecraft:cat ~ ~ ~ {CollarColor: true}{
    "nbtBoolean": ["warning", true]
}summon minecraft:armor_stand ~ ~ ~ {Invisible: true}
summon minecraft:cat ~ ~ ~ {CollarColor: 1b}summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:cat ~ ~ ~ {CollarColor: true}{
    "nbtBoolean": null
}summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible: true}
summon minecraft:cat ~ ~ ~ {CollarColor: 1b}
summon minecraft:cat ~ ~ ~ {CollarColor: true}This rule was introduced in DHP 2.0.0.