34 lines
884 B
JSON
34 lines
884 B
JSON
{
|
|
"title": "attributes",
|
|
"type": "array",
|
|
"uniqueItems": true,
|
|
"items" : {
|
|
"title": "attribute",
|
|
"type": "object",
|
|
"properties": {
|
|
"resource": {
|
|
"description": "The Mojang name of an attribute (usually is generic.[name] or minecraft:generic.[name]",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The name of an attribute",
|
|
"type": "string",
|
|
"pattern": "\\S+"
|
|
},
|
|
"min": {
|
|
"description": "The minimum value of an attribute",
|
|
"type": "number"
|
|
},
|
|
"max": {
|
|
"description": "The maximum value of an attribute",
|
|
"type": "number"
|
|
},
|
|
"default": {
|
|
"description": "The default value of an attribute",
|
|
"type": "number"
|
|
}
|
|
},
|
|
"required": ["resource", "name", "min", "max", "default"],
|
|
"additionalProperties":false
|
|
}
|
|
} |