minecraft-data
TypeScript icon, indicating that this package has built-in type declarations

3.65.0 • Public • Published

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

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i minecraft-data

    Weekly Downloads

    7,752

    Version

    3.65.0

    License

    MIT

    Unpacked Size

    228 MB

    Total Files

    801

    Last publish

    Collaborators

    • rom1504