nbtCompoundKeyQuote - ChenCMD/datapack-helper-plus-JP GitHub Wiki

ルールの詳細

⚠️ Diagnostic: これは、校閲機能によって使用される校閲ルールです。

🔧 Fixable: これは、校閲機能によって使用される校閲ルールです。

NBT compoundのキーに引用符を必要とするかどうか。

  • (false): 必要なときのみ引用符で囲む。
  • (true): 常に引用符で囲む。

Default

{
    "nbtCompoundKeyQuote": null
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {"Invisible": 1b}
summon minecraft:armor_stand ~ ~ ~ {"this is crazy": 1b}

False

{
    "nbtCompoundKeyQuote": ["warning", false]
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {"this is crazy": 1b}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {"Invisible": 1b}

True

{
    "nbtCompoundKeyQuote": ["warning", true]
}

👍 良い例

summon minecraft:armor_stand ~ ~ ~ {"Invisible": 1b}
summon minecraft:armor_stand ~ ~ ~ {"this is crazy": 1b}

👎 悪い例

summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}

History

このルールはDHP 2.0.0で実装されました。

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