-
Notifications
You must be signed in to change notification settings - Fork 34
idOmitDefaultNamespace
SPGoding edited this page Apr 26, 2020
·
1 revision
🔧 Fixable: violations of this rule can be fixed by Code Actions.
Whether or not the default namespaces in namespaced IDs should be omitted. No matter what the setting is, namespaces in predicates (e.g. nbt
selector argument, execute if data
) should always be kept.
- (boolean)
{
"idOmitDefaultNamespace": null
}
summon armor_stand ~ ~ ~ {ArmorItems: [{Count: 1b, id: "stone"}, {}]}
summon minecraft:armor_stand ~ ~ ~ {ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}
kill @e[type=armor_stand,nbt={ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}]
kill @e[type=minecraft:armor_stand,nbt={ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}]
kill @e[nbt={ArmorItems: [{Count: 1b, id: "stone"}, {}]}]
{
"idOmitDefaultNamespace": ["warning", true]
}
summon armor_stand ~ ~ ~ {ArmorItems: [{Count: 1b, id: "stone"}, {}]}
kill @e[type=armor_stand,nbt={ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}]
summon minecraft:armor_stand ~ ~ ~ {ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}
kill @e[type=minecraft:armor_stand,nbt={ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}]
kill @e[type=armor_stand,nbt={ArmorItems: [{Count: 1b, id: "stone"}, {}]}]
{
"idOmitDefaultNamespace": ["warning", false]
}
summon minecraft:armor_stand ~ ~ ~ {ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}
kill @e[type=minecraft:armor_stand,nbt={ArmorItems: [{Count: 1b, id: "minecraft:stone"}, {}]}]
summon armor_stand ~ ~ ~ {ArmorItems: [{Count: 1b, id: "stone"}, {}]}
kill @e[type=armor_stand,nbt={ArmorItems: [{Count: 1b, id: "stone"}, {}]}]
This rule was introduced in DHP 2.0.0.