-
Notifications
You must be signed in to change notification settings - Fork 34
nbtArrayBracketSpacing
SPGoding edited this page Apr 26, 2020
·
1 revision
🎨 Stylistic: this is a stylistic rule used by the formatting feature.
Enforce spacing inside the square brackets of NBT arrays.
- (object) Root.
-
inside
: (number) the number of spaces inside each bracket. -
zeroValue
: (number) Optional. The number of spaces inside each bracket if the NBT array is empty ([X;]
). The same number asinside
will be used if this is not specified. -
oneValue
: (number) Optional. The number of spaces inside each bracket if the NBT array has exact one value. The same number asinside
will be used if this is not specified.
-
{
"nbtArrayBracketSpacing": { "inside": 0 }
}
summon minecraft:arrow ~ ~ ~ {Owner: [I;]}
summon minecraft:arrow ~ ~ ~ {Owner: [I; 0, 1, 2, 3]}
summon minecraft:arrow ~ ~ ~ {Owner: [I; ]}
summon minecraft:arrow ~ ~ ~ {Owner: [I; 0, 1, 2, 3 ]}
{
"nbtArrayBracketSpacing": { "inside": 1, "zeroValue": 0 }
}
summon minecraft:arrow ~ ~ ~ {Owner: [I;]}
summon minecraft:arrow ~ ~ ~ {Owner: [I; 0, 1, 2, 3 ]}
summon minecraft:arrow ~ ~ ~ {Owner: [I; ]}
summon minecraft:arrow ~ ~ ~ {Owner: [I; 0, 1, 2, 3]}
This rule was introduced in DHP 2.0.0.