mirror of
https://github.com/MeowLynxSea/Proksea.git
synced 2025-07-09 10:54:40 +00:00
35 lines
1.2 KiB
Markdown
35 lines
1.2 KiB
Markdown
# node-minecraft-data
|
|
[](http://badge.fury.io/js/minecraft-data)
|
|
[](https://tonicdev.com/npm/minecraft-data)
|
|
[](https://github.com/PrismarineJS/node-minecraft-data/actions?query=workflow%3A%22CI%22)
|
|
[](https://gitpod.io/#https://github.com/PrismarineJS/node-minecraft-data)
|
|
|
|
node-minecraft-data provides easy access to [minecraft-data](https://github.com/PrismarineJS/minecraft-data) in node.js.
|
|
|
|
The objective of this module is to make easier to look for information in minecraft-data in node.
|
|
|
|
## Features
|
|
|
|
For example it's often useful to :
|
|
|
|
* find blocks by id
|
|
* find items by name
|
|
* find block or item by name
|
|
* find block or item by id
|
|
|
|
## Example
|
|
|
|
```js
|
|
const mcData=require("minecraft-data")("1.8.8")
|
|
|
|
console.log(mcData.blocksByName["stone"])
|
|
console.log(mcData.windows["minecraft:brewing_stand"])
|
|
console.log(mcData.version)
|
|
console.log(mcData.effectsByName["Haste"])
|
|
```
|
|
|
|
## Documentation
|
|
|
|
* See [doc/api.md](doc/api.md)
|
|
* See [doc/history.md](doc/history.md)
|