added local images and other changes

master
1122131 2016-06-18 13:38:04 +00:00
parent b09fb96890
commit 773f1f5e30
9 changed files with 50 additions and 104 deletions

View File

@ -29,6 +29,7 @@ handle remainder => sub {
# find recipe name # find recipe name
foreach my $recipe_name (@recipe_names) { foreach my $recipe_name (@recipe_names) {
my $regex = $recipe_name; my $regex = $recipe_name;
# check if we have a regex for the recipe # check if we have a regex for the recipe
if (exists( $recipes{$recipe_name}->{'regex'})) if (exists( $recipes{$recipe_name}->{'regex'}))
{ {
@ -57,7 +58,7 @@ handle remainder => sub {
title => $recipe->{'name'}, title => $recipe->{'name'},
subtitle => "Ingredients: " . $recipe->{'ingredients'}, subtitle => "Ingredients: " . $recipe->{'ingredients'},
description => $recipe->{'description'}, description => $recipe->{'description'},
image => 'https://duckduckgo.com/iu/?u=' . uri_esc( $recipe->{'image'} ) image => $recipe->{'image'}
}, },
meta => { meta => {
sourceName => "Minecraft Wiki", sourceName => "Minecraft Wiki",

View File

@ -3,245 +3,190 @@
{ {
"name": "Chest", "name": "Chest",
"regex": "(?:storage ?chests?)|(?:(?:storage)|(?:chests?))", "regex": "(?:storage ?chests?)|(?:(?:storage)|(?:chests?))",
"image": "http://www.minecraftxl.com/images/wiki/recipes/chest-crafting.png", "image": "/share/goodie/minecraft/images/chest.gif",
"ingredients": "8 Wood Planks", "ingredients": "8 Wood Planks",
"description": "Stores up to 27 stacks of items or blocks." "description": "Stores up to 27 stacks of items or blocks."
}, },
{ {
"name": "Crafting Table", "name": "Crafting Table",
"regex": "(?:(?:work ?)?(?:bench(?:es)?))|(?:(?:crafting ?)?tables?)", "regex": "(?:(?:work ?)?(?:bench(?:es)?))|(?:(?:crafting ?)?tables?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/crafting-table-crafting.png", "image": "/share/goodie/minecraft/images/crafting-table.gif",
"ingredients": "4 Wood Planks", "ingredients": "4 Wood Planks",
"description": "When placed on the ground, it provides use of the 3×3 crafting grid." "description": "When placed on the ground, it provides use of the 3×3 crafting grid."
}, },
{ {
"name": "Furnace", "name": "Furnace",
"regex": "(?:furnaces?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/furnace-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/furnace-crafting.png",
"ingredients": "8 Cobblestone", "ingredients": "8 Cobblestone",
"description": "Provides the ability to smelt blocks and items." "description": "Provides the ability to smelt blocks and items."
}, },
{ {
"name": "Stick", "name": "Stick",
"image": "http://www.minecraftxl.com/images/wiki/recipes/stick-crafting.png", "regex": "(?:sticks?)",
"image": "/share/goodie/minecraft/images/stick.gif",
"ingredients": "2 Wood Planks", "ingredients": "2 Wood Planks",
"description": "Used for crafting many tools and items." "description": "Used for crafting many tools and items."
}, },
{ {
"name": "torch", "name": "Torch",
"regex": "(?:torches)|(?:light)|(?:candle)", "regex": "(?:torch(?:es)?)|(?:light)|(?:candles?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/torches-crafting.png", "image": "/share/goodie/minecraft/images/torch.gif",
"ingredients": "1 Stick + 1 Coal", "ingredients": "1 Stick + 1 Coal OR 1 Charcoal",
"description": "Emits light. It also has the ability to melt ice and snow." "description": "Emits light. It also has the ability to melt ice and snow."
}, },
{ {
"name": "Wood Planks", "name": "Wood Planks",
"regex": "(?:wood ?planks?)|(?:wood)|(?:planks?)", "regex": "(?:wood ?planks?)|(?:wood)|(?:planks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/wood-planks-crafting.gif", "image": "/share/goodie/minecraft/images/wood-planks.gif",
"ingredients": "Wood", "ingredients": "1 Wood",
"description": "Common blocks used in many crafting recipes. Its texture resembles a network of planks, coming in six different shades obtained from the six different tree varieties.." "description": "Common blocks used in many crafting recipes. The texture resembles a network of planks, coming in six different shades obtained from the six different tree varieties.."
}, },
{ {
"name": "Anvil", "name": "Anvil",
"regex": "(?:anvils?)|(?:blacksmiths?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/anvil-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/anvil-crafting.png",
"ingredients": "3 Iron Blocks + 4 Iron Ingots", "ingredients": "3 Iron Blocks + 4 Iron Ingots",
"description": "Used to combine enchantments, repair or rename items or blocks. Anvils are affected by gravity." "description": "Used to combine enchantments, repair or rename items or blocks. Anvils are affected by gravity."
}, },
{ {
"name": "Beacon", "name": "Beacon",
"regex": "(?:beacons?)|(?:beacon ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/beacon-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/beacon-crafting.png",
"ingredients": "5 Glass + 1 Nether Star + 3 Obsidian", "ingredients": "5 Glass + 1 Nether Star + 3 Obsidian",
"description": "Emits a light beam that can provide temporary player buffs, when placed on a pyramid made of diamond, emerald, gold or iron blocks. Can also be used as a landmark." "description": "Emits a light beam that can provide temporary player buffs, when placed on a pyramid made of diamond, emerald, gold or iron blocks. Can also be used as a landmark."
}, },
{ {
"name": "Block of Coal", "name": "Block of Coal",
"regex": "(?:blocks? ?of ?coal)|(?:coal ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/coal-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/coal-block-crafting.png",
"ingredients": "9 Coal", "ingredients": "9 Coal",
"description": "Can be a compact way to store coal, and can be used for decoration and fuel." "description": "Can be a compact way to store coal, and can be used for decoration and fuel."
}, },
{ {
"name": "Block of Quartz", "name": "Block of Quartz",
"regex": "(?:blocks? ?of ?quartz)|(?:quartz ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/quartz-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/quartz-block-crafting.png",
"ingredients": "4 Nether Quartz", "ingredients": "4 Nether Quartz",
"description": "Mineral block used only for decoration." "description": "Mineral block used only for decoration."
}, },
{ {
"name": "Block of Redstone", "name": "Block of Redstone",
"regex": "(?:blocks? ?of ?redstone)|(?:redstone ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/redstone-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/redstone-block-crafting.png",
"ingredients": "9 Redstone", "ingredients": "9 Redstone",
"description": "Acts as a piston-movable redstone power source which cannot be turned off." "description": "Acts as a piston-movable redstone power source which cannot be turned off."
}, },
{ {
"name": "Bookshelf", "name": "Bookshelf",
"regex": "(?:book ?shelf)|(?:book ?shelves)|(?:book ?cases?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/bookshelf-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/bookshelf-crafting.png",
"ingredients": "6 Wood Planks + 3 Books", "ingredients": "6 Wood Planks + 3 Books",
"description": "Used as decoration or to give an Enchantment Table a boost for better enchantments." "description": "Used as decoration or to give an Enchantment Table a boost for better enchantments."
}, },
{ {
"name": "Bricks", "name": "Bricks",
"regex": "(?:bricks)|(?:blocks? ?of ?bricks?)|(?:bricks? ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/brick-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/brick-block-crafting.png",
"ingredients": "4 Brick", "ingredients": "4 Brick",
"description": "Decorative building material. " "description": "Decorative building material."
}, },
{ {
"name": "Chiseled Quartz Block", "name": "Chiseled Quartz Block",
"regex": "(?:chiseled ?blocks? ?of ?quartz)|(?:chiseled ?quartz ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/chiseled-quartz-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/chiseled-quartz-block-crafting.png",
"ingredients": "2 Quartz Slab", "ingredients": "2 Quartz Slab",
"description": "Used as decorative building material." "description": "Used as decorative building material."
}, },
{ {
"name": "Chiseled Sandstone", "name": "Chiseled Sandstone",
"regex": "(?:chiseled ?blocks? ?of ?sandstones?)|(?:chiseled ?sandstones? ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/chiseled-sandstone-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/chiseled-sandstone-crafting.png",
"ingredients": "2 Sandstone Slab", "ingredients": "2 Sandstone Slab",
"description": "Decorative form of sandstone with a Creeper face and various small carvings on it." "description": "Decorative form of sandstone with a Creeper face and various small carvings on it."
}, },
{ {
"name": "Clay (block)", "name": "Clay (block)",
"regex": "(?:blocks? ?of ?clay)|(?:clay ?blocks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/clay-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/clay-block-crafting.png",
"ingredients": "4 Clay", "ingredients": "4 Clay",
"description": "Can be used as building material or to store clay. It is commonly found below water" "description": "Can be used as building material or to store clay. It is commonly found below water"
}, },
{ {
"name": "Glowstone", "name": "Glowstone",
"regex": "(?:glow ?stones?)|(?:light ?stones?)|(?:bright ?stones?)|(?:brittle ?gold)|(?:brim ?stones?)|(?:australium)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/glowstone-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/glowstone-crafting.png",
"ingredients": "4 Glowstone Dust", "ingredients": "4 Glowstone Dust",
"description": "Glowstones emits more light than a normal torch. It will melt nearby snow and ice. Breaking a glowstone block, will give 2-4 Glowstone Dust back." "description": "Glowstones emits more light than a normal torch. It will melt nearby snow and ice. Breaking a glowstone block, will give 2-4 Glowstone Dust back."
}, },
{ {
"name": "Hay Bale", "name": "Hay Bale",
"regex": "(?:blocks? ?of ?(wheat|hay))|(?:(wheat|hay) ?blocks?)|(?:(wheat|hay) ?bales?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/hay-bale-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/hay-bale-crafting.png",
"ingredients": "9 Wheat", "ingredients": "9 Wheat",
"description": "Used as decorative block, or as food for horses. It is flammable." "description": "Used as decorative block, or as food for horses. It is flammable."
}, },
{ {
"name": "Jack o'Lantern", "name": "Jack o'Lantern",
"regex": "(?:jack ?o'? ?lanterns?)|(?:jack-o-lanterns?)|(?:pumpkins? ?(on|light|lighted))|(?:litpumpkins?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/jack-o-lantern-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/jack-o-lantern-crafting.png",
"ingredients": "1 Pumpkin + 1 Torch", "ingredients": "1 Pumpkin + 1 Torch",
"description": "Acts as a torch, but emits more light. Can stay lit underwater and melts nearby snow." "description": "Acts as a torch, but emits more light. Can stay lit underwater and melts nearby snow."
}, },
{ {
"name": "Nether Brick", "name": "Nether Brick",
"regex": "(?:nether ?bricks?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/nether-brick-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/nether-brick-crafting.png",
"ingredients": "4 Nether Bricks (item)", "ingredients": "4 Nether Brick (item)",
"description": "Block found only in the The Nether Fortresses. It is immune to Ghast fireballs." "description": "Block found only in the The Nether Fortresses. It is immune to Ghast fireballs."
}, },
{
"name": "Red Nether Brick",
"regex": "(?:red ?nether ?bricks?)|(?:nether ?bricks? ?red)",
"image": "/share/goodie/minecraft/images/red-nether-brick.png",
"ingredients": "2 Nether Brick (item) + 2 Nether Wart",
"description": "Decorative variant of Nether Brick. It is immune to Ghast fireballs."
},
{ {
"name": "Pillar Quartz Block", "name": "Pillar Quartz Block",
"regex": "(?:pillar ?blocks? ?of ?quartz)|(?:pillar ?quartz ?blocks?)|(?:pillars? ?of ?quartz)|(?:quartz ?pillars?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/pillar-quartz-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/pillar-quartz-block-crafting.png",
"ingredients": "2 Block of Quartz", "ingredients": "2 Block of Quartz",
"description": "Used as decorative building material." "description": "Used as decorative building material."
}, },
{ {
"name": "Sandstone", "name": "Sandstone",
"regex": "(?:(red)? ?sand ?stones?)|(?:(red)? ?stones? ?of ?sands?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/sandstone-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/sandstone-crafting.png",
"ingredients": "4 Sand", "ingredients": "4 Sand",
"description": "Used as a building material and commonly found in deserts. Sandstone is not influenced by gravity like normal Sand." "description": "Used as a building material and commonly found in deserts. Sandstone is not influenced by gravity like normal Sand."
}, },
{ {
"name": "Smooth Sandstone", "name": "Smooth Sandstone",
"regex": "(?:(red)? ?smooth ?sand ?stones?)|(?:(red)? ?smooth ?stones? ?of ?sands?)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/smooth-sandstone-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/smooth-sandstone-crafting.png",
"ingredients": "4 Sandstone", "ingredients": "4 Sandstone",
"description": "Decorative form of sandstone with a smoother texture." "description": "Decorative form of sandstone with a smoother texture."
}, },
{ {
"name": "Snow", "name": "Snow",
"regex": "(?:snow ?(blocks?)?)|(?:blocks? ?of ?snow)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/snow-block-crafting.png", "image": "http://www.minecraftxl.com/images/wiki/recipes/snow-block-crafting.png",
"ingredients": "4 Snowball", "ingredients": "4 Snowball",
"description": "Used as building material, decoration and storing snowballs. Snow blocks are harder to be destroyed than normal snow and are impervious to torches and water." "description": "Used as building material, decoration and storing snowballs. Snow blocks are harder to be destroyed than normal snow and are impervious to torches and water."
}, },
{ {
"name": "Black Hardened Clay", "name": "Snow (layer)",
"image": "http://www.minecraftxl.com/images/wiki/recipes/black-wool-crafting.png", "regex": "(?:snow ?(layers?)?)|(?:layers? ?of ?snow)",
"ingredients": "8 Hardened Clay + 1 Inc Sack", "image": "/share/goodie/minecraft/images/snow-layer.png",
"description": "Used as decoration or building material." "ingredients": "4 Snowball",
"description": "Used as building material, decoration and storing snowballs. Snow blocks are harder to be destroyed than normal snow and are impervious to torches and water."
}, },
{ {
"name": "Blue Hardened Clay", "name": "Colored Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/blue-wool-crafting.png", "regex": "(?:(colored|white|orange|magenta|light ?blue|yellow|lime|pink|gray|light ?gray|cyan|purple|blue|brown|green|red|black) ?(hard(ened)?|stained) ?clay)",
"ingredients": "8 Hardened Clay + 1 Lapis Lazuli", "image": "WARN",
"description": "Used as decoration or building material." "ingredients": "8 Hardened Clay + 1 Dye",
},
{
"name": "Brown Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/brown-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Cocoa Bean",
"description": "Used as decoration or building material."
},
{
"name": "Cyan Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/cyan-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Cyan Dye",
"description": "Used as decoration or building material."
},
{
"name": "Gray Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/gray-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Grey Dye",
"description": "Used as decoration or building material."
},
{
"name": "Green Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/green-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Cactus Green",
"description": "Used as decoration or building material."
},
{
"name": "Light Blue Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/light-blue-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Light Blue Dye",
"description": "Used as decoration or building material."
},
{
"name": "Light Gray Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/light-gray-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Light Gray Dye",
"description": "Used as decoration or building material."
},
{
"name": "Lime Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/lime-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Lime Dye",
"description": "Used as decoration or building material."
},
{
"name": "Magenta Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/magenta-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Magenta Dye",
"description": "Used as decoration or building material."
},
{
"name": "Orange Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/orange-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Orange Dye",
"description": "Used as decoration or building material."
},
{
"name": "Pink Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/pink-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Pink Dye",
"description": "Used as decoration or building material."
},
{
"name": "Purple Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/purple-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Purple Dye",
"description": "Used as decoration or building material."
},
{
"name": "Red Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/red-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Rose Red",
"description": "Used as decoration or building material."
},
{
"name": "White Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Bone Meal",
"description": "Used as decoration or building material."
},
{
"name": "Yellow Hardened Clay",
"image": "http://www.minecraftxl.com/images/wiki/recipes/yellow-wool-crafting.png",
"ingredients": "8 Hardened Clay + 1 Dandelion Yellow",
"description": "Used as decoration or building material." "description": "Used as decoration or building material."
}, },
{ {

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB