minecraft-data
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -1,2 +0,2 @@ | ||
var loader=require("./loader"); | ||
var loader=require("./lib/loader"); | ||
@@ -17,2 +17,3 @@ module.exports = function(version) | ||
biomes: require('./minecraft-data/data/1.8/biomes'), | ||
effects: require('./minecraft-data/data/1.8/effects'), | ||
items: require('./minecraft-data/data/1.8/items'), | ||
@@ -30,2 +31,3 @@ recipes: require('./minecraft-data/data/1.8/recipes'), | ||
biomes: require('./minecraft-data/data/1.9/biomes'), | ||
effects: require('./minecraft-data/data/1.9/effects'), | ||
items: require('./minecraft-data/data/1.9/items'), | ||
@@ -32,0 +34,0 @@ recipes: require('./minecraft-data/data/1.9/recipes'), |
@@ -121,1 +121,15 @@ # API | ||
the major version (example : 1.8), also the name of the minecraft-data version | ||
## Effects | ||
### minecraft-data.effects | ||
effects indexed by id | ||
### minecraft-data.effectsByName | ||
effects indexed by name | ||
### minecraft-data.effectsArray | ||
unindexed effects |
@@ -0,1 +1,4 @@ | ||
## 0.16.0 | ||
* add effects | ||
## 0.15.0 | ||
@@ -2,0 +5,0 @@ * make node-minecraft-data browserify compatible |
@@ -7,2 +7,4 @@ var mcData=require("./")("1.8.8"); | ||
console.log(mcData.version); | ||
console.log(mcData.version); | ||
console.log(mcData.effectsByName["Haste"]); |
@@ -1,2 +0,2 @@ | ||
var loader=require("./loader"); | ||
var loader=require("./lib/loader"); | ||
@@ -14,2 +14,3 @@ module.exports = function(version) | ||
biomes: require(dir+'/biomes'), | ||
effects: require(dir+'/effects'), | ||
items: require(dir+'/items'), | ||
@@ -16,0 +17,0 @@ recipes: require(dir+'/recipes'), |
@@ -1207,3 +1207,3 @@ [ | ||
{ | ||
"id": 426, | ||
"id": 427, | ||
"displayName": "Spruce Door", | ||
@@ -1214,3 +1214,3 @@ "stackSize": 64, | ||
{ | ||
"id": 427, | ||
"id": 428, | ||
"displayName": "Birch Door", | ||
@@ -1221,3 +1221,3 @@ "stackSize": 64, | ||
{ | ||
"id": 428, | ||
"id": 429, | ||
"displayName": "Jungle Door", | ||
@@ -1228,3 +1228,3 @@ "stackSize": 64, | ||
{ | ||
"id": 429, | ||
"id": 430, | ||
"displayName": "Acacia Door", | ||
@@ -1235,3 +1235,3 @@ "stackSize": 64, | ||
{ | ||
"id": 430, | ||
"id": 431, | ||
"displayName": "Dark Oak Door", | ||
@@ -1238,0 +1238,0 @@ "stackSize": 64, |
@@ -1207,3 +1207,3 @@ [ | ||
{ | ||
"id": 426, | ||
"id": 427, | ||
"displayName": "Spruce Door", | ||
@@ -1214,3 +1214,3 @@ "stackSize": 64, | ||
{ | ||
"id": 427, | ||
"id": 428, | ||
"displayName": "Birch Door", | ||
@@ -1221,3 +1221,3 @@ "stackSize": 64, | ||
{ | ||
"id": 428, | ||
"id": 429, | ||
"displayName": "Jungle Door", | ||
@@ -1228,3 +1228,3 @@ "stackSize": 64, | ||
{ | ||
"id": 429, | ||
"id": 430, | ||
"displayName": "Acacia Door", | ||
@@ -1235,3 +1235,3 @@ "stackSize": 64, | ||
{ | ||
"id": 430, | ||
"id": 431, | ||
"displayName": "Dark Oak Door", | ||
@@ -1242,2 +1242,104 @@ "stackSize": 64, | ||
{ | ||
"id": 432, | ||
"displayName": "Chorus Fruit", | ||
"stackSize": 64, | ||
"name": "chorus_fruit" | ||
}, | ||
{ | ||
"id": 433, | ||
"displayName": "Popped Chorus Fruit", | ||
"stackSize": 64, | ||
"name": "popped_chorus_fruit" | ||
}, | ||
{ | ||
"id": 434, | ||
"displayName": "Beetroot", | ||
"stackSize": 64, | ||
"name": "beetroot" | ||
}, | ||
{ | ||
"id": 435, | ||
"displayName": "Beetroot Seeds", | ||
"stackSize": 64, | ||
"name": "beetroot_seeds" | ||
}, | ||
{ | ||
"id": 436, | ||
"displayName": "Beetroot Soup", | ||
"stackSize": 1, | ||
"name": "beetroot_soup" | ||
}, | ||
{ | ||
"id": 437, | ||
"displayName": "Dragon's Breath", | ||
"stackSize": 64, | ||
"name": "dragon's_breath" | ||
}, | ||
{ | ||
"id": 438, | ||
"displayName": "Splash Potion", | ||
"stackSize": 1, | ||
"name": "splash_potion" | ||
}, | ||
{ | ||
"id": 439, | ||
"displayName": "Spectral Arrow", | ||
"stackSize": 64, | ||
"name": "spectral_arrow" | ||
}, | ||
{ | ||
"id": 440, | ||
"displayName": "Tipped Arrow", | ||
"stackSize": 64, | ||
"name": "tipped_arrow" | ||
}, | ||
{ | ||
"id": 441, | ||
"displayName": "Lingering Potion", | ||
"stackSize": 1, | ||
"name": "lingering_potion" | ||
}, | ||
{ | ||
"id": 442, | ||
"displayName": "Shield", | ||
"stackSize": 1, | ||
"name": "shield" | ||
}, | ||
{ | ||
"id": 443, | ||
"displayName": "Elytra", | ||
"stackSize": 1, | ||
"name": "elytra" | ||
}, | ||
{ | ||
"id": 444, | ||
"displayName": "Spruce Boat", | ||
"stackSize": 1, | ||
"name": "spruce_boat" | ||
}, | ||
{ | ||
"id": 445, | ||
"displayName": "Birch Boat", | ||
"stackSize": 1, | ||
"name": "birch_boat" | ||
}, | ||
{ | ||
"id": 446, | ||
"displayName": "Jungle Boat", | ||
"stackSize": 1, | ||
"name": "jungle_boat" | ||
}, | ||
{ | ||
"id": 447, | ||
"displayName": "Acacia Boat", | ||
"stackSize": 1, | ||
"name": "acacia_boat" | ||
}, | ||
{ | ||
"id": 448, | ||
"displayName": "Dark Oak Boat", | ||
"stackSize": 1, | ||
"name": "dark_oak_boat" | ||
}, | ||
{ | ||
"id": 2256, | ||
@@ -1244,0 +1346,0 @@ "displayName": "13 Disc", |
@@ -9,6 +9,4 @@ # Making a new wrapper | ||
* create a git repo | ||
* add the branches submodules in your repo : | ||
* mkdir minecraft-data | ||
* git submodule add -b 1.8 https://github.com/PrismarineJS/minecraft-data.git minecraft-data/1.8 | ||
* git submodule add -b 1.9 https://github.com/PrismarineJS/minecraft-data.git minecraft-data/1.9 | ||
* add minecraft-data as a submodule : | ||
`git submodule add https://github.com/PrismarineJS/minecraft-data.git` | ||
* add code in your language to read the json files | ||
@@ -15,0 +13,0 @@ * add some code to index the data by name, by id to provide an api like |
@@ -30,2 +30,3 @@ # minecraft-data | ||
| Blocks | | | ||
| Effect | Status/Potion effects | | ||
| Entities | | | ||
@@ -59,3 +60,3 @@ | Instruments | sounds emitted by blocks | | ||
| [SpockBot](https://github.com/SpockBotMC/SpockBot) | Python | bot library | biomes, blocks, items, materials, windows, recipes | | ||
| [PhaseBot](https://github.com/phase/PhaseBot) | Java | bot | blocks, items | | ||
| [PhaseBot](https://github.com/phase/PhaseBot) | Java | bot | blocks, items, materials | | ||
@@ -71,2 +72,3 @@ ## Extraction | ||
| [minecraft-jar-extractor](https://github.com/PrismarineJS/minecraft-jar-extractor) | Node.js | minecraft server jar | a very partial but completely up to date protocol | | ||
| [minecraft-jar-extractor in python](https://github.com/pangeacake/minecraft-jar-extractor) | Python | minecraft server jar | about the same protocol information as minecraft-jar-extractor in node.js | | ||
| [burger](https://github.com/mcdevs/Burger) with [generate_enums](tools/js/burger_extractor/generate_enums.js) | Node.js | minecraft server jar | used to provide items, blocks, biomes and recipes | | ||
@@ -81,2 +83,3 @@ | ||
| [a mineflayer PR](https://github.com/andrewrk/mineflayer/pull/197) | biomes | | ||
| [mcwiki effects page](http://minecraft.gamepedia.com/Status_effect) | effects | | ||
@@ -83,0 +86,0 @@ ## Data quality |
@@ -8,3 +8,3 @@ var assert = require('assert'); | ||
var data=["biomes","instruments","items","materials","blocks","recipes","windows","entities","protocol","version"]; | ||
var data=["biomes","instruments","items","materials","blocks","recipes","windows","entities","protocol","version","effects"]; | ||
@@ -11,0 +11,0 @@ var versions=require("../../../data/common/versions"); |
{ | ||
"name": "minecraft-data", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "Provide easy access to minecraft data in node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1327048
67
76266
17