Skip to content

Instantly share code, notes, and snippets.

@Pablissimo
Created July 29, 2019 12:10
Show Gist options
  • Save Pablissimo/d6235498fae0e7234b21eea6befd2f17 to your computer and use it in GitHub Desktop.
Save Pablissimo/d6235498fae0e7234b21eea6befd2f17 to your computer and use it in GitHub Desktop.
Cypher script for creating an initial Neo4j graph database representing the Minecraft crafting and forging recipe book
MERGE (n:Resource{name:"Wooden Plank"});
MERGE (n:Resource{name:"Stick"});
MERGE (n:Resource{name:"Torch"});
MERGE (n:Resource{name:"Crafting Table"});
MERGE (n:Resource{name:"Furnace"});
MERGE (n:Resource{name:"Chest"});
MERGE (n:Resource{name:"Wood Pickaxe"});
MERGE (n:Resource{name:"Stone Pickaxe"});
MERGE (n:Resource{name:"Iron Pickaxe"});
MERGE (n:Resource{name:"Gold Pickaxe"});
MERGE (n:Resource{name:"Diamond Pickaxe"});
MERGE (n:Resource{name:"Wood Shovel"});
MERGE (n:Resource{name:"Stone Shovel"});
MERGE (n:Resource{name:"Iron Shovel"});
MERGE (n:Resource{name:"Gold Shovel"});
MERGE (n:Resource{name:"Diamond Shovel"});
MERGE (n:Resource{name:"Wood Axe"});
MERGE (n:Resource{name:"Stone Axe"});
MERGE (n:Resource{name:"Iron Axe"});
MERGE (n:Resource{name:"Gold Axe"});
MERGE (n:Resource{name:"Diamond Axe"});
MERGE (n:Resource{name:"Wood Hoe"});
MERGE (n:Resource{name:"Stone Hoe"});
MERGE (n:Resource{name:"Iron Hoe"});
MERGE (n:Resource{name:"Gold Hoe"});
MERGE (n:Resource{name:"Diamond Hoe"});
MERGE (n:Resource{name:"Bucket"});
MERGE (n:Resource{name:"Flint and Steel"});
MERGE (n:Resource{name:"Fire Charge"});
MERGE (n:Resource{name:"Fishing Rod"});
MERGE (n:Resource{name:"Carrot on a Stick"});
MERGE (n:Resource{name:"Compass"});
MERGE (n:Resource{name:"Clock"});
MERGE (n:Resource{name:"Map"});
MERGE (n:Resource{name:"Shear"});
MERGE (n:Resource{name:"Wood Sword"});
MERGE (n:Resource{name:"Stone Sword"});
MERGE (n:Resource{name:"Iron Sword"});
MERGE (n:Resource{name:"Gold Sword"});
MERGE (n:Resource{name:"Diamond Sword"});
MERGE (n:Resource{name:"Bow"});
MERGE (n:Resource{name:"Arrow"});
MERGE (n:Resource{name:"Leather Helmet"});
MERGE (n:Resource{name:"Iron Helmet"});
MERGE (n:Resource{name:"Gold Helmet"});
MERGE (n:Resource{name:"Diamond Helmet"});
MERGE (n:Resource{name:"Leather Chestplate"});
MERGE (n:Resource{name:"Iron Chestplate"});
MERGE (n:Resource{name:"Gold Chestplate"});
MERGE (n:Resource{name:"Diamond Chestplate"});
MERGE (n:Resource{name:"Leather Legging"});
MERGE (n:Resource{name:"Iron Legging"});
MERGE (n:Resource{name:"Gold Legging"});
MERGE (n:Resource{name:"Diamond Legging"});
MERGE (n:Resource{name:"Leather Boot"});
MERGE (n:Resource{name:"Iron Boot"});
MERGE (n:Resource{name:"Gold Boot"});
MERGE (n:Resource{name:"Diamond Boot"});
MERGE (n:Resource{name:"Iron Block"});
MERGE (n:Resource{name:"Gold Block"});
MERGE (n:Resource{name:"Diamond Block"});
MERGE (n:Resource{name:"Emerald Block"});
MERGE (n:Resource{name:"Lapis Lazuli block"});
MERGE (n:Resource{name:"Glowstone"});
MERGE (n:Resource{name:"Clay Block"});
MERGE (n:Resource{name:"Brick"});
MERGE (n:Resource{name:"Stone Brick"});
MERGE (n:Resource{name:"Sandstone"});
MERGE (n:Resource{name:"Smooth Sandstone"});
MERGE (n:Resource{name:"Decorative Sandstone"});
MERGE (n:Resource{name:"Snow Block"});
MERGE (n:Resource{name:"Wool Block"});
MERGE (n:Resource{name:"Wooden Slab"});
MERGE (n:Resource{name:"Stone Slab"});
MERGE (n:Resource{name:"Sandstone Slab"});
MERGE (n:Resource{name:"Stone Brick Slab"});
MERGE (n:Resource{name:"Brick Slab"});
MERGE (n:Resource{name:"Cobblestone Slab"});
MERGE (n:Resource{name:"Wood Stair"});
MERGE (n:Resource{name:"Cobblestone Stair"});
MERGE (n:Resource{name:"Wood Door"});
MERGE (n:Resource{name:"Iron Door"});
MERGE (n:Resource{name:"Trapdoor"});
MERGE (n:Resource{name:"Ladder"});
MERGE (n:Resource{name:"Fence"});
MERGE (n:Resource{name:"Fence Gate"});
MERGE (n:Resource{name:"Nether Brick Fence"});
MERGE (n:Resource{name:"Cobblestone Wall"});
MERGE (n:Resource{name:"Mossy Cobblestone Wall"});
MERGE (n:Resource{name:"Iron Bar"});
MERGE (n:Resource{name:"Glass Pane"});
MERGE (n:Resource{name:"Bread"});
MERGE (n:Resource{name:"Mushroom Stew"});
MERGE (n:Resource{name:"Cake"});
MERGE (n:Resource{name:"Cookie"});
MERGE (n:Resource{name:"Pumpkin Pie"});
MERGE (n:Resource{name:"Golden Carrot"});
MERGE (n:Resource{name:"Golden Apple"});
MERGE (n:Resource{name:"Enchanted Golden Apple"});
MERGE (n:Resource{name:"Melon"});
MERGE (n:Resource{name:"Paper"});
MERGE (n:Resource{name:"Book"});
MERGE (n:Resource{name:"Book and Quill"});
MERGE (n:Resource{name:"Sign"});
MERGE (n:Resource{name:"Painting"});
MERGE (n:Resource{name:"Item Frame"});
MERGE (n:Resource{name:"Flower Pot"});
MERGE (n:Resource{name:"Bowl"});
MERGE (n:Resource{name:"Sugar"});
MERGE (n:Resource{name:"Pumpkin Seed"});
MERGE (n:Resource{name:"Melon Seed"});
MERGE (n:Resource{name:"Glistening Melon"});
MERGE (n:Resource{name:"Gold Ingot"});
MERGE (n:Resource{name:"Bed"});
MERGE (n:Resource{name:"Beacon"});
MERGE (n:Resource{name:"Cauldron"});
MERGE (n:Resource{name:"Enchantment Table"});
MERGE (n:Resource{name:"Ender Chest"});
MERGE (n:Resource{name:"Anvil"});
MERGE (n:Resource{name:"Blaze Powder"});
MERGE (n:Resource{name:"Brewing Stand"});
MERGE (n:Resource{name:"Eye of Ender"});
MERGE (n:Resource{name:"Fermented Spider Eye"});
MERGE (n:Resource{name:"Bottle"});
MERGE (n:Resource{name:"Magma Cream"});
MERGE (n:Resource{name:"Wood"});
MERGE (n:Resource{name:"Coal"});
MERGE (n:Resource{name:"Cobblestone"});
MERGE (n:Resource{name:"Stone Block"});
MERGE (n:Resource{name:"Iron Ingot"});
MERGE (n:Resource{name:"Diamond"});
MERGE (n:Resource{name:"Flint"});
MERGE (n:Resource{name:"Gunpowder"});
MERGE (n:Resource{name:"String"});
MERGE (n:Resource{name:"Carrot"});
MERGE (n:Resource{name:"Redstone Dust"});
MERGE (n:Resource{name:"Feather"});
MERGE (n:Resource{name:"Leather"});
MERGE (n:Resource{name:"Emerald"});
MERGE (n:Resource{name:"Lapis Lazuli"});
MERGE (n:Resource{name:"Glowstone Dust"});
MERGE (n:Resource{name:"Clay Ball"});
MERGE (n:Resource{name:"Clay Brick"});
MERGE (n:Resource{name:"Sand"});
MERGE (n:Resource{name:"Snowball"});
MERGE (n:Resource{name:"Stone"});
MERGE (n:Resource{name:"Nether Brick"});
MERGE (n:Resource{name:"Mossy Cobblestone"});
MERGE (n:Resource{name:"Glass"});
MERGE (n:Resource{name:"Wheat"});
MERGE (n:Resource{name:"Red Mushroom"});
MERGE (n:Resource{name:"Brown Mushroom"});
MERGE (n:Resource{name:"Milk"});
MERGE (n:Resource{name:"Egg"});
MERGE (n:Resource{name:"Cocoa Bean"});
MERGE (n:Resource{name:"Pumpkin"});
MERGE (n:Resource{name:"Gold Nugget"});
MERGE (n:Resource{name:"Apple"});
MERGE (n:Resource{name:"Melon Slice"});
MERGE (n:Resource{name:"Sugar Cane"});
MERGE (n:Resource{name:"Ink Sac"});
MERGE (n:Resource{name:"Wool"});
MERGE (n:Resource{name:"Nether Star"});
MERGE (n:Resource{name:"Obsidian"});
MERGE (n:Resource{name:"Eye Of Ender"});
MERGE (n:Resource{name:"Blaze Rod"});
MERGE (n:Resource{name:"Ender Pearl"});
MERGE (n:Resource{name:"Spider Eye"});
MERGE (n:Resource{name:"Slime Ball"});
MERGE (n:Resource{name:"Cooked Chicken"});
MERGE (n:Resource{name:"Cooked Porkchop"});
MERGE (n:Resource{name:"Steak"});
MERGE (n:Resource{name:"Cooked Fish"});
MERGE (n:Resource{name:"Baked Potato"});
MERGE (n:Resource{name:"Charcoal"});
MERGE (n:Resource{name:"Cactus Green"});
MERGE (n:Resource{name:"Raw Chicken"});
MERGE (n:Resource{name:"Fuel"});
MERGE (n:Resource{name:"Raw Porkchop"});
MERGE (n:Resource{name:"Raw Beef"});
MERGE (n:Resource{name:"Raw Fish"});
MERGE (n:Resource{name:"Potato"});
MERGE (n:Resource{name:"Iron Ore"});
MERGE (n:Resource{name:"Gold Ore"});
MERGE (n:Resource{name:"Clay"});
MERGE (n:Resource{name:"Netherrack"});
MERGE (n:Resource{name:"Cactu"});
CREATE CONSTRAINT ON (node:Resource) ASSERT (node.name) IS UNIQUE;
MATCH (n1:Resource{name:"Wooden Plank"}), (n2:Resource{name:"Wood"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Stick"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Torch"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Torch"}), (n2:Resource{name:"Coal"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Crafting Table"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Furnace"}), (n2:Resource{name:"Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Chest"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Wood Pickaxe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Wood Pickaxe"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Stone Pickaxe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Stone Pickaxe"}), (n2:Resource{name:"Stone Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Iron Pickaxe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Iron Pickaxe"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Gold Pickaxe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Gold Pickaxe"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Diamond Pickaxe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Diamond Pickaxe"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Wood Shovel"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Wood Shovel"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Stone Shovel"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Stone Shovel"}), (n2:Resource{name:"Stone Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Iron Shovel"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Iron Shovel"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Gold Shovel"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Gold Shovel"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Diamond Shovel"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Diamond Shovel"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Wood Axe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Wood Axe"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Stone Axe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Stone Axe"}), (n2:Resource{name:"Stone Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Iron Axe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Iron Axe"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Gold Axe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Gold Axe"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Diamond Axe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Diamond Axe"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Wood Hoe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Wood Hoe"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Stone Hoe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Stone Hoe"}), (n2:Resource{name:"Stone Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Iron Hoe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Iron Hoe"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Gold Hoe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Gold Hoe"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Diamond Hoe"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Diamond Hoe"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Bucket"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Flint and Steel"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Flint and Steel"}), (n2:Resource{name:"Flint"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fire Charge"}), (n2:Resource{name:"Blaze Powder"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fire Charge"}), (n2:Resource{name:"Coal"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fire Charge"}), (n2:Resource{name:"Gunpowder"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fishing Rod"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Fishing Rod"}), (n2:Resource{name:"String"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Carrot on a Stick"}), (n2:Resource{name:"Fishing Rod"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Carrot on a Stick"}), (n2:Resource{name:"Carrot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Compass"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Compass"}), (n2:Resource{name:"Redstone Dust"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Clock"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Clock"}), (n2:Resource{name:"Redstone Dust"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Map"}), (n2:Resource{name:"Paper"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Map"}), (n2:Resource{name:"Compass"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Shear"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Wood Sword"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Wood Sword"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Stone Sword"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Stone Sword"}), (n2:Resource{name:"Stone Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Iron Sword"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Iron Sword"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Gold Sword"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Gold Sword"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Diamond Sword"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Diamond Sword"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Bow"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Bow"}), (n2:Resource{name:"String"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Arrow"}), (n2:Resource{name:"Flint"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Arrow"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Arrow"}), (n2:Resource{name:"Feather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Leather Helmet"}), (n2:Resource{name:"Leather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=5;
MATCH (n1:Resource{name:"Iron Helmet"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=5;
MATCH (n1:Resource{name:"Gold Helmet"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=5;
MATCH (n1:Resource{name:"Diamond Helmet"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=5;
MATCH (n1:Resource{name:"Leather Chestplate"}), (n2:Resource{name:"Leather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Iron Chestplate"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Gold Chestplate"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Diamond Chestplate"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Leather Legging"}), (n2:Resource{name:"Leather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=7;
MATCH (n1:Resource{name:"Iron Legging"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=7;
MATCH (n1:Resource{name:"Gold Legging"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=7;
MATCH (n1:Resource{name:"Diamond Legging"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=7;
MATCH (n1:Resource{name:"Leather Boot"}), (n2:Resource{name:"Leather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Iron Boot"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Gold Boot"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Diamond Boot"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Iron Block"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Gold Block"}), (n2:Resource{name:"Gold Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Diamond Block"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Emerald Block"}), (n2:Resource{name:"Emerald"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Lapis Lazuli block"}), (n2:Resource{name:"Lapis Lazuli"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Glowstone"}), (n2:Resource{name:"Glowstone Dust"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Clay Block"}), (n2:Resource{name:"Clay Ball"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Brick"}), (n2:Resource{name:"Clay Brick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Stone Brick"}), (n2:Resource{name:"Stone Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Sandstone"}), (n2:Resource{name:"Sand"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Smooth Sandstone"}), (n2:Resource{name:"Sandstone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Decorative Sandstone"}), (n2:Resource{name:"Sandstone Slab"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Snow Block"}), (n2:Resource{name:"Snowball"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Wool Block"}), (n2:Resource{name:"String"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Wooden Slab"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Stone Slab"}), (n2:Resource{name:"Stone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Sandstone Slab"}), (n2:Resource{name:"Sandstone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Stone Brick Slab"}), (n2:Resource{name:"Stone Brick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Brick Slab"}), (n2:Resource{name:"Brick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Cobblestone Slab"}), (n2:Resource{name:"Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Wood Stair"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Cobblestone Stair"}), (n2:Resource{name:"Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Wood Door"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Iron Door"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Trapdoor"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Ladder"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=7;
MATCH (n1:Resource{name:"Fence"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Fence Gate"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Fence Gate"}), (n2:Resource{name:"Wooden Slab"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Nether Brick Fence"}), (n2:Resource{name:"Nether Brick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Cobblestone Wall"}), (n2:Resource{name:"Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Mossy Cobblestone Wall"}), (n2:Resource{name:"Mossy Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Iron Bar"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Glass Pane"}), (n2:Resource{name:"Glass"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Bread"}), (n2:Resource{name:"Wheat"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Mushroom Stew"}), (n2:Resource{name:"Red Mushroom"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Mushroom Stew"}), (n2:Resource{name:"Brown Mushroom"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Mushroom Stew"}), (n2:Resource{name:"Bowl"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cake"}), (n2:Resource{name:"Milk"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Cake"}), (n2:Resource{name:"Sugar"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Cake"}), (n2:Resource{name:"Egg"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cake"}), (n2:Resource{name:"Wheat"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Cookie"}), (n2:Resource{name:"Wheat"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Cookie"}), (n2:Resource{name:"Cocoa Bean"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Pumpkin Pie"}), (n2:Resource{name:"Pumpkin"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Pumpkin Pie"}), (n2:Resource{name:"Sugar"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Pumpkin Pie"}), (n2:Resource{name:"Egg"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Golden Carrot"}), (n2:Resource{name:"Gold Nugget"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Golden Carrot"}), (n2:Resource{name:"Carrot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Golden Apple"}), (n2:Resource{name:"Gold Nugget"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Golden Apple"}), (n2:Resource{name:"Apple"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Enchanted Golden Apple"}), (n2:Resource{name:"Gold Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Enchanted Golden Apple"}), (n2:Resource{name:"Apple"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Melon"}), (n2:Resource{name:"Melon Slice"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Paper"}), (n2:Resource{name:"Sugar Cane"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Book"}), (n2:Resource{name:"Paper"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Book"}), (n2:Resource{name:"Leather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Book and Quill"}), (n2:Resource{name:"Book"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Book and Quill"}), (n2:Resource{name:"Feather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Book and Quill"}), (n2:Resource{name:"Ink Sac"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Sign"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=6;
MATCH (n1:Resource{name:"Sign"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Painting"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Painting"}), (n2:Resource{name:"Wool"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Item Frame"}), (n2:Resource{name:"Stick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Item Frame"}), (n2:Resource{name:"Leather"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Clay Brick"}), (n2:Resource{name:"Clay"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Bowl"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Sugar"}), (n2:Resource{name:"Sugar Cane"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Pumpkin Seed"}), (n2:Resource{name:"Pumpkin"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Melon Seed"}), (n2:Resource{name:"Melon Slice"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Glistening Melon"}), (n2:Resource{name:"Melon Slice"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Glistening Melon"}), (n2:Resource{name:"Gold Nugget"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Gold Ingot"}), (n2:Resource{name:"Gold Nugget"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=9;
MATCH (n1:Resource{name:"Bed"}), (n2:Resource{name:"Wool"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Bed"}), (n2:Resource{name:"Wooden Plank"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Beacon"}), (n2:Resource{name:"Glass"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=5;
MATCH (n1:Resource{name:"Beacon"}), (n2:Resource{name:"Nether Star"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Beacon"}), (n2:Resource{name:"Obsidian"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Cauldron"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=7;
MATCH (n1:Resource{name:"Enchantment Table"}), (n2:Resource{name:"Book"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Enchantment Table"}), (n2:Resource{name:"Diamond"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=2;
MATCH (n1:Resource{name:"Enchantment Table"}), (n2:Resource{name:"Obsidian"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Ender Chest"}), (n2:Resource{name:"Obsidian"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=8;
MATCH (n1:Resource{name:"Ender Chest"}), (n2:Resource{name:"Eye Of Ender"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Anvil"}), (n2:Resource{name:"Iron Block"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Anvil"}), (n2:Resource{name:"Iron Ingot"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=4;
MATCH (n1:Resource{name:"Blaze Powder"}), (n2:Resource{name:"Blaze Rod"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Brewing Stand"}), (n2:Resource{name:"Blaze Rod"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Brewing Stand"}), (n2:Resource{name:"Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Eye of Ender"}), (n2:Resource{name:"Blaze Powder"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Eye of Ender"}), (n2:Resource{name:"Ender Pearl"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fermented Spider Eye"}), (n2:Resource{name:"Spider Eye"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fermented Spider Eye"}), (n2:Resource{name:"Brown Mushroom"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Fermented Spider Eye"}), (n2:Resource{name:"Sugar"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Bottle"}), (n2:Resource{name:"Glass"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
MATCH (n1:Resource{name:"Magma Cream"}), (n2:Resource{name:"Slime Ball"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Magma Cream"}), (n2:Resource{name:"Blaze Powder"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cooked Chicken"}), (n2:Resource{name:"Raw Chicken"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cooked Chicken"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cooked Porkchop"}), (n2:Resource{name:"Raw Porkchop"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cooked Porkchop"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Steak"}), (n2:Resource{name:"Raw Beef"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Steak"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cooked Fish"}), (n2:Resource{name:"Raw Fish"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cooked Fish"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Baked Potato"}), (n2:Resource{name:"Potato"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Baked Potato"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Charcoal"}), (n2:Resource{name:"Wood"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Charcoal"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Iron Ingot"}), (n2:Resource{name:"Iron Ore"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Iron Ingot"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Gold Ingot"}), (n2:Resource{name:"Gold Ore"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Gold Ingot"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Glass"}), (n2:Resource{name:"Sand"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Glass"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Stone"}), (n2:Resource{name:"Cobblestone"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Stone"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Clay Brick"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Nether Brick"}), (n2:Resource{name:"Netherrack"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Nether Brick"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cactus Green"}), (n2:Resource{name:"Cactu"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Cactus Green"}), (n2:Resource{name:"Fuel"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=1;
MATCH (n1:Resource{name:"Flower Pot"}), (n2:Resource{name:"Clay Brick"}) MERGE (n1)-[r:REQUIRES]->(n2) SET r.qty=3;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment