Skip to content

Commit

Permalink
Add bedrock language data (#743)
Browse files Browse the repository at this point in the history
* Add bedrock language data

* Add : character to schema, update bedrock.md

* Add lang extractor script to doc

* Remove langauge files which are identical to previous ones and point them to previous versions in dataPaths
  • Loading branch information
CreeperG16 committed Aug 3, 2023
1 parent e4218a2 commit d34a2f4
Show file tree
Hide file tree
Showing 24 changed files with 195,249 additions and 28 deletions.
8,519 changes: 8,519 additions & 0 deletions data/bedrock/1.16.201/language.json

Large diffs are not rendered by default.

8,529 changes: 8,529 additions & 0 deletions data/bedrock/1.16.210/language.json

Large diffs are not rendered by default.

8,555 changes: 8,555 additions & 0 deletions data/bedrock/1.16.220/language.json

Large diffs are not rendered by default.

8,804 changes: 8,804 additions & 0 deletions data/bedrock/1.17.0/language.json

Large diffs are not rendered by default.

8,924 changes: 8,924 additions & 0 deletions data/bedrock/1.17.10/language.json

Large diffs are not rendered by default.

9,110 changes: 9,110 additions & 0 deletions data/bedrock/1.17.30/language.json

Large diffs are not rendered by default.

9,122 changes: 9,122 additions & 0 deletions data/bedrock/1.17.40/language.json

Large diffs are not rendered by default.

9,208 changes: 9,208 additions & 0 deletions data/bedrock/1.18.0/language.json

Large diffs are not rendered by default.

9,408 changes: 9,408 additions & 0 deletions data/bedrock/1.18.11/language.json

Large diffs are not rendered by default.

9,539 changes: 9,539 additions & 0 deletions data/bedrock/1.18.30/language.json

Large diffs are not rendered by default.

9,739 changes: 9,739 additions & 0 deletions data/bedrock/1.19.1/language.json

Large diffs are not rendered by default.

9,360 changes: 9,360 additions & 0 deletions data/bedrock/1.19.10/language.json

Large diffs are not rendered by default.

9,404 changes: 9,404 additions & 0 deletions data/bedrock/1.19.20/language.json

Large diffs are not rendered by default.

9,462 changes: 9,462 additions & 0 deletions data/bedrock/1.19.30/language.json

Large diffs are not rendered by default.

9,471 changes: 9,471 additions & 0 deletions data/bedrock/1.19.40/language.json

Large diffs are not rendered by default.

9,489 changes: 9,489 additions & 0 deletions data/bedrock/1.19.50/language.json

Large diffs are not rendered by default.

9,544 changes: 9,544 additions & 0 deletions data/bedrock/1.19.60/language.json

Large diffs are not rendered by default.

9,597 changes: 9,597 additions & 0 deletions data/bedrock/1.19.70/language.json

Large diffs are not rendered by default.

9,649 changes: 9,649 additions & 0 deletions data/bedrock/1.19.80/language.json

Large diffs are not rendered by default.

9,858 changes: 9,858 additions & 0 deletions data/bedrock/1.20.0/language.json

Large diffs are not rendered by default.

9,904 changes: 9,904 additions & 0 deletions data/bedrock/1.20.10/language.json

Large diffs are not rendered by default.

74 changes: 49 additions & 25 deletions data/dataPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,8 @@
"types": "bedrock/1.16.201",
"windows": "bedrock/1.16.201",
"enchantments": "bedrock/1.16.201",
"version": "bedrock/1.16.201"
"version": "bedrock/1.16.201",
"language": "bedrock/1.16.201"
},
"1.16.210": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1288,7 +1289,8 @@
"proto": "bedrock/1.16.210",
"types": "bedrock/1.16.210",
"enchantments": "bedrock/1.16.201",
"version": "bedrock/1.16.210"
"version": "bedrock/1.16.210",
"language": "bedrock/1.16.210"
},
"1.16.220": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1301,7 +1303,8 @@
"protocol": "bedrock/1.16.220",
"proto": "bedrock/1.16.220",
"types": "bedrock/1.16.220",
"version": "bedrock/1.16.220"
"version": "bedrock/1.16.220",
"language": "bedrock/1.16.220"
},
"1.17.0": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1321,7 +1324,8 @@
"blocksJ2B": "bedrock/1.17.0",
"proto": "bedrock/1.17.0",
"types": "bedrock/1.17.0",
"version": "bedrock/1.17.0"
"version": "bedrock/1.17.0",
"language": "bedrock/1.17.0"
},
"1.17.10": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1343,7 +1347,8 @@
"blocksJ2B": "bedrock/1.17.10",
"proto": "bedrock/1.17.10",
"types": "bedrock/1.17.10",
"version": "bedrock/1.17.10"
"version": "bedrock/1.17.10",
"language": "bedrock/1.17.10"
},
"1.17.30": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1365,7 +1370,8 @@
"blocksJ2B": "bedrock/1.17.10",
"proto": "bedrock/1.17.30",
"types": "bedrock/1.17.30",
"version": "bedrock/1.17.30"
"version": "bedrock/1.17.30",
"language": "bedrock/1.17.30"
},
"1.17.40": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1387,7 +1393,8 @@
"blocksJ2B": "bedrock/1.17.10",
"proto": "bedrock/1.17.40",
"types": "bedrock/1.17.40",
"version": "bedrock/1.17.40"
"version": "bedrock/1.17.40",
"language": "bedrock/1.17.40"
},
"1.18.0": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1411,7 +1418,8 @@
"types": "bedrock/1.18.0",
"version": "bedrock/1.18.0",
"entityLoot": "bedrock/1.18.0",
"blockLoot": "bedrock/1.18.0"
"blockLoot": "bedrock/1.18.0",
"language": "bedrock/1.18.0"
},
"1.18.11": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1433,7 +1441,8 @@
"blocksJ2B": "bedrock/1.18.11",
"proto": "bedrock/1.18.11",
"types": "bedrock/1.18.11",
"version": "bedrock/1.18.11"
"version": "bedrock/1.18.11",
"language": "bedrock/1.18.11"
},
"1.18.30": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1455,7 +1464,8 @@
"blocksJ2B": "bedrock/1.18.30",
"proto": "bedrock/1.18.30",
"types": "bedrock/1.18.30",
"version": "bedrock/1.18.30"
"version": "bedrock/1.18.30",
"language": "bedrock/1.18.30"
},
"1.19.1": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1478,7 +1488,8 @@
"blockMappings": "bedrock/1.19.1",
"proto": "bedrock/1.19.1",
"types": "bedrock/1.19.1",
"version": "bedrock/1.19.1"
"version": "bedrock/1.19.1",
"language": "bedrock/1.19.1"
},
"1.19.10": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1500,7 +1511,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.10",
"types": "bedrock/1.19.10",
"version": "bedrock/1.19.10"
"version": "bedrock/1.19.10",
"language": "bedrock/1.19.10"
},
"1.19.20": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1522,7 +1534,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.20",
"types": "bedrock/1.19.20",
"version": "bedrock/1.19.20"
"version": "bedrock/1.19.20",
"language": "bedrock/1.19.20"
},
"1.19.21": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1544,7 +1557,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.21",
"types": "bedrock/1.19.21",
"version": "bedrock/1.19.21"
"version": "bedrock/1.19.21",
"language": "bedrock/1.19.20"
},
"1.19.30": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1566,7 +1580,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.30",
"types": "bedrock/1.19.30",
"version": "bedrock/1.19.30"
"version": "bedrock/1.19.30",
"language": "bedrock/1.19.30"
},
"1.19.40": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1588,7 +1603,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.40",
"types": "bedrock/1.19.40",
"version": "bedrock/1.19.40"
"version": "bedrock/1.19.40",
"language": "bedrock/1.19.40"
},
"1.19.50": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1610,7 +1626,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.50",
"types": "bedrock/1.19.50",
"version": "bedrock/1.19.50"
"version": "bedrock/1.19.50",
"language": "bedrock/1.19.50"
},
"1.19.60": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1632,7 +1649,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.60",
"types": "bedrock/1.19.60",
"version": "bedrock/1.19.60"
"version": "bedrock/1.19.60",
"language": "bedrock/1.19.60"
},
"1.19.62": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1654,7 +1672,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.62",
"types": "bedrock/1.19.62",
"version": "bedrock/1.19.62"
"version": "bedrock/1.19.62",
"language": "bedrock/1.19.60"
},
"1.19.63": {
"attributes": "bedrock/1.16.201",
Expand All @@ -1676,7 +1695,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.62",
"types": "bedrock/1.19.62",
"version": "bedrock/1.19.63"
"version": "bedrock/1.19.63",
"language": "bedrock/1.19.60"
},
"1.19.70": {
"blocks": "bedrock/1.19.1",
Expand All @@ -1697,7 +1717,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.70",
"types": "bedrock/1.19.70",
"version": "bedrock/1.19.70"
"version": "bedrock/1.19.70",
"language": "bedrock/1.19.70"
},
"1.19.80": {
"blocks": "bedrock/1.19.1",
Expand All @@ -1718,7 +1739,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.19.80",
"types": "bedrock/1.19.80",
"version": "bedrock/1.19.80"
"version": "bedrock/1.19.80",
"language": "bedrock/1.19.80"
},
"1.20.0": {
"blocks": "bedrock/1.19.1",
Expand All @@ -1739,7 +1761,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/1.20.0",
"types": "bedrock/1.20.0",
"version": "bedrock/1.20.0"
"version": "bedrock/1.20.0",
"language": "bedrock/1.20.0"
},
"1.20.10": {
"blocks": "bedrock/1.19.1",
Expand All @@ -1760,7 +1783,8 @@
"blocksJ2B": "bedrock/1.19.1",
"proto": "bedrock/latest",
"types": "bedrock/latest",
"version": "bedrock/1.20.10"
"version": "bedrock/1.20.10",
"language": "bedrock/1.20.10"
}
}
}
}
4 changes: 3 additions & 1 deletion doc/bedrock.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| blockStates.json | Contains the global block palette for a Minecraft version. <br>Contains all of the possible block states. <br><br><br>The index of a Block State instance here is the paletted ID, <br>which can be used to idenfify this block state<br>instead of a string. | [bedrock-extractor][1] ("BlockStates.json" file) | |
| steve.json | Skin data for clients connecting to BE servers, for default Steve character | [bedrock-protocol][2] (capture from proxy) | |
| blockMappings.json | Output of bedrock-extractor |
| language.json | Translation keys and their English string values. | [extract-minecraft-lang][3] (run for new version, then copy the JSON file to minecraft-data) | |

