This commit is contained in:
GordonDaFreeman 2018-01-15 18:22:13 +01:00
parent b7bae1bb0f
commit cf6cf697a4
21 changed files with 26 additions and 10256 deletions

10253
js/jquery.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,11 @@ itemsRequest.send()
function loadHTML() { function loadHTML() {
$("#itemtoadd").empty() $("#itemtoadd").empty()
for (var i = 0; i < allItemsArray.length; i++) { for (var i = 0; i < allItemsArray.length; i++) {
$("#itemtoadd").append("<option value=\""+allItemsArray[i].id+"\">" + allItemsArray[i].name + "</option>") if (!('disabled' in allItemsArray[i])){
$("#itemtoadd").append("<option value=\""+allItemsArray[i].id+"\">" + allItemsArray[i].name + "</option>")
} else {
console.log(allItemsArray[i].name+" disabled. Not loading")
}
} }
} }
@ -50,9 +54,9 @@ function loadJSON(itemname) {
itemRequest.send() itemRequest.send()
} }
function getItemFromId(id){ function getItemFromId(index){
for(var i=0;i<allItemsArray.length;i++){ for(var i=0;i<allItemsArray.length;i++){
if(allItemsArray[i].id == id) if(allItemsArray[i].id == index)
return allItemsArray[i] return allItemsArray[i]
} }
return null return null

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["blaze_rod"] "crafting": ["blaze_rod"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond"] "crafting": ["diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["emerald", "emerald", "emerald", "emerald", "emerald", "emerald", "emerald", "emerald", "emerald"] "crafting": ["emerald", "emerald", "emerald", "emerald", "emerald", "emerald", "emerald", "emerald", "emerald"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot"] "crafting": ["iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot", "iron_ingot"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["redstone", "redstone", "redstone", "redstone", "redstone", "redstone", "redstone", "redstone", "redstone"] "crafting": ["redstone", "redstone", "redstone", "redstone", "redstone", "redstone", "redstone", "redstone", "redstone"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["string", "string", "string", "stick", "stick", "stick"] "crafting": ["string", "string", "string", "stick", "stick", "stick"]
} }

View File

@ -1,4 +1,5 @@
{ {
"disabled": true,
"name": "Diamond Axe", "name": "Diamond Axe",
"crafting": ["diamond", "diamond", "diamond", "stick", "stick"] "crafting": ["diamond", "diamond", "diamond", "stick", "stick"]
} }

View File

@ -1,4 +1,5 @@
{ {
"disabled": true,
"name": "Diamond Boots", "name": "Diamond Boots",
"crafting":[ "crafting":[
"diamond", "diamond",

View File

@ -1,4 +1,5 @@
{ {
"disabled": true,
"name": "Diamond Chestplate", "name": "Diamond Chestplate",
"crafting": ["diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond"] "crafting": ["diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond"]
} }

View File

@ -1,4 +1,5 @@
{ {
"disabled": true,
"name": "Diamond Helmet", "name": "Diamond Helmet",
"crafting": ["diamond", "diamond", "diamond", "diamond", "diamond"] "crafting": ["diamond", "diamond", "diamond", "diamond", "diamond"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["diamond", "diamond", "stick", "stick"] "crafting": ["diamond", "diamond", "stick", "stick"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond" ] "crafting": ["diamond", "diamond", "diamond", "diamond", "diamond", "diamond", "diamond" ]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["diamond", "diamond", "diamond", "stick", "stick"] "crafting": ["diamond", "diamond", "diamond", "stick", "stick"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["diamond", "stick", "stick"] "crafting": ["diamond", "stick", "stick"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["diamond", "diamond", "stick"] "crafting": ["diamond", "diamond", "stick"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["ender_pearl", "blaze_powder"] "crafting": ["ender_pearl", "blaze_powder"]
} }

View File

@ -1,4 +1,5 @@
{ {
"disabled": true,
"count": 16, "count": 16,
"crafting": ["glass", "glass", "glass", "glass", "glass", "glass"] "crafting": ["glass", "glass", "glass", "glass", "glass", "glass"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["apple", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot"] "crafting": ["apple", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot", "gold_ingot"]
} }

View File

@ -1,3 +1,4 @@
{ {
"disabled": true,
"crafting": ["wither_skeleton_skull", "wither_skeleton_skull", "wither_skeleton_skull", "soul_sand", "soul_sand", "soul_sand", "soul_sand"] "crafting": ["wither_skeleton_skull", "wither_skeleton_skull", "wither_skeleton_skull", "soul_sand", "soul_sand", "soul_sand", "soul_sand"]
} }