-
Notifications
You must be signed in to change notification settings - Fork 33
nbtTypeCheck
SPGoding edited this page Apr 26, 2020
·
2 revisions
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Check the types of the NBT values.
- (
"strictly"
): the type of your NBT values should match exactly what they should be. - (
"loosely"
): bytes, shorts, longs, floats, and doubles can be written as integers as long as they are not in an NBT predicate.
{
"nbtTypeCheck": ["warning", "strictly"]
}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
execute if entity @e[type=minecraft:armor_stand,nbt={Invisible: 1b}]
summon minecraft:armor_stand ~ ~ ~ {Invisible: "haha"}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1}
execute if entity @e[type=minecraft:armor_stand,nbt={Invisible: 1}]
{
"nbtTypeCheck": ["warning", "loosely"]
}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1}
execute if entity @e[type=minecraft:armor_stand,nbt={Invisible: 1b}]
summon minecraft:armor_stand ~ ~ ~ {Invisible: "haha"}
execute if entity @e[type=minecraft:armor_stand,nbt={Invisible: 1}]
{
"nbtTypeCheck": null
}
summon minecraft:armor_stand ~ ~ ~ {Invisible: "haha"}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1b}
summon minecraft:armor_stand ~ ~ ~ {Invisible: 1}
execute if entity @e[type=minecraft:armor_stand,nbt={Invisible: 1b}]
execute if entity @e[type=minecraft:armor_stand,nbt={Invisible: 1}]
This rule was introduced in DHP 2.0.0.