### Updating protocol data

Expand Down Expand Up @@ -40,7 +41,7 @@ windows.json | ✔ | manual obtained via proxy | &nbsp;
version.json | ✔ | from bedrock-protocol |
effects.json | ❌ | (from pc data) | &nbsp;
enchantments.json | ✔ | bedrock-extractor (via Geyser -> pc data) | &nbsp;
language.json | | (extract from game) | &nbsp;
language.json | | [extract-minecraft-lang][3] (extract from dedicated server) | &nbsp;
particles.json | 🔵 | bedrock-protocol docs | IDs not needed, handled in protocol
blockLoot.json | 🔵 | manual data for 1.18 | &nbsp;
entityLoot.json | 🔵 | manual data for 1.18 | &nbsp;
Expand All @@ -50,3 +51,4 @@ mapIcons.json | 🔵 | ? | ?

[1]: https://github.com/extremeheat/minecraft-data-extractor/tree/master/bedrock
[2]: https://github.com/PrismarineJS/bedrock-protocol
[3]: https://github.com/CreeperG16/extract-minecraft-lang
4 changes: 2 additions & 2 deletions schemas/language_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"type": "object",
"uniqueItems": true,
"patternProperties" : {
"^[a-zA-Z.0-9_-]+$": {
"^[a-zA-Z.:0-9_-]+$": {
"type": "string"
}
},
"additionalProperties": false
}
}

0 comments on commit d34a2f4

Please sign in to comment.