Files
minecraft-data/schemas/attributes_schema.json
usb 73001de37e add attribute support (#486)
* add attribute support

normalizes names of attributes across versions

* add attribute test

* update attributes for each version

Only ones that I can confirm from vanilla code are 1.14.4 - 1.17

The other ones are from testing with pakkit

I could not get MCP to work.

* skipped 1.11

* change displayName to mojangName

* update schema

* missed two versions

missed 1.12 and 1.10 in the find-and-replace

* make suggested changes

remove id
replaced mojangName with resource

* also update schema

* forgot to remove id
2021-12-21 22:02:57 +01:00

22 lines
528 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+"
}
},
"required": ["resource", "name"],
"additionalProperties":false
}
}