the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 143 lines 3.1 kB view raw
1#include "stdafx.h" 2#include "net.minecraft.world.item.h" 3#include "net.minecraft.world.level.tile.h" 4#include "Recipy.h" 5#include "Recipes.h" 6#include "StructureRecipies.h" 7 8void StructureRecipies::addRecipes(Recipes *r) 9{ 10 r->addShapedRecipy(new ItemInstance(Tile::sandStone), // 11 L"ssctg", 12 L"##", // 13 L"##", // 14 15 L'#', Tile::sand, 16 L'S'); 17 18 r->addShapedRecipy(new ItemInstance(Tile::sandStone, 4, SandStoneTile::TYPE_SMOOTHSIDE), // 19 L"ssczg", 20 L"##", // 21 L"##", // 22 23 L'#', new ItemInstance(Tile::sandStone), 24 L'S'); 25 26 r->addShapedRecipy(new ItemInstance(Tile::sandStone, 1, SandStoneTile::TYPE_HEIROGLYPHS), // 27 L"ssczg", 28 L"#", // 29 L"#", // 30 31 L'#', new ItemInstance(Tile::stoneSlabHalf, 1, StoneSlabTile::SAND_SLAB), 32 L'S'); 33 34 r->addShapedRecipy(new ItemInstance(Tile::quartzBlock, 1, QuartzBlockTile::TYPE_CHISELED), // 35 L"ssczg", 36 L"#", // 37 L"#", // 38 39 L'#', new ItemInstance(Tile::stoneSlabHalf, 1, StoneSlabTile::QUARTZ_SLAB), 40 L'S'); 41 42 r->addShapedRecipy(new ItemInstance(Tile::quartzBlock, 2, QuartzBlockTile::TYPE_LINES_Y), // 43 L"ssczg", 44 L"#", // 45 L"#", // 46 47 L'#', new ItemInstance(Tile::quartzBlock, 1, QuartzBlockTile::TYPE_DEFAULT), 48 L'S'); 49 50 // 4J Stu - Changed the order, as the blocks that go with sandstone cause a 3-icon scroll 51 // that touches the text "Structures" in the title in 720 fullscreen. 52 r->addShapedRecipy(new ItemInstance(Tile::workBench), // 53 L"ssctg", 54 L"##", // 55 L"##", // 56 57 L'#', Tile::wood, 58 L'S'); 59 60 r->addShapedRecipy(new ItemInstance(Tile::furnace), // 61 L"sssctg", 62 L"###", // 63 L"# #", // 64 L"###", // 65 66 L'#', Tile::cobblestone, 67 L'S'); 68 69 r->addShapedRecipy(new ItemInstance((Tile*)Tile::chest), // 70 L"sssctg", 71 L"###", // 72 L"# #", // 73 L"###", // 74 75 L'#', Tile::wood, 76 L'S'); 77 78 r->addShapedRecipy(new ItemInstance(Tile::chest_trap), // 79 L"sctctg", 80 L"#-", // 81 82 L'#', Tile::chest, L'-', Tile::tripWireSource, 83 L'S'); 84 85 r->addShapedRecipy(new ItemInstance(Tile::enderChest), // 86 L"sssctcig", 87 L"###", // 88 L"#E#", // 89 L"###", // 90 91 L'#', Tile::obsidian, L'E', Item::eyeOfEnder, 92 L'S'); 93 94 r->addShapedRecipy(new ItemInstance(Tile::stoneBrick, 4), // 95 L"ssctg", 96 L"##", // 97 L"##", // 98 99 L'#', Tile::stone, 100 L'S'); 101 102 // 4J Stu - Move this into "Recipes" to change the order things are displayed on the crafting menu 103 //r->addShapedRecipy(new ItemInstance(Tile::ironFence, 16), // 104 // L"sscig", 105 // L"###", // 106 // L"###", // 107 108 // L'#', Item::ironIngot, 109 // L'S'); 110 111 r->addShapedRecipy(new ItemInstance(Tile::thinGlass, 16), // 112 L"ssctg", 113 L"###", // 114 L"###", // 115 116 L'#', Tile::glass, 117 L'D'); 118 119 r->addShapedRecipy(new ItemInstance(Tile::netherBrick, 1), // 120 L"sscig", 121 L"NN", // 122 L"NN", // 123 124 L'N', Item::netherbrick, 125 L'S'); 126 127 r->addShapedRecipy(new ItemInstance(Tile::redstoneLight, 1), // 128 L"ssscictg", 129 L" R ", // 130 L"RGR", // 131 L" R ", // 132 L'R', Item::redStone, 'G', Tile::glowstone, 133 L'M'); 134 135 r->addShapedRecipy(new ItemInstance(Tile::beacon, 1), // 136 L"sssctcictg", 137 L"GGG", // 138 L"GSG", // 139 L"OOO", // 140 141 L'G', Tile::glass, L'S', Item::netherStar, L'O', Tile::obsidian, 142 L'M'); 143}