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 - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

bin/decompiled_extractor/protocol_extractor.js

4

bin/wiki_extractor/lib/wikitext_parser.js

@@ -6,6 +6,6 @@ var bot = require('nodemw');

function WikiTextParser()
function WikiTextParser(server)
{
this.client= new bot({
server: 'minecraft.gamepedia.com',
server: server ? server : 'minecraft.gamepedia.com',
path: '/',

@@ -12,0 +12,0 @@ debug: false

@@ -0,1 +1,5 @@

## 0.4.0
* add some basic (to be used for manual updating) protocol extractors
* import protocol.json from node-minecraft-protocol for version 1.8 of minecraft
## 0.3.0

@@ -2,0 +6,0 @@ * remove id indexing from biomes, blocks, entities, items and instruments : let users (for examples node-minecraft-data) provide their indexing (by id, name,...)

@@ -10,3 +10,2 @@ {

"description":"A single numerical ID or null."
},

@@ -13,0 +12,0 @@ "metadata": {"type":"integer"},

@@ -8,3 +8,4 @@ module.exports = {

materials: require('./enums/materials'),
entities: require('./enums/entities')
entities: require('./enums/entities'),
protocol: require('./enums/protocol')
};
{
"name": "minecraft-data",
"version": "0.3.0",
"version": "0.4.0",
"description": "provide minecraft data for minecraft clients, servers and libraries",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,11 +23,16 @@ # minecraft-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 file | Extractor | Source |
| --------- | --------- | ------ |
| [items](enums/items.json) | [item_extractor](bin/wiki_extractor/item_extractor.js) | minecraft wiki |
| [entities](enums/entities.json) | [entities_extractor](bin/wiki_extractor/entities_extractor.js) | minecraft wiki |
| [blocks](enums/blocks.json) | [blocks_extractor](bin/wiki_extractor/blocks_extractor.js) | minecraft wiki |
| [materials](enums/materials.json) | | manual : this file is very simple, it is there to make it easier to handle some edge cases |
| [instruments](enums/instruments.json) | | manual : data coming from [wiki.vg](http://wiki.vg/Block_Actions) |
| [recipes](enums/recipes.json) | [recipes_extractor](bin/wiki_extractor/recipes_extractor.js) | minecraft wiki |
| [items](enums/items.json), [blocks](enums/blocks.json), [biomes](enums/biomes.json) and [recipes](enums/recipes.json) | [generate_enums](bin/generate_enums.js) | burger.json file generated by https://github.com/mcdevs/Burger which is not up to date with minecraft 1.8 |
| [blocks](enums/blocks.json) | [blocks_extractor](bin/wiki_extractor/blocks_extractor.js) | minecraft wiki |
| [biomes](enums/biomes.json) | | manual : see https://github.com/andrewrk/mineflayer/pull/197 for more detail |
| [protocol](enums/protocol.json) | | manual but [protocol_extractor](bin/wiki_extrator/protocol_extractor.js) and [protocol_extractor](bin/decompiled_extractor/protocol_extractor.json) can be useful for updating it |
## Data quality

@@ -42,2 +47,2 @@

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.
These schemas can also be used to understand better how the json files are formatted in order to use it.

@@ -8,3 +8,3 @@ var assert = require('assert');

var enums=["biomes","instruments","items","materials","blocks","recipes","entities"];
var enums=["biomes","instruments","items","materials","blocks","recipes","entities","protocol"];

@@ -11,0 +11,0 @@ describe("minecraft-data", function() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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