aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/FoodRecipies.cpp
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/FoodRecipies.cpp
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.World/FoodRecipies.cpp')
-rw-r--r--Minecraft.World/FoodRecipies.cpp122
1 files changed, 122 insertions, 0 deletions
diff --git a/Minecraft.World/FoodRecipies.cpp b/Minecraft.World/FoodRecipies.cpp
new file mode 100644
index 00000000..1497cd41
--- /dev/null
+++ b/Minecraft.World/FoodRecipies.cpp
@@ -0,0 +1,122 @@
+#include "stdafx.h"
+#include "net.minecraft.world.item.h"
+#include "DyePowderItem.h"
+#include "Tile.h"
+#include "Recipy.h"
+#include "Recipes.h"
+#include "FoodRecipies.h"
+
+void FoodRecipies::addRecipes(Recipes *r)
+{
+ // 4J-JEV: Bumped up in the list to avoid a colision with the title.
+ r->addShapedRecipy(new ItemInstance(Item::apple_gold, 1, 0), //
+ L"ssscicig",
+ L"###", //
+ L"#X#", //
+ L"###", //
+ L'#', Item::goldNugget, L'X', Item::apple,
+ L'F');
+
+ // 4J-PB - Moving the mushroom stew shaped->shapeless forward from 1.9, so it will not need the crafting table
+ r->addShapelessRecipy(new ItemInstance(Item::mushroomStew),
+ L"ttig",
+ Tile::mushroom1, Tile::mushroom2, Item::bowl,
+ L'F');
+
+ /*r->addShapedRecipy(new ItemInstance(Item::mushroomStew), //
+ L"sssctctcig",
+ L"Y", //
+ L"X", //
+ L"#", //
+
+ L'X', Tile::mushroom1,
+ L'Y', Tile::mushroom2,
+ L'#', Item::bowl,
+ L'F');*/
+
+ // 4J-PB - removing for the xbox game - we already have it above
+// r->addShapedRecipy(new ItemInstance(Item::mushroomStew), //
+// L"sssctctcig",
+// L"Y", //
+// L"X", //
+// L"#", //
+//
+// L'X', Tile::mushroom2,
+// L'Y', Tile::mushroom1,
+// L'#', Item::bowl,
+// L'F');
+//
+ r->addShapedRecipy(new ItemInstance(Item::cookie, 8), //
+ L"sczcig",
+ L"#X#", //
+
+ L'X', new ItemInstance(Item::dye_powder, 1, DyePowderItem::BROWN),
+ L'#', Item::wheat,
+ L'F');
+
+ r->addShapedRecipy(new ItemInstance(Tile::melon), //
+ L"ssscig",
+ L"MMM", //
+ L"MMM", //
+ L"MMM", //
+
+ L'M', Item::melon,
+ L'F');
+
+ r->addShapedRecipy(new ItemInstance(Item::seeds_melon), //
+ L"scig",
+ L"M", //
+
+ L'M', Item::melon,
+ L'F');
+
+ r->addShapedRecipy(new ItemInstance(Item::seeds_pumpkin, 4), //
+ L"sctg",
+ L"M", //
+
+ L'M', Tile::pumpkin,
+ L'F');
+
+ r->addShapelessRecipy(new ItemInstance(Item::pumpkinPie), //
+ L"tiig",
+ Tile::pumpkin, Item::sugar, Item::egg,
+ L'F');
+
+ r->addShapedRecipy(new ItemInstance(Item::apple_gold, 1, 1), //
+ L"sssctcig",
+ L"###", //
+ L"#X#", //
+ L"###", //
+ L'#', Tile::goldBlock, L'X', Item::apple,
+ L'F');
+
+ r->addShapedRecipy(new ItemInstance(Item::carrotGolden, 1, 0), //
+ L"ssscicig",
+ L"###", //
+ L"#X#", //
+ L"###", //
+
+ L'#', Item::goldNugget, L'X', Item::carrots,
+ L'F');
+
+ r->addShapelessRecipy(new ItemInstance(Item::fermentedSpiderEye), //
+ L"itig",
+ Item::spiderEye, Tile::mushroom1, Item::sugar,
+ L'F');
+
+ r->addShapelessRecipy(new ItemInstance(Item::speckledMelon), //
+ L"iig",
+ Item::melon, Item::goldNugget,
+ L'F');
+
+ r->addShapelessRecipy(new ItemInstance(Item::blazePowder, 2), //
+ L"ig",
+ Item::blazeRod,
+ L'F');
+
+ r->addShapelessRecipy(new ItemInstance(Item::magmaCream), //
+ L"iig",
+ Item::blazePowder, Item::slimeBall,
+ L'F');
+}
+