<?php if(!defined('DEFINE_INDEX_FILE')){if(headers_sent()){echo '<header><meta http-equiv="refresh" content="0;url=../"></header>';}else{header('HTTP/1.0 301 Moved Permanently'); header('Location: ../');} die("<font size=+2>Access Denied!!</font>");}
// default item definitions

ItemFuncs::$Items=array(
  1=>array(
    'name'=>'Stone',
    'icon'=>'Stone.png'),
  2=>array(
    'name'=>'Grass',
    'icon'=>'Grass.png'),
  3=>array(
    'name'=>'Dirt',
    'icon'=>'Dirt.png'),
  4=>array(
    'name'=>'Cobblestone',
    'icon'=>'Cobblestone.png'),
  5=>array(
    0 =>array(
      'name'=>'Wooden Plank (Oak)',
      'icon'=>'Wooden_Plank_Oak.png'),
    1 =>array(
      'name'=>'Wooden Plank (Pine)',
      'icon'=>'Wooden_Plank_Pine.png'),
    2 =>array(
      'name'=>'Wooden Plank (Birch)',
      'icon'=>'Wooden_Plank_Birch.png'),
    3 =>array(
      'name'=>'Wooden Plank (Jungle)',
      'icon'=>'Wooden_Plank_Jungle.png'),
    -1=>array(
      'name'=>'Wooden Plank',
      'icon'=>'Wooden_Plank.png'),
  ),
  6=>array(
    0 =>array(
      'name'=>'Oak Sapling',
      'icon'=>'Sapling_Oak.png'),
    1 =>array(
      'name'=>'Pine Sapling',
      'icon'=>'Sapling_Pine.png'),
    2 =>array(
      'name'=>'Birch Sapling',
      'icon'=>'Sapling_Birch.png'),
    3 =>array(
      'name'=>'Jungle Sapling',
      'icon'=>'Sapling_Jungle.png'),
    -1=>array(
      'name'=>'Sapling',
      'icon'=>'Sapling.png'),
  ),
  7=>array(
    'name'=>'Bedrock',
    'icon'=>'Bedrock.png'),
  8=>array(
    'name'=>'Water',
    'icon'=>'Water.png'),
  9=>array(
    'name'=>'Stationary Water',
    'icon'=>'Water.png'),
  10=>array(
    'name'=>'Lava',
    'icon'=>'Lava.png'),
  11=>array(
    'name'=>'Stationary Lava',
    'icon'=>'Lava.png'),
  12=>array(
    'name'=>'Sand',
    'icon'=>'Sand.png'),
  13=>array(
    'name'=>'Gravel',
    'icon'=>'Gravel.png'),
  14=>array(
    'name'=>'Gold Ore',
    'icon'=>'Gold_Ore.png'),
  15=>array(
    'name'=>'Iron Ore',
    'icon'=>'Iron_Ore.png'),
  16=>array(
    'name'=>'Coal Ore',
    'icon'=>'Coal_Ore.png'),
  17=>array(
    0 =>array(
      'name'=>'Oak Log',
      'icon'=>'Log_Oak.png'),
    1 =>array(
      'name'=>'Pine Log',
      'icon'=>'Log_Pine.png'),
    2 =>array(
      'name'=>'Birch Log',
      'icon'=>'Log_Birch.png'),
    3 =>array(
      'name'=>'Jungle Log',
      'icon'=>'Log_Jungle.png'),
    -1=>array(
      'name'=>'Log',
      'icon'=>'Log.png'),
  ),
  18=>array(
    0 =>array(
      'name'=>'Oak Leaves',
      'icon'=>'Leaves_Oak.png'),
    4 =>array(
      'name'=>'Oak Leaves',
      'icon'=>'Leaves_Oak.png'),
    1 =>array(
      'name'=>'Pine Leaves',
      'icon'=>'Leaves_Pine.png'),
    5 =>array(
      'name'=>'Pine Leaves',
      'icon'=>'Leaves_Pine.png'),
    2 =>array(
      'name'=>'Birch Leaves',
      'icon'=>'Leaves_Birch.png'),
    6 =>array(
      'name'=>'Birch Leaves',
      'icon'=>'Leaves_Birch.png'),
    3 =>array(
      'name'=>'Jungle Leaves',
      'icon'=>'Leaves_Jungle.png'),
    7 =>array(
      'name'=>'Jungle Leaves',
      'icon'=>'Leaves_Jungle.png'),
    -1=>array(
      'name'=>'Leaves',
      'icon'=>'Leaves.png'),
  ),
  19=>array(
    'name'=>'Sponge',
    'icon'=>'Sponge.png'),
  20=>array(
    'name'=>'Glass',
    'icon'=>'Glass.png'),
  21=>array(
    'name'=>'Lapis Lazuli Ore',
    'icon'=>'Lapis_Lazuli_Ore.png'),
  22=>array(
    'name'=>'Lapis Lazuli Block',
    'icon'=>'Lapis_Lazuli_Block.png'),
  23=>array(
    'name'=>'Dispenser',
    'icon'=>'Dispenser.png'),
  24=>array(
    0 =>array(
      'name'=>'Sandstone',
      'icon'=>'Sandstone.png'),
    1 =>array(
      'name'=>'Decorative Sandstone',
      'icon'=>'Sandstone_Decorative.png'),
    2 =>array(
      'name'=>'Smooth Sandstone',
      'icon'=>'Sandstone_Smooth.png'),
    -1=>array(
      'name'=>'Sandstone',
      'icon'=>'Sandstone.png'),
  ),
  25=>array(
    'name'=>'Note Block',
    'icon'=>'Note_Block.png'),
  26=>array(
    'name'=>'Bed Block',
    'icon'=>'Bed.png'),
  27=>array(
    'name'=>'Powered Rail',
    'icon'=>'Rail_Powered.png'),
  28=>array(
    'name'=>'Detector Rail',
    'icon'=>'Rail_Detector.png'),
  29=>array(
    'name'=>'Sticky Piston',
    'icon'=>'Sticky_Piston.png'),
  30=>array(
    'name'=>'Web',
    'icon'=>'Cobweb.png'),
  31=>array(
    0 =>array(
      'name'=>'Dead Shrub',
      'icon'=>'Tall_Grass1.png'),
    1 =>array(
      'name'=>'Tall Grass',
      'icon'=>'Tall_Grass2.png'),
    2 =>array(
      'name'=>'Live Shrub',
      'icon'=>'Tall_Grass3.png'),
    -1=>array(
      'name'=>'Unknown Shrub',
      'icon'=>'Tall_Grass1.png'),
  ),
  32=>array(
    'name'=>'Dead Shrub',
    'icon'=>'Dead_Bush.png'),
  33=>array(
    'name'=>'Piston',
    'icon'=>'Piston.png'),
  34=>array(
    0 =>array(
      'name'=>'Piston',
      'icon'=>'Piston.png'),
    1 =>array(
      'name'=>'Sticky_Piston',
      'icon'=>'Sticky_Piston.png'),
    -1=>array(
      'name'=>'Piston Head',
      'icon'=>'Piston.png'),
  ),
  35=>array(
    0 =>array(
      'name'=>'White Wool',
      'icon'=>'Wool_White.png'),
    1 =>array(
      'name'=>'Orange Wool',
      'icon'=>'Wool_Orange.png'),
    2 =>array(
      'name'=>'Magenta Wool',
      'icon'=>'Wool_Magenta.png'),
    3 =>array(
      'name'=>'Light Blue Wool',
      'icon'=>'Wool_Light_Blue.png'),
    4 =>array(
      'name'=>'Yellow Wool',
      'icon'=>'Wool_Yellow.png'),
    5 =>array(
      'name'=>'Light Green Wool',
      'icon'=>'Wool_Lime.png'),
    6 =>array(
      'name'=>'Pink Wool',
      'icon'=>'Wool_Pink.png'),
    7 =>array(
      'name'=>'Grey Wool',
      'icon'=>'Wool_Gray.png'),
    8 =>array(
      'name'=>'Light Grey Wool',
      'icon'=>'Wool_Light_Gray.png'),
    9 =>array(
      'name'=>'Cyan Wool',
      'icon'=>'Wool_Cyan.png'),
    10=>array(
      'name'=>'Purple Wool',
      'icon'=>'Wool_Purple.png'),
    11=>array(
      'name'=>'Blue Wool',
      'icon'=>'Wool_Blue.png'),
    12=>array(
      'name'=>'Brown Wool',
      'icon'=>'Wool_Brown.png'),
    13=>array(
      'name'=>'Dark Green Wool',
      'icon'=>'Wool_Green.png'),
    14=>array(
      'name'=>'Red Wool',
      'icon'=>'Wool_Red.png'),
    15=>array(
      'name'=>'Black Wool',
      'icon'=>'Wool_Black.png'),
    -1=>array(
      'name'=>'Unknown Wool',
      'icon'=>'Wool_White.png'),
  ),
  37=>array(
    'name'=>'Dandelion',
    'icon'=>'Dandelion.png'),
  38=>array(
    'name'=>'Rose',
    'icon'=>'Rose.png'),
  39=>array(
    'name'=>'Brown Mushroom',
    'icon'=>'Mushroom_Brown.png'),
  40=>array(
    'name'=>'Red Mushroom',
    'icon'=>'Mushroom_Red.png'),
  41=>array(
    'name'=>'Gold Block',
    'icon'=>'Gold_Block.png'),
  42=>array(
    'name'=>'Iron Block',
    'icon'=>'Iron_Block.png'),
  // subitems 1, 2, and 3 not supported by minecraft
  43=>array(
    0 =>array(
      'name'=>'Double Stone Slab',
      'icon'=>'Slab_Double_Stone.png'),
    1 =>array(
      'name'=>'Double Sandstone Slab',
      'icon'=>'Sandstone.png'),
    2 =>array(
      'name'=>'Double Wooden Slab',
      'icon'=>'Wood.png'),
    3 =>array(
      'name'=>'Double Cobblestone Slab',
      'icon'=>'Cobblestone.png'),
    -1=>array(
      'name'=>'Unknown Double Slab',
      'icon'=>'Slab_Double_Stone.png'),
  ),
  44=>array(
    0 =>array(
      'name'=>'Stone Slab',
      'icon'=>'Slab_Stone.png'),
    1 =>array(
      'name'=>'Sandstone Slab',
      'icon'=>'Slab_Sandstone.png'),
    2 =>array(
      'name'=>'Wooden Slab',
      'icon'=>'Slab_Wood.png'),
    3 =>array(
      'name'=>'Cobblestone Slab',
      'icon'=>'Slab_Cobblestone.png'),
    -1=>array(
      'name'=>'Unknown Slab',
      'icon'=>'Slab_Stone.png'),
  ),
  45=>array(
    'name'=>'Brick Block',
    'icon'=>'Brick_Block.png'),
  46=>array(
    'name'=>'TNT',
    'icon'=>'TNT.png'),
  47=>array(
    'name'=>'Bookshelf',
    'icon'=>'Bookshelf.png'),
  48=>array(
    'name'=>'Mossy Cobblestone',
    'icon'=>'Cobblestone_Moss.png'),
  49=>array(
    'name'=>'Obsidian',
    'icon'=>'Obsidian.png'),
  50=>array(
    'name'=>'Torch',
    'icon'=>'Torch.png'),
  51=>array(
    'name'=>'Fire',
    'icon'=>'Fire.png'),
  52=>array(
    50=>array(
      'name'=>'Creeper Spawner',
      'icon'=>'Spawner_Creeper.png'),
    51=>array(
      'name'=>'Skeleton Spawner',
      'icon'=>'Spawner_Skeleton.png'),
    52=>array(
      'name'=>'Spider Spawner',
      'icon'=>'Spawner_Spider.png'),
    53=>array(
      'name'=>'Giant Spawner',
      'icon'=>'Spawner_Giant.png'),
    54=>array(
      'name'=>'Zombie Spawner',
      'icon'=>'Spawner_Zombie.png'),
    55=>array(
      'name'=>'Slime Spawner',
      'icon'=>'Spawner_Slime.png'),
    56=>array(
      'name'=>'Ghast Spawner',
      'icon'=>'Spawner_Ghast.png'),
    57=>array(
      'name'=>'Zombie Pigman Spawner',
      'icon'=>'Spawner_Zombie_Pigman.png'),
    58=>array(
      'name'=>'Enderman Spawner',
      'icon'=>'Spawner_Enderman.png'),
    59=>array(
      'name'=>'Cave Spider Spawner',
      'icon'=>'Spawner_Cave_Spider.png'),
    60=>array(
      'name'=>'Silverfish Spawner',
      'icon'=>'Spawner_Silverfish.png'),
    61=>array(
      'name'=>'Blaze Spawner',
      'icon'=>'Spawner_Blaze.png'),
    62=>array(
      'name'=>'Magma Cube Spawner',
      'icon'=>'Spawner_Magma_Cube.png'),
    90=>array(
      'name'=>'Pig Spawner',
      'icon'=>'Spawner_Pig.png'),
    91=>array(
      'name'=>'Sheep Spawner',
      'icon'=>'Spawner_Sheep.png'),
    92=>array(
      'name'=>'Cow Spawner',
      'icon'=>'Spawner_Cow.png'),
    93=>array(
      'name'=>'Chicken Spawner',
      'icon'=>'Spawner_Chicken.png'),
    94=>array(
      'name'=>'Squid Spawner',
      'icon'=>'Spawner_Squid.png'),
    95=>array(
      'name'=>'Wolf Spawner',
      'icon'=>'Spawner_Wolf.png'),
    96=>array(
      'name'=>'Mooshroom Spawner',
      'icon'=>'Spawner_Mooshroom.png'),
    97=>array(
      'name'=>'Snowman Spawner',
      'icon'=>'Spawner_Snowman.png'),
   120=>array(
      'name'=>'Villager Spawner',
      'icon'=>'Spawner_Villager.png'),
    -1=>array(
      'name'=>'Monster Spawner',
      'icon'=>'Spawner_Monster.png'),
  ),
  53=>array(
    'name'=>'Wooden Stairs',
    'icon'=>'Stairs_Wooden.png'),
  54=>array(
    'name'=>'Chest',
    'icon'=>'Chest.png'),
  55=>array(
    'name'=>'Redstone Wire',
    'icon'=>'Redstone_Dust.png'),
  56=>array(
    'name'=>'Diamond Ore',
    'icon'=>'Diamond_Ore.png'),
  57=>array(
    'name'=>'Diamond Block',
    'icon'=>'Diamond_Block.png'),
  58=>array(
    'name'=>'Workbench',
    'icon'=>'Crafting_Table.png'),
  // TODO=> add crop picture(s)
  59=>array(
    'name'=>'Crops',
    'icon'=>'Crops'),
  60=>array(
    'name'=>'Soil',
    'icon'=>'Farmland.png'),
  61=>array(
    'name'=>'Furnace',
    'icon'=>'Furnace.png'),
  62=>array(
    'name'=>'Burning Furnace',
    'icon'=>'Furnace.png'),
  63=>array(
    'name'=>'Sign Post',
    'icon'=>'Sign.png',
    'stack'=>1),
  64=>array(
    'name'=>'Wooden Door Block',
    'icon'=>'Door_Wood.png',
    'stack'=>1),
  65=>array(
    'name'=>'Ladder',
    'icon'=>'Ladder.png'),
  66=>array(
    'name'=>'Rail',
    'icon'=>'Rails.png'),
  67=>array(
    'name'=>'Cobblestone Stairs',
    'icon'=>'Stairs_Cobblestone.png'),
  68=>array(
    'name'=>'Wall Sign',
    'icon'=>'Sign.png',
    'stack'=>1),
  69=>array(
    'name'=>'Lever',
    'icon'=>'Lever.png'),
  70=>array(
    'name'=>'Stone Pressure Plate',
    'icon'=>'Pressure_Plate_Stone.png'),
  71=>array(
    'name'=>'Iron Door Block',
    'icon'=>'Door_Iron.png',
    'stack'=>1),
  72=>array(
    'name'=>'Wooden Pressure Plate',
    'icon'=>'Pressure_Plate_Wood.png'),
  73=>array(
    'name'=>'Redstone Ore',
    'icon'=>'Redstone_Ore.png'),
  74=>array(
    'name'=>'Glowing Redstone Ore',
    'icon'=>'Redstone_Ore.png'),
  75=>array(
    'name'=>'Redstone Torch',
    'icon'=>'Redstone_Torch.png'),
  76=>array(
    'name'=>'Redstone Torch',
    'icon'=>'Redstone_Torch.png'),
  77=>array(
    'name'=>'Stone Button',
    'icon'=>'Stone_Button.png'),
  78=>array(
    'name'=>'Snow',
    'icon'=>'Snow_Block.png'),
  79=>array(
    'name'=>'Ice',
    'icon'=>'Ice.png'),
  80=>array(
    'name'=>'Snow Block',
    'icon'=>'Snow_Block.png'),
  81=>array(
    'name'=>'Cactus',
    'icon'=>'Cactus.png'),
  82=>array(
    'name'=>'Clay',
    'icon'=>'Clay_Block.png'),
  83=>array(
    'name'=>'Sugar Cane',
    'icon'=>'Sugar_Cane.png'),
  84=>array(
    'name'=>'Jukebox',
    'icon'=>'Jukebox.png'),
  85=>array(
    'name'=>'Fence',
    'icon'=>'Fence.png'),
  86=>array(
    'name'=>'Pumpkin',
    'icon'=>'Pumpkin.png'),
  87=>array(
    'name'=>'Netherrack',
    'icon'=>'Netherrack.png'),
  88=>array(
    'name'=>'Soul Sand',
    'icon'=>'Soul_Sand.png'),
  89=>array(
    'name'=>'Glowstone',
    'icon'=>'Glowstone_Block.png'),
  90=>array(
    'name'=>'Portal',
    'icon'=>'Portal.png'),
  91=>array(
    'name'=>'Jack-O-Lantern',
    'icon'=>'Jack-O-Lantern.png'),
  92=>array(
    'name'=>'Cake',
    'icon'=>'Cake.png',
    'stack'=>1),
  93=>array(
    'name'=>'Redstone Repeater',
    'icon'=>'Redstone_Repeater.png'),
  94=>array(
    'name'=>'Redstone Repeater',
    'icon'=>'Redstone_Repeater.png'),
  95=>array(
    'name'=>'Locked Chest',
    'icon'=>'Chest.png'),
  96=>array(
    'name'=>'Trapdoor',
    'icon'=>'Trapdoor.png'),
//  97=>array(
//    'name'=>'Silverfish Stone',
//    'icon'=>''),
  98=>array(
    0 =>array(
      'name'=>'Stone Brick',
      'icon'=>'Stone_Brick.png'),
    1 =>array(
      'name'=>'Mossy Stone Brick',
      'icon'=>'Stone_Brick_Mossy.png'),
    2 =>array(
      'name'=>'Cracked Stone Brick',
      'icon'=>'Stone_Brick_Cracked.png'),
    3 =>array(
      'name'=>'Circle Stone Brick',
      'icon'=>'Stone_Brick_Circle.png'),
    -1=>array(
      'name'=>'Unknown Brick',
      'icon'=>'Stone_Brick.png'),
  ),
  99=>array(
    'name'=>'Brown Mushroom Cap',
    'icon'=>'Mushroom_Brown.png'),
  100=>array(
    'name'=>'Red Mushroom Cap',
    'icon'=>'Mushroom_Red.png'),
  101=>array(
    'name'=>'Iron Bars',
    'icon'=>'Iron_Bars.png'),
  102=>array(
    'name'=>'Glass Pane',
    'icon'=>'Glass_Pane.png'),
  103=>array(
    'name'=>'Melon',
    'icon'=>'Melon_Block.png'),
//  // TODO=> add pumpkin and melon steam pictures
//  104=>array(
//    'name'=>'Pumpkin Stem',
//    'icon'=>''),
//  105=>array(
//    'name'=>'Melon Stem',
//    'icon'=>''),
  106=>array(
    'name'=>'Vines',
    'icon'=>'Vines.png'),
  107=>array(
    'name'=>'Fence Gate',
    'icon'=>'Fence_Gate.png'),
  108=>array(
    'name'=>'Brick Stairs',
    'icon'=>'Stairs_Brick.png'),
  109=>array(
    'name'=>'Stone Brick Stairs',
    'icon'=>'Stairs_Stone_Brick.png'),
  110=>array(
    'name'=>'Mycelium',
    'icon'=>'Mycelium.png'),
  111=>array(
    'name'=>'Lily Pad',
    'icon'=>'Lily_Pad.png'),
  112=>array(
    'name'=>'Nether Brick',
    'icon'=>'Nether_Brick.png'),
  113=>array(
    'name'=>'Nether Brick Fence',
    'icon'=>'Nether_Brick_Fence.png'),
  114=>array(
    'name'=>'Nether Brick Stairs',
    'icon'=>'Stairs_Nether_Brick.png'),
  115=>array(
    'name'=>'Nether Wart',
    'icon'=>'Nether_Wart.png'),
  116=>array(
    'name'=>'Enchantment Table',
    'icon'=>'Enchantment_Table.png'),
  117=>array(
    'name'=>'Brewing Stand',
    'icon'=>'Brewing_Stand.png'),
  118=>array(
    'name'=>'Cauldron',
    'icon'=>'Cauldron.png'),
  119=>array(
    'name'=>'End Portal',
    'icon'=>'End_Portal.png'),
  120=>array(
    'name'=>'End Portal Frame',
    'icon'=>'End_Portal_Frame.png'),
  121=>array(
    'name'=>'End Stone',
    'icon'=>'End_Stone.png'),
  122=>array(
    'name'=>'Dragon Egg',
    'icon'=>'Dragon_Egg.png'),
  123=>array(
    'name'=>'Redstone Lamp',
    'icon'=>'Redstone_Lamp.png'),
  256=>array(
    'type' =>'tool',
    'name' =>'Iron Shovel',
    'title'=>'Iron Shovel %damaged%',
    'icon' =>'Iron_Shovel.png',
    'damage'=>251,
    'stack'=>1),
  257=>array(
    'type' =>'tool',
    'name' =>'Iron Pickaxe',
    'title'=>'Iron Pickaxe %damaged%',
    'icon' =>'Iron_Pickaxe.png',
    'damage'=>251,
    'stack'=>1),
  258=>array(
    'type' =>'tool',
    'name' =>'Iron Axe',
    'title'=>'Iron Axe %damaged%',
    'icon' =>'Iron_Axe.png',
    'damage'=>251,
    'stack'=>1),
  259=>array(
    'type' =>'tool',
    'name' =>'Flint and Steel',
    'title'=>'Flint and Steel %damaged%',
    'icon' =>'Flint_and_Steel.png',
    'damage'=>65,
    'stack'=>1),
  260=>array(
    'name'=>'Apple',
    'icon'=>'Apple_Red.png'),
  261=>array(
    'type' =>'tool',
    'name' =>'Bow',
    'title'=>'Bow %damaged%',
    'icon' =>'Bow.png',
    'damage'=>385,
    'stack'=>1),
  262=>array(
    'name'=>'Arrow',
    'icon'=>'Arrow.png'),
  263=>array(
    0 =>array(
      'name'=>'Coal',
      'icon'=>'Coal_Item.png'),
    1 =>array(
      'name'=>'Charcoal',
      'icon'=>'Charcoal_Item.png'),
    -1=>array(
      'name'=>'Unknown Coal',
      'icon'=>'Coal_Item.png'),
  ),
  264=>array(
    'name'=>'Diamond',
    'icon'=>'Diamond_Gem.png'),
  265=>array(
    'name'=>'Iron Ingot',
    'icon'=>'Iron_Ingot.png'),
  266=>array(
    'name'=>'Gold Ingot',
    'icon'=>'Gold_Ingot.png'),
  267=>array(
    'type' =>'tool',
    'name' =>'Iron Sword',
    'title'=>'Iron Sword %damaged%',
    'icon' =>'Iron_Sword.png',
    'damage'=>251,
    'stack'=>1),
  268=>array(
    'type' =>'tool',
    'name' =>'Wooden Sword',
    'title'=>'Wooden Sword %damaged%',
    'icon' =>'Wooden_Sword.png',
    'damage'=>60,
    'stack'=>1),
  269=>array(
    'type' =>'tool',
    'name' =>'Wooden Shovel',
    'title'=>'Wooden Shovel %damaged%',
    'icon' =>'Wooden_Shovel.png',
    'damage'=>60,
    'stack'=>1),
  270=>array(
    'type' =>'tool',
    'name' =>'Wooden Pickaxe',
    'title'=>'Wooden Pickaxe %damaged%',
    'icon' =>'Wooden_Pickaxe.png',
    'damage'=>60,
    'stack'=>1),
  271=>array(
    'type' =>'tool',
    'name' =>'Wooden Axe',
    'title'=>'Wooden Axe %damaged%',
    'icon' =>'Wooden_Axe.png',
    'damage'=>60,
    'stack'=>1),
  272=>array(
    'type' =>'tool',
    'name' =>'Stone Sword',
    'title'=>'Stone Sword %damaged%',
    'icon' =>'Stone_Sword.png',
    'damage'=>132,
    'stack'=>1),
  273=>array(
    'type' =>'tool',
    'name' =>'Stone Shovel',
    'title'=>'Stone Shovel %damaged%',
    'icon' =>'Stone_Shovel.png',
    'damage'=>132,
    'stack'=>1),
  274=>array(
    'type' =>'tool',
    'name' =>'Stone Pickaxe',
    'title'=>'Stone Pickaxe %damaged%',
    'icon' =>'Stone_Pickaxe.png',
    'damage'=>132,
    'stack'=>1),
  275=>array(
    'type' =>'tool',
    'name' =>'Stone Axe',
    'title'=>'Stone Axe %damaged%',
    'icon' =>'Stone_Axe.png',
    'damage'=>132,
    'stack'=>1),
  276=>array(
    'type' =>'tool',
    'name' =>'Diamond Sword',
    'title'=>'Diamond Sword %damaged%',
    'icon' =>'Diamond_Sword.png',
    'damage'=>1562,
    'stack'=>1),
  277=>array(
    'type' =>'tool',
    'name' =>'Diamond Shovel',
    'title'=>'Diamond Shovel %damaged%',
    'icon' =>'Diamond_Shovel.png',
    'damage'=>1562,
    'stack'=>1),
  278=>array(
    'type' =>'tool',
    'name' =>'Diamond Pickaxe',
    'title'=>'Diamond Pickaxe %damaged%',
    'icon' =>'Diamond_Pickaxe.png',
    'damage'=>1562,
    'stack'=>1),
  279=>array(
    'type' =>'tool',
    'name' =>'Diamond Axe',
    'title'=>'Diamond Axe %damaged%',
    'icon' =>'Diamond_Axe.png',
    'damage'=>1562,
    'stack'=>1),
  280=>array(
    'name'=>'Stick',
    'icon'=>'Stick.png'),
  281=>array(
    'name'=>'Bowl',
    'icon'=>'Bowl.png'),
  282=>array(
    'name'=>'Mushroom Soup',
    'icon'=>'Mushroom_Stew.png',
    'stack'=>1),
  283=>array(
    'type' =>'tool',
    'name' =>'Gold Sword',
    'title'=>'Gold Sword %damaged%',
    'icon' =>'Gold_Sword.png',
    'damage'=>33,
    'stack'=>1),
  284=>array(
    'type' =>'tool',
    'name' =>'Gold Shovel',
    'title'=>'Gold Shovel %damaged%',
    'icon' =>'Gold_Shovel.png',
    'damage'=>33,
    'stack'=>1),
  285=>array(
    'type' =>'tool',
    'name' =>'Gold Pickaxe',
    'title'=>'Gold Pickaxe %damaged%',
    'icon' =>'Gold_Pickaxe.png',
    'damage'=>33,
    'stack'=>1),
  286=>array(
    'type' =>'tool',
    'name' =>'Gold Axe',
    'title'=>'Gold Axe %damaged%',
    'icon' =>'Gold_Axe.png',
    'damage'=>33,
    'stack'=>1),
  287=>array(
    'name'=>'String',
    'icon'=>'String.png'),
  288=>array(
    'name'=>'Feather',
    'icon'=>'Feather.png'),
  289=>array(
    'name'=>'Gunpowder',
    'icon'=>'Gunpowder.png'),
  290=>array(
    'type' =>'tool',
    'name' =>'Wooden Hoe',
    'title'=>'Wooden Hoe %damaged%',
    'icon' =>'Wooden_Hoe.png',
    'damage'=>60,
    'stack'=>1),
  291=>array(
    'type' =>'tool',
    'name' =>'Stone Hoe',
    'title'=>'Stone Hoe %damaged%',
    'icon' =>'Stone_Hoe.png',
    'damage'=>132,
    'stack'=>1),
  292=>array(
    'type' =>'tool',
    'name' =>'Iron Hoe',
    'title'=>'Iron Hoe %damaged%',
    'icon' =>'Iron_Hoe.png',
    'damage'=>251,
    'stack'=>1),
  293=>array(
    'type' =>'tool',
    'name' =>'Diamond Hoe',
    'title'=>'Diamond Hoe %damaged%',
    'icon' =>'Diamond_Hoe.png',
    'damage'=>1562,
    'stack'=>1),
  294=>array(
    'type' =>'tool',
    'name' =>'Gold Hoe',
    'title'=>'Gold Hoe %damaged%',
    'icon' =>'Gold_Hoe.png',
    'damage'=>33,
    'stack'=>1),
  295=>array(
    'name'=>'Wheat Seeds',
    'icon'=>'Seeds_Wheat.png'),
  296=>array(
    'name'=>'Wheat',
    'icon'=>'Wheat.png'),
  297=>array(
    'name'=>'Bread',
    'icon'=>'Bread.png'),
  298=>array(
    'type' =>'tool',
    'name' =>'Leather Helmet',
    'title'=>'Leather Helmet %damaged%',
    'icon' =>'Leather_Helmet.png',
    'damage'=>34,
    'stack'=>1),
  299=>array(
    'type' =>'tool',
    'name' =>'Leather Chestplate',
    'title'=>'Leather Chestplate %damaged%',
    'icon' =>'Leather_Chestplate.png',
    'damage'=>49,
    'stack'=>1),
  300=>array(
    'type' =>'tool',
    'name' =>'Leather Leggings',
    'title'=>'Leather Leggings %damaged%',
    'icon' =>'Leather_Pants.png',
    'damage'=>46,
    'stack'=>1),
  301=>array(
    'type' =>'tool',
    'name' =>'Leather Boots',
    'title'=>'Leather Boots %damaged%',
    'icon' =>'Leather_Boots.png',
    'damage'=>40,
    'stack'=>1),
  302=>array(
    'type' =>'tool',
    'name' =>'Chain Mail Helmet',
    'title'=>'Chain Mail Helmet %damaged%',
    'icon' =>'Chain_Armor_Helmet.png',
    'damage'=>67,
    'stack'=>1),
  303=>array(
    'type' =>'tool',
    'name' =>'Chain Mail Chestplate',
    'title'=>'Chain Mail Chestplate %damaged%',
    'icon' =>'Chain_Armor_Chestplate.png',
    'damage'=>96,
    'stack'=>1),
  304=>array(
    'type' =>'tool',
    'name' =>'Chain Mail Leggings',
    'title'=>'Chain Mail Leggings %damaged%',
    'icon' =>'Chain_Armor_Leggings.png',
    'damage'=>92,
    'stack'=>1),
  305=>array(
    'type' =>'tool',
    'name' =>'Chain Mail Boots',
    'title'=>'Chain Mail Boots %damaged%',
    'icon' =>'Chain_Armor_Boots.png',
    'damage'=>79,
    'stack'=>1),
  306=>array(
    'type' =>'tool',
    'name' =>'Iron Helmet',
    'title'=>'Iron Helmet %damaged%',
    'icon' =>'Iron_Helmet.png',
    'damage'=>136,
    'stack'=>1),
  307=>array(
    'type' =>'tool',
    'name' =>'Iron Chestplate',
    'title'=>'Iron Chestplate %damaged%',
    'icon' =>'Iron_Chestplate.png',
    'damage'=>192,
    'stack'=>1),
  308=>array(
    'type' =>'tool',
    'name' =>'Iron Leggings',
    'title'=>'Iron Leggings %damaged%',
    'icon' =>'Iron_Leggings.png',
    'damage'=>184,
    'stack'=>1),
  309=>array(
    'type' =>'tool',
    'name' =>'Iron Boots',
    'title'=>'Iron Boots %damaged%',
    'icon' =>'Iron_Boots.png',
    'damage'=>160,
    'stack'=>1),
  310=>array(
    'type' =>'tool',
    'name' =>'Diamond Helmet',
    'title'=>'Diamond Helmet %damaged%',
    'icon' =>'Diamond_Helmet.png',
    'damage'=>272,
    'stack'=>1),
  311=>array(
    'type' =>'tool',
    'name' =>'Diamond Chestplate',
    'title'=>'Diamond Chestplate %damaged%',
    'icon' =>'Diamond_Chestplate.png',
    'damage'=>384,
    'stack'=>1),
  312=>array(
    'type' =>'tool',
    'name' =>'Diamond Leggings',
    'title'=>'Diamond Leggings %damaged%',
    'icon' =>'Diamond_Leggings.png',
    'damage'=>368,
    'stack'=>1),
  313=>array(
    'type' =>'tool',
    'name' =>'Diamond Boots',
    'title'=>'Diamond Boots %damaged%',
    'icon' =>'Diamond_Boots.png',
    'damage'=>320,
    'stack'=>1),
  314=>array(
    'type' =>'tool',
    'name' =>'Gold Helmet',
    'title'=>'Gold Helmet %damaged%',
    'icon' =>'Gold_Helmet.png',
    'damage'=>68,
    'stack'=>1),
  315=>array(
    'type' =>'tool',
    'name' =>'Gold Chestplate',
    'title'=>'Gold Chestplate %damaged%',
    'icon' =>'Gold_Chestplate.png',
    'damage'=>996,
    'stack'=>1),
  316=>array(
    'type' =>'tool',
    'name' =>'Gold Leggings',
    'title'=>'Gold Leggings %damaged%',
    'icon' =>'Gold_Leggings.png',
    'damage'=>92,
    'stack'=>1),
  317=>array(
    'type' =>'tool',
    'name' =>'Gold Boots',
    'title'=>'Gold Boots %damaged%',
    'icon' =>'Gold_Boots.png',
    'damage'=>80,
    'stack'=>1),
  318=>array(
    'name'=>'Flint',
    'icon'=>'Flint.png'),
  319=>array(
    'name'=>'Raw Porkchop',
    'icon'=>'Porkchop_Raw.png'),
  320=>array(
    'name'=>'Cooked Porkchop',
    'icon'=>'Porkchop_Cooked.png'),
  321=>array(
    'name'=>'Painting',
    'icon'=>'Painting.png'),
  322=>array(
    'name'=>'Golden Apple',
    'icon'=>'Apple_Golden.png'),
  323=>array(
    'name'=>'Sign',
    'icon'=>'Sign.png',
    'stack'=>1),
  324=>array(
    'name'=>'Wooden Door',
    'icon'=>'Door_Wood.png',
    'stack'=>1),
  325=>array(
    'name'=>'Bucket',
    'icon'=>'Bucket.png',
    'stack'=>1),
  326=>array(
    'name'=>'Bucket of Water',
    'icon'=>'Bucket_Water.png',
    'stack'=>1),
  327=>array(
    'name'=>'Bucket of Lava',
    'icon'=>'Bucket_Lava.png',
    'stack'=>1),
  328=>array(
    'name'=>'Minecart',
    'icon'=>'Minecart.png',
    'stack'=>64),
  329=>array(
    'name'=>'Saddle',
    'icon'=>'Saddle.png',
    'stack'=>1),
  330=>array(
    'name'=>'Iron Door',
    'icon'=>'Door_Iron.png',
    'stack'=>1),
  331=>array(
    'name'=>'Redstone',
    'icon'=>'Redstone_Dust.png'),
  332=>array(
    'name'=>'Snowball',
    'icon'=>'Snowball.png',
    'stack'=>16),
  333=>array(
    'name'=>'Boat',
    'icon'=>'Boat.png',
    'stack'=>1),
  334=>array(
    'name'=>'Leather',
    'icon'=>'Leather.png'),
  335=>array(
    'name'=>'Bucket of Milk',
    'icon'=>'Bucket_Milk.png',
    'stack'=>1),
  336=>array(
    'name'=>'Clay Brick',
    'icon'=>'Clay_Brick.png'),
  337=>array(
    'name'=>'Clay Balls',
    'icon'=>'Clay_Item.png'),
  338=>array(
    'name'=>'Sugar Cane',
    'icon'=>'Sugar_Cane.png'),
  339=>array(
    'name'=>'Paper',
    'icon'=>'Paper.png'),
  340=>array(
    'name'=>'Book',
    'icon'=>'Book.png'),
  341=>array(
    'name'=>'Slimeball',
    'icon'=>'Slimeball.png'),
  342=>array(
    'name'=>'Storage Minecart',
    'icon'=>'Minecart_Storage.png',
    'stack'=>1),
  343=>array(
    'name'=>'Powered Minecart',
    'icon'=>'Minecart_Powered.png',
    'stack'=>1),
  344=>array(
    'name'=>'Egg',
    'icon'=>'Egg.png',
    'stack'=>16),
  345=>array(
    'name'=>'Compass',
    'icon'=>'Compass.png'),
  346=>array(
    'type' =>'tool',
    'name'=>'Fishing Rod',
    'icon'=>'Fishing_Rod.png',
    'damage'=>65,
    'stack'=>1),
  347=>array(
    'name'=>'Clock',
    'icon'=>'Clock.png'),
  348=>array(
    'name'=>'Glowstone Dust',
    'icon'=>'Glowstone_Dust.png'),
  349=>array(
    'name'=>'Raw Fish',
    'icon'=>'Fish_Raw.png'),
  350=>array(
    'name'=>'Cooked Fish',
    'icon'=>'Fish_Cooked.png'),
  351=>array(
    0 =>array(
      'name'=>'Ink Sack',
      'icon'=>'Ink_Sac.png'),
    1 =>array(
      'name'=>'Rose Red',
      'icon'=>'Rose_Red.png'),
    2 =>array(
      'name'=>'Cactus Green',
      'icon'=>'Cactus_Green.png'),
    3 =>array(
      'name'=>'Cocoa Beans',
      'icon'=>'Cocoa_Beans.png'),
    4 =>array(
      'name'=>'Lapis Lazuli',
      'icon'=>'Lapis_Lazuli_Dye.png'),
    5 =>array(
      'name'=>'Purple Dye',
      'icon'=>'Dye_Purple.png'),
    6 =>array(
      'name'=>'Cyan Dye',
      'icon'=>'Dye_Cyan.png'),
    7 =>array(
      'name'=>'Light Grey Dye',
      'icon'=>'Dye_Light_Gray.png'),
    8 =>array(
      'name'=>'Grey Dye',
      'icon'=>'Dye_Gray.png'),
    9 =>array(
      'name'=>'Pink Dye',
      'icon'=>'Dye_Pink.png'),
    10=>array(
      'name'=>'Lime Dye',
      'icon'=>'Dye_Lime.png'),
    11=>array(
      'name'=>'Dandelion Yellow',
      'icon'=>'Dandelion_Yellow.png'),
    12=>array(
      'name'=>'Light Blue Dye',
      'icon'=>'Dye_Light_Blue.png'),
    13=>array(
      'name'=>'Magenta Dye',
      'icon'=>'Dye_Magenta.png'),
    14=>array(
      'name'=>'Orange Dye',
      'icon'=>'Dye_Orange.png'),
    15=>array(
      'name'=>'Bone Meal',
      'icon'=>'Bone_Meal.png'),
    -1=>array(
      'name'=>'Unknown Dye',
      'icon'=>'Bone_Meal.png'),
  ),
  352=>array(
    'name'=>'Bone',
    'icon'=>'Bone.png'),
  353=>array(
    'name'=>'Sugar',
    'icon'=>'Sugar.png'),
  354=>array(
    'name'=>'Cake',
    'icon'=>'Cake.png',
    'stack'=>1),
  355=>array(
    'name'=>'Bed',
    'icon'=>'Bed.png',
    'stack'=>1),
  356=>array(
    'name'=>'Redstone Repeater',
    'icon'=>'Redstone_Repeater.png'),
  357=>array(
    'name'=>'Cookie',
    'icon'=>'Cookie.png'),
  358=>array(
    'type' =>'map',
    'name' =>'Map #map#',
    'title'=>'Map #map#',
    'icon' =>'Map_Item.png',
    'stack'=>1),
  359=>array(
    'type' =>'tool',
    'name' =>'Shears',
    'title'=>'Shears %damaged%',
    'icon' =>'Shears.png',
    'damage'=>238,
    'stack'=>1),
  360=>array(
    'name'=>'Melon Slice',
    'icon'=>'Melon_Slice.png'),
  361=>array(
    'name'=>'Pumpkin Seeds',
    'icon'=>'Seeds_Pumpkin.png'),
  362=>array(
    'name'=>'Melon Seeds',
    'icon'=>'Seeds_Melon.png'),
  363=>array(
    'name'=>'Raw Beef',
    'icon'=>'Beef_Raw.png'),
  364=>array(
    'name'=>'Steak',
    'icon'=>'Beef_Cooked.png'),
  365=>array(
    'name'=>'Raw Chicken',
    'icon'=>'Chicken_Raw.png'),
  366=>array(
    'name'=>'Cooked Chicken',
    'icon'=>'Chicken_Cooked.png'),
  367=>array(
    'name'=>'Rotten Flesh',
    'icon'=>'Rotten_Flesh.png'),
  368=>array(
    'name' =>'Ender Pearl',
    'icon' =>'Ender_Pearl.png',
    'stack'=>16),
  369=>array(
    'name'=>'Blaze Rod',
    'icon'=>'Blaze_Rod.png'),
  370=>array(
    'name'=>'Ghast Tear',
    'icon'=>'Ghast_Tear.png'),
  371=>array(
    'name'=>'Gold Nugget',
    'icon'=>'Gold_Nugget.png'),
  372=>array(
    'name'=>'Nether Wart',
    'icon'=>'Seeds_Nether_Wart.png'),
  373=>array(
    0 =>array(
      'name'=>'Bottle of Water',
      'icon'=>'Bottle_Water.png',
      'stack'=>1),
    16   =>array(
      'name'=>'Awkward Potion',
      'icon'=>'Potion_Awkward.png',
      'stack'=>1),
    32   =>array(
      'name'=>'Thick Potion',
      'icon'=>'Potion_Thick.png',
      'stack'=>1),
    64   =>array(
      'name'=>'Mundane Potion',
      'icon'=>'Potion_Mundane.png',
      'stack'=>1),
    8193 =>array(
      'name'=>'Regeneration Potion (0=>45)',
      'icon'=>'Potion_of_Regeneration.png',
      'stack'=>1),
    8194 =>array(
      'name'=>'Swiftness Potion (3=>00)',
      'icon'=>'Potion_of_Swiftness.png',
      'stack'=>1),
    8195 =>array(
      'name'=>'Fire Resistance Potion (3=>00)',
      'icon'=>'Potion_of_Fire_Resistance.png',
      'stack'=>1),
    8196 =>array(
      'name'=>'Poison Potion (0=>45)',
      'icon'=>'Potion_of_Poison.png',
      'stack'=>1),
    8197 =>array(
      'name'=>'Healing Potion',
      'icon'=>'Instant_Health.png',
      'stack'=>1),
    8200 =>array(
      'name'=>'Weakness Potion (1=>30)',
      'icon'=>'Potion_of_Poison.png',
      'stack'=>1),
    8201 =>array(
      'name'=>'Strength Potion (3=>00)',
      'icon'=>'Potion_of_Strength.png',
      'stack'=>1),
    8202 =>array(
      'name'=>'Slowness Potion (1=>30)',
      'icon'=>'Potion_of_Slowness.png',
      'stack'=>1),
    8204 =>array(
      'name'=>'Harming Potion',
      'icon'=>'Potion_of_Harming.png',
      'stack'=>1),
    8225 =>array(
      'name'=>'Regeneration Potion II (0=>22)',
      'icon'=>'Potion_of_Regeneration.png',
      'stack'=>1),
    8226 =>array(
      'name'=>'Swiftness Potion II (1=>30)',
      'icon'=>'Potion_of_Swiftness.png',
      'stack'=>1),
    8228 =>array(
      'name'=>'Poison Potion II (0=>22)',
      'icon'=>'Potion_of_Poison.png',
      'stack'=>1),
    8229 =>array(
      'name'=>'Healing Potion II',
      'icon'=>'Instant_Health.png',
      'stack'=>1),
    8233 =>array(
      'name'=>'Strength Potion II (1=>30)',
      'icon'=>'Potion_of_Strength.png',
      'stack'=>1),
    8236 =>array(
      'name'=>'Harming Potion II',
      'icon'=>'Potion_of_Harming.png',
      'stack'=>1),
    8257 =>array(
      'name'=>'Regeneration Potion (2=>00)',
      'icon'=>'Potion_of_Regeneration.png',
      'stack'=>1),
    8258 =>array(
      'name'=>'Swiftness Potion (8=>00)',
      'icon'=>'Potion_of_Swiftness.png',
      'stack'=>1),
    8259 =>array(
      'name'=>'Fire Resistance Potion (8=>00)',
      'icon'=>'Potion_of_Fire_Resistance.png',
      'stack'=>1),
    8260 =>array(
      'name'=>'Poison Potion (2=>00)',
      'icon'=>'Potion_of_Poison.png',
      'stack'=>1),
    8264 =>array(
      'name'=>'Weakness Potion (4=>00)',
      'icon'=>'Potion_of_Weakness.png',
      'stack'=>1),
    8265 =>array(
      'name'=>'Strength Potion (8=>00)',
      'icon'=>'Potion_of_Strength.png',
      'stack'=>1),
    8266 =>array(
      'name'=>'Slowness Potion (4=>00)',
      'icon'=>'Potion_of_Slowness.png',
      'stack'=>1),
   16378=>array(
      'name'=>'Fire Resistance Splash (2=>15)',
      'icon'=>'Potion_Fire_Resistance_Splash.png',
      'stack'=>1),
    16385=>array(
      'name'=>'Regeneration Splash (0=>33)',
      'icon'=>'Potion_Regeneration_Splash.png',
      'stack'=>1),
    16386=>array(
      'name'=>'Swiftness Splash (2=>15)',
      'icon'=>'Potion_Swiftness_Splash.png',
      'stack'=>1),
    16388=>array(
      'name'=>'Poison Splash (0=>33)',
      'icon'=>'Potion_Poison_Splash.png',
      'stack'=>1),
    16389=>array(
      'name'=>'Healing Splash',
      'icon'=>'Potion_Healing_Splash.png',
      'stack'=>1),
    16392=>array(
      'name'=>'Weakness Splash (1=>07)',
      'icon'=>'Potion_Weakness_Splash.png',
      'stack'=>1),
    16393=>array(
      'name'=>'Strength Splash (2=>15)',
      'icon'=>'Potion_Strength_Splash.png',
      'stack'=>1),
    16394=>array(
      'name'=>'Slowness Splash (2=>15)',
      'icon'=>'Potion_Slowness_Splash.png',
      'stack'=>1),
    16396=>array(
      'name'=>'Harming Splash',
      'icon'=>'Potion_Harming_Splash.png',
      'stack'=>1),
    16418=>array(
      'name'=>'Swiftness Splash II (1=>07)',
      'icon'=>'Potion_Swiftness_Splash.png',
      'stack'=>1),
    16420=>array(
      'name'=>'Poison Splash II (0=>16)',
      'icon'=>'Potion_Poison_Splash.png',
      'stack'=>1),
    16421=>array(
      'name'=>'Healing Splash II',
      'icon'=>'Potion_Healing_Splash.png',
      'stack'=>1),
    16425=>array(
      'name'=>'Strength Splash II (1=>07)',
      'icon'=>'Potion_Strength_Splash.png',
      'stack'=>1),
    16428=>array(
      'name'=>'Harming Splash II',
      'icon'=>'Potion_Harming_Splash.png',
      'stack'=>1),
    16449=>array(
      'name'=>'Regeneration Splash (1=>30)',
      'icon'=>'Potion_Regneration_Splash.png',
      'stack'=>1),
    16450=>array(
      'name'=>'Swiftness Splash (6=>00)',
      'icon'=>'Potion_Swiftness_Splash.png',
      'stack'=>1),
    16451=>array(
      'name'=>'Fire Resistance Splash (6=>00)',
      'icon'=>'Potion_Fire_Resistance_Splash.png',
      'stack'=>1),
    16452=>array(
      'name'=>'Poison Splash (1=>30)',
      'icon'=>'Potion_Poison_Splash.png',
      'stack'=>1),
    16456=>array(
      'name'=>'Weakness Splash (3=>00)',
      'icon'=>'Potion_Weakness_Splash.png',
      'stack'=>1),
    16457=>array(
      'name'=>'Strength Splash (6=>00)',
      'icon'=>'Potion_Strength_Splash.png',
      'stack'=>1),
    16458=>array(
      'name'=>'Slowness Splash (3=>00)',
      'icon'=>'Potion_Slowness_Splash.png',
      'stack'=>1),
    16471=>array(
      'name'=>'Regeneration Splash II (0=>16)',
      'icon'=>'Potion_Regeneration_Splash.png',
      'stack'=>1),
    -1   =>array(
      'name'=>'Clear Potion',
      'icon'=>'Bottle_Water.png',
      'stack'=>1),
  ),
  374=>array(
    'name'=>'Glass Bottle',
    'icon'=>'Bottle_Glass.png'),
  375=>array(
    'name'=>'Spider Eye',
    'icon'=>'Spider_Eye.png'),
  376=>array(
    'name'=>'Fermented Spider Eye',
    'icon'=>'Fermented_Spider_Eye.png'),
  377=>array(
    'name'=>'Blaze Powder',
    'icon'=>'Blaze_Powder.png'),
  378=>array(
    'name'=>'Magma Cream',
    'icon'=>'Magma_Cream.png'),
  379=>array(
    'name'=>'Brewing Stand',
    'icon'=>'Brewing_Stand.png'),
  380=>array(
    'name'=>'Cauldron',
    'icon'=>'Cauldron.png'),
  381=>array(
    'name'=>'Eye of Ender',
    'icon'=>'Eye_of_Ender.png'),
  382=>array(
    'name'=>'Glistering Melon (Slice)',
    'icon'=>'Melon_Glistering.png'),
  383=>array(
    50 =>array(
      'name'=>'Spawn Creeper',
      'icon'=>'Spawn_Creeper.png'),
    51 =>array(
      'name'=>'Spawn Skeleton',
      'icon'=>'Spawn_Skeleton.png'),
    52 =>array(
      'name'=>'Spawn Spider',
      'icon'=>'Spawn_Spider.png'),
    54 =>array(
      'name'=>'Spawn Zombie',
      'icon'=>'Spawn_Zombie.png'),
    55 =>array(
      'name'=>'Spawn Slime',
      'icon'=>'Spawn_Slime.png'),
    56 =>array(
      'name'=>'Spawn Ghast',
      'icon'=>'Spawn_Ghast.png'),
    57 =>array(
      'name'=>'Spawn Pig Zombie',
      'icon'=>'Spawn_Pig_Zombie.png'),
    58 =>array(
      'name'=>'Spawn Enderman',
      'icon'=>'Spawn_Enderman.png'),
    59 =>array(
      'name'=>'Spawn Cave_Spider',
      'icon'=>'Spawn_Cave_Spider.png'),
    60 =>array(
      'name'=>'Spawn Silverfish',
      'icon'=>'Spawn_Silverfish.png'),
    61 =>array(
      'name'=>'Spawn Blaze',
      'icon'=>'Spawn_Blaze.png'),
    62 =>array(
      'name'=>'Spawn Magma Cube',
      'icon'=>'Spawn_Magma_Cube.png'),
    90 =>array(
      'name'=>'Spawn Pig',
      'icon'=>'Spawn_Pig.png'),
    91 =>array(
      'name'=>'Spawn Sheep',
      'icon'=>'Spawn_Sheep.png'),
    92 =>array(
      'name'=>'Spawn Cow',
      'icon'=>'Spawn_Cow.png'),
    93 =>array(
      'name'=>'Spawn Chicken',
      'icon'=>'Spawn_Chicken.png'),
    94 =>array(
      'name'=>'Spawn Squid',
      'icon'=>'Spawn_Squid.png'),
    95 =>array(
      'name'=>'Spawn Wolf',
      'icon'=>'Spawn_Wolf.png'),
    96 =>array(
      'name'=>'Spawn Mooshroom',
      'icon'=>'Spawn_Mooshroom.png'),
    98 =>array(
      'name'=>'Spawn Ocelot',
      'icon'=>'Spawn_Ocelot.png'),
    120=>array(
      'name'=>'Spawn Villager',
      'icon'=>'Spawn_Villager.png'),
    -1 =>array(
      'name'=>'Spawn Unknown',
      'icon'=>'Egg.png'),
  ),
  384=>array(
    'name'=>'Bottle o\' Enchanting',
    'icon'=>'Bottle_o_Enchanting.png'),
  385=>array(
    'name'=>'Fire Charge',
    'icon'=>'Fire_Charge.png'),
  2256=>array(
    'name'=>'Music Disc (13)',
    'icon'=>'Disc_Gold.png',
    'stack'=>1),
  2257=>array(
    'name'=>'Music Disc (Cat)',
    'icon'=>'Disc_Green.png',
    'stack'=>1),
  2258=>array(
    'name'=>'Music Disc (Blocks)',
    'icon'=>'Disc_Blocks.png',
    'stack'=>1),
  2259=>array(
    'name'=>'Music Disc (Chirp)',
    'icon'=>'Disc_Chirp.png',
    'stack'=>1),
  2260=>array(
    'name'=>'Music Disc (Far)',
    'icon'=>'Disc_Far.png',
    'stack'=>1),
  2261=>array(
    'name'=>'Music Disc (Mall)',
    'icon'=>'Disc_Mall.png',
    'stack'=>1),
  2262=>array(
    'name'=>'Music Disc (Mellohi)',
    'icon'=>'Disc_Mellohi.png',
    'stack'=>1),
  2263=>array(
    'name'=>'Music Disc (Stal)',
    'icon'=>'Disc_Stal.png',
    'stack'=>1),
  2264=>array(
    'name'=>'Music Disc (Strad)',
    'icon'=>'Disc_Strad.png',
    'stack'=>1),
  2265=>array(
    'name'=>'Music Disc (Ward)',
    'icon'=>'Disc_Ward.png',
    'stack'=>1),
  2266=>array(
    'name'=>'Music Disc (11)',
    'icon'=>'Disc_11.png',
    'stack'=>1),
  -1  =>array(
    'name'=>'Unknown %itemid%',
    'icon'=>'Unknown.png'),
);











