JSON Format
Either a simple Action
object:
-
(object) An action to take when encounterred undeclared symbols
-
Either
declare
: declares the symbol at the specified scope. Allowed values:"block"
,"file"
, or"public"
. -
Or
report
: reports a diagnostic with the specified severity. Allowed values:"inherit"
,"hint"
,"information"
,"warning"
, or"error"
.
-
Or a more Complex
structure with conditions:
-
(object)
-
if
: (object)-
category
: (string | string[]) -
pattern
: (string | string[]) -
excludePattern
: (string | string[]) -
namespace
: (string | string[]) -
excludeNamespace
: (string | string[])
-
-
then
: (Action
) -
override
: (Complex | Complex[]
)
-
Example 1. Example
Config
{
"lint": {
"undeclaredSymbol": [
{
"if": [
{ "category": ["block", "entity_type", "item"], "namespace": "minecraft" },
{ "category": ["advancement", "bossbar", "objective", "team"] },
],
"then": { "report": "warning" },
},
{
"then": { "declare": "block" },
},
]
}
}
👍 Good
tag @s add foo
👎 Bad
setblock ~ ~ ~ minecraft:foo