Proksea/node_modules/minecraft-data
2024-07-05 00:09:37 +08:00
..
.github First commit :) 2024-07-05 00:09:37 +08:00
bin First commit :) 2024-07-05 00:09:37 +08:00
doc First commit :) 2024-07-05 00:09:37 +08:00
lib First commit :) 2024-07-05 00:09:37 +08:00
minecraft-data First commit :) 2024-07-05 00:09:37 +08:00
test First commit :) 2024-07-05 00:09:37 +08:00
typings First commit :) 2024-07-05 00:09:37 +08:00
.gitmodules First commit :) 2024-07-05 00:09:37 +08:00
.gitpod.yml First commit :) 2024-07-05 00:09:37 +08:00
data.js First commit :) 2024-07-05 00:09:37 +08:00
example.js First commit :) 2024-07-05 00:09:37 +08:00
index.d.ts First commit :) 2024-07-05 00:09:37 +08:00
index.js First commit :) 2024-07-05 00:09:37 +08:00
package.json First commit :) 2024-07-05 00:09:37 +08:00
README.md First commit :) 2024-07-05 00:09:37 +08:00
tsconfig.json First commit :) 2024-07-05 00:09:37 +08:00

node-minecraft-data

NPM version Tonic Build Status Try it on gitpod

node-minecraft-data provides easy access to minecraft-data in node.js.

The objective of this module is to make easier to look for information in minecraft-data in node.

Features

This package allows the lookup of blocks, items, entities, etc. by name, id, etc., and for the easy lookup of other data.

Example

const minecraftData = require('minecraft-data')
// or for es6: import minecraftData from 'minecraft-data';

const mcData = minecraftData('1.19')

console.log(mcData.blocksByName['stone']) // Information for "Stone"
console.log(mcData.windows['minecraft:brewing_stand']) // Information for the "Brewing Stand" GUI
console.log(mcData.version) // Information about the current version
console.log(mcData.effectsByName['Haste']) // Information for the "Haste" effect

Documentation