Skip to content

Commit

Permalink
Add a creative tablet recipe akin to the creative pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel '(Com)Buster' Sondaar committed Jun 12, 2022
1 parent a9e2c69 commit 2666676
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import vazkii.botania.common.block.tile.TileCraftCrate;
import vazkii.botania.common.core.handler.ConfigHandler;
import vazkii.botania.common.crafting.ModCraftingRecipes;
import vazkii.botania.common.item.ItemManaTablet;
import vazkii.botania.common.item.ItemSignalFlare;
import vazkii.botania.common.item.ItemTwigWand;
import vazkii.botania.common.item.ModItems;
Expand Down Expand Up @@ -207,16 +208,26 @@ public static void applyPatches() {
ModCraftingRecipes.recipeManaMirror = BotaniaAPI.getLatestAddedRecipe();

// Mana Tablet Recipe
addOreDictRecipe(new ItemStack(ModItems.manaTablet, 1, 10000),
addOreDictRecipe(new ItemStack(ModItems.manaTablet, 1, Constants.MANA_TABLET_MAGIC_META),
"SSS", "SPS", "SSS",
'S', LibOreDict.LIVING_ROCK,
'P', LibOreDict.MANA_PEARL);
addOreDictRecipe(new ItemStack(ModItems.manaTablet, 1, 10000),
addOreDictRecipe(new ItemStack(ModItems.manaTablet, 1, Constants.MANA_TABLET_MAGIC_META),
"SSS", "SDS", "SSS",
'S', LibOreDict.LIVING_ROCK,
'D', LibOreDict.MANA_DIAMOND);
ModCraftingRecipes.recipesManaTablet = BotaniaAPI.getLatestAddedRecipes(2);

// Creative tablet
ItemStack creativeTablet = new ItemStack(ModItems.manaTablet, 1, 500000);
ItemManaTablet.setMana(creativeTablet, 500000);
ItemManaTablet.setStackCreative(creativeTablet);
addOreDictRecipe(creativeTablet,
"III", "ITI", "III",
'I', "plateInfinity",
'T', new ItemStack(ModBlocks.pool, 1, Constants.POOL_META_CREATIVE)
);

// Mana Pump Recipe
addOreDictRecipe(new ItemStack(ModBlocks.pump),
"SSS", "IBI", "SSS",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ private Constants() {}
public static final int POOL_MAX_MANA_DILUTED = 10000;
public static final int POOL_MAX_MANA_REGULAR = 1000000;

public static final int MANA_TABLET_MAGIC_META = 10000;

public static ItemStack thaumcraftCrucible() {
return new ItemStack(Block.getBlockFromName(THAUMCRAFT_METAL_DEVICE), 1, THAUMCRAFT_METAL_META_CRUCIBLE);
}
Expand Down

0 comments on commit 2666676

Please sign in to comment.