google-labs-jules[bot] e1ed9c4215 Add test for version comparison with and without dataVersion
This commit introduces a new test file `test/version_compare.js` to specifically test the version comparison logic, particularly for scenarios involving versions with and without `dataVersion`.

The test case covers the issue described in #399, ensuring that comparisons like `version['<=']('1.7.10')` and `version['<']('1.8')` work correctly for version 1.7.10.
2025-06-29 22:15:45 +00:00
2025-02-11 21:27:17 -05:00
2025-06-30 00:01:46 +02:00
2024-03-17 16:20:43 +01:00
2025-06-30 00:01:46 +02:00
2019-08-24 16:03:36 +00:00
2017-03-13 00:58:05 +01:00
2024-03-17 16:20:43 +01:00
2025-06-30 00:01:46 +02:00
2022-07-24 09:48:44 +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

S
Description
Provide easy access to minecraft-data in node.js
Readme
870 KiB
Languages
JavaScript 94.3%
TypeScript 5.7%