Files
minecraft-data/README.md
T
2015-08-01 19:07:51 +02:00

47 lines
3.0 KiB
Markdown

# minecraft-data
[![NPM version](https://badge.fury.io/js/minecraft-data.svg)](http://badge.fury.io/js/minecraft-data) [![Build Status](https://circleci.com/gh/PrismarineJS/minecraft-data.svg?style=shield)](https://circleci.com/gh/PrismarineJS/minecraft-data)
Language independent module providing minecraft data for minecraft clients, servers and libraries.
Support minecraft 1.8.3.
Minecraft-data is language independent, you can use it with these language specific modules :
* [node-minecraft-data](https://github.com/PrismarineJS/node-minecraft-data) provides indexes and look up functions in node.js
## Documentation
* See [doc/api.md](doc/api.md)
* See [doc/history.md](doc/history.md)
* [Documentation generated using the json schemas and docson](http://prismarinejs.github.io/minecraft-data/)
* [Textual documentation of the recipe format](doc/recipes.md)
## Extractors
Minecraft data provides a few extractors to update the data :
| Data file | Extractor | Source |
| --------- | --------- | ------ |
| [items](enums/items.json) | [item_extractor](bin/wiki_extractor/item_extractor.js) | minecraft wiki |
| [entities](enums/entities.json) | [entities_extractor](bin/wiki_extractor/entities_extractor.js) | minecraft wiki |
| [blocks](enums/blocks.json) | [blocks_extractor](bin/wiki_extractor/blocks_extractor.js) | minecraft wiki |
| [materials](enums/materials.json) | | manual : this file is very simple, it is there to make it easier to handle some edge cases |
| [instruments](enums/instruments.json) | | manual : data coming from [wiki.vg](http://wiki.vg/Block_Actions) |
| [recipes](enums/recipes.json) | [recipes_extractor](bin/wiki_extractor/recipes_extractor.js) | minecraft wiki |
| [items](enums/items.json), [blocks](enums/blocks.json), [biomes](enums/biomes.json) and [recipes](enums/recipes.json) | [generate_enums](bin/generate_enums.js) | burger.json file generated by https://github.com/mcdevs/Burger which is not up to date with minecraft 1.8 |
| [blocks](enums/blocks.json) | [blocks_extractor](bin/wiki_extractor/blocks_extractor.js) | minecraft wiki |
| [biomes](enums/biomes.json) | | manual : see https://github.com/andrewrk/mineflayer/pull/197 for more detail |
| [protocol](enums/protocol.json) | | manual but [protocol_extractor](bin/wiki_extrator/protocol_extractor.js) and [protocol_extractor](bin/decompiled_extractor/protocol_extractor.json) can be useful for updating it |
## Data quality
Minecraft data provides scripts to audit the data, they can be useful to check the data is correct :
* bin/audit_block_enum.js audits blocks.json : it checks for duplicates names and jumps in ids
* bin/audit_item_enum.js audits items.json : it checks for duplicates names and jumps in ids
* bin/audit_recipes.js audits recipes.json : it counts the number of recipes with a shape, without one and with an outShape
Minecraft data also provides json schemas in enums_schemas/ that are used in test/test.js to check the json file are valid relative to these schemas.
These schemas can also be used to understand better how the json files are formatted in order to use it.