@wp2508/minecraft-data
v3.111.6
Published
Provide easy access to minecraft data in node.js
Readme
node-minecraft-data
Fork (wupengabc): adds Minecraft 26.3 (protocol 777) support. Published to npm as
@wp2508/minecraft-data— install withnpm install @wp2508/minecraft-dataandrequire('@wp2508/minecraft-data'). Upstream: PrismarineJS/node-minecraft-data.
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('@wp2508/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" effectDocumentation
- See doc/api.md
- See doc/history.md
