ekaii fork: vendored prismarine-data-ekaii for 26.1.2
  • JavaScript 99.5%
  • TypeScript 0.5%
Find a file
2026-05-24 04:34:45 +02:00
.github Update CI to Node 24 (#445) 2026-03-29 16:55:34 -07:00
bin remove pathToFileURL that doesn't exist in url polyfill 2021-08-22 14:56:53 +00:00
doc Release 3.110.2 (#456) 2026-05-13 02:34:38 -04:00
lib Add access to sounds (#336) 2024-03-17 16:20:43 +01:00
minecraft-data fix proto path + commit generated data.js 2026-05-24 04:34:35 +02:00
test Add version comparison tests for pc 1.7.10 (#401) 2025-06-30 00:17:15 +02:00
typings types: do not make properties of the block optional (#358) 2024-09-08 00:46:44 -04:00
.gitignore Non-exclusively prefer release versions over snapshots (#105) 2021-08-07 01:27:08 +02:00
.gitpod.yml add gitpod 2019-08-24 16:03:36 +00:00
.npmignore add npmignore (for data.js) 2017-03-13 00:58:05 +01:00
.npmrc add npmrc that disable package-lock.json creation 2020-10-25 15:34:33 +00:00
data.js vendor generated data.js (overrides .gitignore for tarball installs) 2026-05-24 04:34:45 +02:00
example.js Add access to sounds (#336) 2024-03-17 16:20:43 +01:00
index.js Add legacy bedrock block mappings (#303) 2023-08-19 15:34:20 -04:00
package.json Release 3.110.2 (#456) 2026-05-13 02:34:38 -04:00
README.md Fix README example (#226) 2022-07-24 09:48:44 +02:00
tsconfig.json fix strict null types & object type (#348) 2024-07-13 23:05:53 +02: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