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

ルールの詳細

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

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

boolean型の0b/1bfalse/trueで表すかどうか。

  • (false): byte値を表す際は常に数字を使用する。
  • (true): boolean型のようなbyte値においては、1b0bをそれぞれtruefalseとして表します。

Default

{
    "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}

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}

History

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

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