using yes instead of 1 and localImage instead of localPath

master
1122131 2016-07-19 18:41:26 +00:00
parent 2201928543
commit 64e5f98148
2 changed files with 43 additions and 43 deletions

View File

@ -47,9 +47,9 @@ handle remainder => sub {
#get image correct path
my $image;
my $imageName = $recipe->{'imageName'};
my $localPath = $recipe->{'localPath'};
my $localImage = $recipe->{'localImage'};
if ($localPath == "1") {
if ($localImage =~ "yes") {
$image = "/share/goodie/minecraft/$goodieVersion/images/$imageName";
} else {
$image = $imageName;

View File

@ -6,7 +6,7 @@
"imageName": "chest.gif",
"ingredients": "8 Wood Planks",
"description": "Stores up to 27 stacks of items or blocks.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Crafting Table",
@ -14,7 +14,7 @@
"imageName": "crafting-table.gif",
"ingredients": "4 Wood Planks",
"description": "When placed on the ground, it provides use of the 3×3 crafting grid.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Furnace",
@ -29,7 +29,7 @@
"imageName": "stick.gif",
"ingredients": "2 Wood Planks",
"description": "Used for crafting many tools and items.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Torch",
@ -37,7 +37,7 @@
"imageName": "torch.gif",
"ingredients": "1 Stick + 1 Coal OR 1 Charcoal",
"description": "Emits light. It also has the ability to melt ice and snow.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Wood Planks",
@ -45,7 +45,7 @@
"imageName": "wood-planks.gif",
"ingredients": "1 Wood",
"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.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Anvil",
@ -179,7 +179,7 @@
"imageName": "snow-layer.png",
"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.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Colored Hardened Clay",
@ -187,7 +187,7 @@
"imageName": "colored-hardened-clay.png",
"ingredients": "8 Hardened Clay + 1 Dye",
"description": "Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Stone Bricks",
@ -552,7 +552,7 @@
"imageName": "iron_trapdoor.png",
"ingredients": "4 Iron Ingot",
"description": "Functions as a horizontal door but are only 1x1 block in size. Iron trapdoors can only be opened with redstone power.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Trapped Chest",
@ -713,7 +713,7 @@
"imageName": "fence.png",
"ingredients": "4 Wood Planks + 2 Stick",
"description": "Used as a barrier that players and mobs cannot jump over, with the exception of spiders and spider jockeys. It is 1.5 blocks high for mobs and players, but only 1 to other blocks.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Fence Gate",
@ -735,7 +735,7 @@
"imageName": "firework(incomplete).png",
"ingredients": "1 OR 2 OR 3 Gunpowder + Paper + Firework Star",
"description": "Firework that can be launched into the sky and explore. Adding more gunpowder increases the duration of the rocket. Up to three gunpowder can be used. Multiple firework stars can also be used, in which case all will go off simultaneously when the rocket detonates. By limiting the amount of gunpowder to one, it is possible to use up to seven firework stars.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Firework Star",
@ -995,7 +995,7 @@
"imageName": "colored-wool(incomplete).png",
"ingredients": "1 Wool + 1 Dye",
"description": "Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Diorite",
@ -1003,7 +1003,7 @@
"imageName": "diorite.png",
"ingredients": "2 Cobblestone + 2 Quartz",
"description": "Igneous rock that can be found in caves. Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Polished Diorite",
@ -1011,7 +1011,7 @@
"imageName": "polished-diorite.png",
"ingredients": "4 Diorite",
"description": "Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Andesite",
@ -1019,7 +1019,7 @@
"imageName": "andesite.png",
"ingredients": "1 Cobblestone + 1 Diorite",
"description": "Igneous rock that can be found in caves. Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Polished Andesite",
@ -1027,7 +1027,7 @@
"imageName": "polished_andesite.png",
"ingredients": "4 Andesite",
"description": "Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Granite",
@ -1035,7 +1035,7 @@
"imageName": "granite.png",
"ingredients": "1 Diorite + 1 Quartz",
"description": "Igneous rock that can be found in caves. Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Polished Granite",
@ -1043,7 +1043,7 @@
"imageName": "polished_granite.png",
"ingredients": "4 Granite",
"description": "Used as decoration or building material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Coarse Dirt",
@ -1051,7 +1051,7 @@
"imageName": "coarse_dirt.png",
"ingredients": "2 Dirt + 2 Gravel",
"description": "Variation of dirt that will not grow grass",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Prismarine",
@ -1059,7 +1059,7 @@
"imageName": "prismarine.png",
"ingredients": "4 Prismarine Shard",
"description": "Stone-like material that only appears underwater in ocean monuments.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Prismarine Bricks",
@ -1067,7 +1067,7 @@
"imageName": "prismarine-bricks.png",
"ingredients": "9 Prismarine Shard",
"description": "Decorative form of prismarine with a sawtooth-edged brick pattern.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Dark Prismarine",
@ -1075,7 +1075,7 @@
"imageName": "dark-prismarine.png",
"ingredients": "8 Prismarine Shard + 1 ink sac",
"description": "Decorative form of prismarine; it is dark, with a tight grid pattern.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Sea Lantern",
@ -1083,7 +1083,7 @@
"imageName": "sea-lantern.png",
"ingredients": "4 Prismarine Shard + 5 Prismarine Crystals",
"description": "Underwater light sources that appear in ocean monuments.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Slime Block",
@ -1091,7 +1091,7 @@
"imageName": "slime-block.png",
"ingredients": "9 Slimeball",
"description": "Transparent block with unique properties: it can bounce entities and when you land on it you don't take fall damage",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Banner",
@ -1099,7 +1099,7 @@
"imageName": "banner(incomplete).png",
"ingredients": "1 stick + 6 Wool",
"description": "Tall decorative blocks, featuring a field that is highly customizable using dyes.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Rabbit Stew",
@ -1107,7 +1107,7 @@
"imageName": "rabbit_stew.png",
"ingredients": "1 carrot + 1 Cooked Rabbit + 1 Baked Potato + 1 Mushroom + 1 Bowl",
"description": "Food item that can be eaten by the player. Restores 5 hunger points. The bowl can be reused.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Leather",
@ -1115,7 +1115,7 @@
"imageName": "leather.png",
"ingredients": "4 Rabbit Hide",
"description": "Versatile crafting material.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Armor Stand",
@ -1123,7 +1123,7 @@
"imageName": "armor_stand.png",
"ingredients": "1 Stone Slab + 6 Stick",
"description": "Entity that is able to hold and display wearable items.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "End Rod",
@ -1131,7 +1131,7 @@
"imageName": "end-rod.png",
"ingredients": "1 Popped Chorus Fruit + 1 Blaze Rod",
"description": "Decorative light sources that emit white particles.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "End Stone Bricks",
@ -1139,7 +1139,7 @@
"imageName": "end_stone_bricks.png",
"ingredients": "4 End Stone",
"description": "End stone-based brick. Used for decoration or as a building block.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Purpur Block",
@ -1147,7 +1147,7 @@
"imageName": "purpur_block.png",
"ingredients": "4 Popped Chorus Fruit",
"description": "Decorative blocks that are naturally generated in end city dungeons in the End.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Purpur Pillar",
@ -1155,7 +1155,7 @@
"imageName": "purpur_pillar.png",
"ingredients": "2 Purpur Slab",
"description": "Decorative blocks that are naturally generated in end city dungeons in the End.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Beetroot Soup",
@ -1163,7 +1163,7 @@
"imageName": "beetroot_soup.gif",
"ingredients": "6 Beetroot + 1 Bowl",
"description": "Eat to restore hunger. Restores 3 hunger points. The bowl can be reused.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "End Crystal",
@ -1171,7 +1171,7 @@
"imageName": "end_crystal.png",
"ingredients": "3 Obsidian + 5 Glass + 1 Eye of Ender",
"description": "Item and an entity found in the End. Explodes when hit.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Shield",
@ -1179,7 +1179,7 @@
"imageName": "shield.gif",
"ingredients": "5 Wood Planks + 1 Iron Ingot",
"description": "Tool used for protecting the player against attacks.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Spectral Arrow",
@ -1187,7 +1187,7 @@
"imageName": "spectral_arrow.png",
"ingredients": "1 Arrow + 4 Glowstone Dust",
"description": "Imbues the Glowing status effect for 10 seconds. The Glowing effect creates an outline of the target, which is visible through blocks, and colored based on the target's team (white by default). If a bow is enchanted with Infinity, spectral arrows will still be consumed.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Tipped Arrow",
@ -1195,7 +1195,7 @@
"imageName": "tipped_arrow(incomplete).png",
"ingredients": "8 Arrow + 1 Lingering Potion",
"description": "Imbue a potion effect when hitting a mob or player. If a bow is enchanted with Infinity, tipped arrows will still be consumed.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Magma Block",
@ -1203,7 +1203,7 @@
"imageName": "magma_block.png",
"ingredients": "4 Magma Cream",
"description": "Light-emitting naturally occurring blocks found in the Nether that cause fire damage when stepped on.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Nether Wart Block",
@ -1211,7 +1211,7 @@
"imageName": "nether_wart_block.png",
"ingredients": "9 Nether Warts",
"description": "Decorative blocks crafted using nether wart. Cannot store nether wart, due to the fact that it cannot be crafted back into nine nether wart",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Red Nether Brick",
@ -1219,7 +1219,7 @@
"imageName": "red-nether-brick.png",
"ingredients": "2 Nether Brick (item) + 2 Nether Wart",
"description": "Decorative variant of Nether Brick. It is immune to Ghast fireballs.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Bone Block",
@ -1227,7 +1227,7 @@
"imageName": "bone_block.png",
"ingredients": "2 Nether Brick (item) + 2 Nether Wart",
"description": "Decorative block that can face in different directions.",
"localPath": "1"
"localImage": "yes"
},
{
"name": "Colored Shield",
@ -1235,7 +1235,7 @@
"imageName": "colored-shield(incomplete).gif",
"ingredients": "1 Shield + 1 Banner",
"description": "Personalized tool used for protecting the player against attacks. It cannot be repainted or washed in a cauldron.",
"localPath": "1"
"localImage": "yes"
}
]
}