LookAtMySuitBot/js/node_modules/minecraft-data
Brett 5f2b208d42 c++ setup 2023-12-24 20:08:39 -05:00
..
.github c++ setup 2023-12-24 20:08:39 -05:00
bin c++ setup 2023-12-24 20:08:39 -05:00
doc c++ setup 2023-12-24 20:08:39 -05:00
lib c++ setup 2023-12-24 20:08:39 -05:00
minecraft-data c++ setup 2023-12-24 20:08:39 -05:00
test c++ setup 2023-12-24 20:08:39 -05:00
typings c++ setup 2023-12-24 20:08:39 -05:00
.gitmodules c++ setup 2023-12-24 20:08:39 -05:00
.gitpod.yml c++ setup 2023-12-24 20:08:39 -05:00
README.md c++ setup 2023-12-24 20:08:39 -05:00
data.js c++ setup 2023-12-24 20:08:39 -05:00
example.js c++ setup 2023-12-24 20:08:39 -05:00
index.d.ts c++ setup 2023-12-24 20:08:39 -05:00
index.js c++ setup 2023-12-24 20:08:39 -05:00
package.json c++ setup 2023-12-24 20:08:39 -05:00
tsconfig.json c++ setup 2023-12-24 20:08:39 -05:00

README.md

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