/*




protection: 0
protect: 0
fireprotection: 1
fireprotect: 1
featherfalling: 2
blastprotect: 3
blastprotection: 3
projectileprotection: 4
projectileprotect: 4
respiration: 5
aquaaffinity: 6
wateraffinity: 6
sharpness: 16
sharp: 16
smite: 17
baneofarthropods: 18
knockback: 19
fireaspect: 20
looting: 21
loot: 21
efficiency: 32
efficient: 32
silktouch: 33
unbreaking: 34
fortune: 35 - looting
power: 48
punch: 49
flame: 50
infinity: 51
infinite: 51



function indent($json) {
    $result      = '';
    $pos         = 0;
    $strLen      = strlen($json);
    $indentStr   = '  ';
    $newLine     = "\n";
    $prevChar    = '';
    $outOfQuotes = true;
    for ($i=0; $i<=$strLen; $i++) {
        // Grab the next character in the string.
        $char = substr($json, $i, 1);
        // Are we inside a quoted string?
        if ($char == '"' && $prevChar != '\\') {
            $outOfQuotes = !$outOfQuotes;
        // If this character is the end of an element, 
        // output a new line and indent the next line.
        } else if(($char == '}' || $char == ']') && $outOfQuotes) {
            $result .= $newLine;
            $pos --;
            for ($j=0; $j<$pos; $j++) {
                $result .= $indentStr;
            }
        }
        // Add the character to the result string.
        $result .= $char;
        // If the last character was the beginning of an element, 
        // output a new line and indent the next line.
        if (($char == ',' || $char == '{' || $char == '[') && $outOfQuotes) {
            $result .= $newLine;
            if ($char == '{' || $char == '[') {
                $pos ++;
            }
            for ($j = 0; $j < $pos; $j++) {
                $result .= $indentStr;
            }
        }
        $prevChar = $char;
    }
    return $result;
}





function itemAllowed ($itemId, $itemDamage){
  return true; 
//  switch ($itemId){
//    //Uncomment below to ban stone, dirt and cobblestone being sold.
//    case 1:
//    case 3:
//    case 4:
//      return false;
//    default: 
//      return true; 
//  }
}

function isTrueDamage ($itemId, $itemDamage){global $DamageValues;
  if(!isset($DamageValues[$itemId])){
    return(@$DamageValue[-1]);
  }else{
    return($DamageValues[$itemId]);
  }
}




//function getMarketPrice($itemTableId, $tableId){





function getEnchName($enchId){global $EnchantmentNames;
  if(isset($EnchantmentNames[$enchId])){
    return($EnchantmentNames[$enchId]);
  }else{
    return(@$EnchantmentNames[-1]);
  }
}
$EnchantmentNames=array(
  0=>'Protection',
  1=>'Fire Protecion',
  2=>'Feather Falling',
  3=>'Blast Protection',
  4=>'Projectile Protection',
  5=>'Respiration',
  6=>'Aqua Affinity',
  16=>'Sharpness',
  17=>'Smite',
  18=>'Bane of Arthropods',
  19=>'Knockback',
  20=>'Fire Aspect',
  21=>'Looting',
  32=>'Efficiency',
  33=>'Silk Touch',
  34=>'Unbreaking',
  35=>'Fortune',
  48=>'Power',
  49=>'Punch',
  50=>'Flame',
  51=>'Infinity',
  -1=>'Unknown'
);




function getItemName($itemId, $itemDamage){global $ItemNames,$DamageValues;
  $output='';
  if(isset($ItemNames[$itemId])){
    if(is_array($ItemNames[$itemId])){
      if(isset($ItemNames[$itemId][$itemDamage])){
        $output=$ItemNames[$itemId][$itemDamage];
      }else{
        $output=$ItemNames[$itemId][-1];
      }
    }else{
      $output=$ItemNames[$itemId];
    }
  }else{
    $output=@$ItemNames[-1];
  }
  // damage %
  if(strpos($output,'%damaged%')!==FALSE){
    $output=str_replace('%damaged%', '</b><br /><font size="-1">'..'% damaged</font><b>' ,$output);
  // map #
  }elseif(strpos($output,'#map#')!==FALSE){
    $output=str_replace('#map#','# '.$itemDamage,$output);
  }
  return('<font size="-1"><b>'.$output.'</b></font>');
}
function getItemImage($itemId, $itemDamage){global $ItemImages;
  if(isset($ItemImages[$itemId])){
    if(is_array($ItemImages[$itemId])){
      if(isset($ItemImages[$itemId][$itemDamage])){
        return('images/'.$ItemImages[$itemId][$itemDamage]);
      }else{
        return('images/'.$ItemImages[$itemId][-1]);
      }
    }else{
      return('images/'.$ItemImages[$itemId]);
    }
  }else{
    return('images/'.@$ItemImages[-1]);
  }
}
*/
?>