Socket
Socket
Sign inDemoInstall

minecraft-data

Package Overview
Dependencies
Maintainers
1
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minecraft-data

provide minecraft data for minecraft clients, servers and libraries


Version published
Weekly downloads
15K
increased by26.43%
Maintainers
1
Weekly downloads
 
Created
Source

minecraft-data

NPM version Build Status

Provide minecraft data for minecraft clients, servers and libraries.

Support minecraft 1.8.3.

Documentation

Extractors

Minecraft data provides a few extractors to update the data :

  • bin/wiki_extractor/item_extractor.js extracts items.json from the minecraft wiki
  • bin/wiki_extractor/entities_extractor.js extracts entities.json from the minecraft wiki
  • bin/wiki_extractor/blocks_extractor.js extracts blocks.json from the minecraft wiki
  • manual filling of materials.json : this file is very simple, it is there to make it easier to handle some edge cases
  • manual filling of instruments.json : data coming from http://wiki.vg/Block_Actions
  • bin/wiki_extractor/recipes_extractor.js extracts recipes.json from the minecraft wiki
  • bin/generate_enums.js is a script to generate the item, block, biome and recipe enums using a burger.json file generated by https://github.com/mcdevs/Burger which is not up to date with minecraft 1.8
  • manual filling of biomes.json : see https://github.com/andrewrk/mineflayer/pull/197 for more detail

Data quality

Minecraft data provides scripts to audit the data, they can be useful to check the data is correct :

  • bin/audit_block_enum.js audits blocks.json : it checks for duplicates names and jumps in ids
  • bin/audit_item_enum.js audits items.json : it checks for duplicates names and jumps in ids
  • bin/audit_recipes.js audits recipes.json : it counts the number of recipes with a shape, without one and with an outShape

Minecraft data also provides json schemas in enums_schemas/ that are used in test/test.js to check the json file are valid relative to these schemas. These schemas can also be used to understand better how the json files are formatted in order to use it.

FAQs

Package last updated on 03 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc