mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Added the Redstone Root.
This commit is contained in:
1 parent
91a76bef8d
commit
78f55319dd
8 files changed
+27
-4
No files matched your search
@@ -110,6 +110,7 @@ public final class ModCrafingRecipes {
|
||||
public static IRecipe recipeAlchemyCatalyst;
|
||||
public static IRecipe recipeOpenCrate;
|
||||
public static IRecipe recipeForestEye;
|
||||
public static IRecipe recipeRedstoneRoot;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -585,6 +586,10 @@ public final class ModCrafingRecipes {
|
||||
'E', new ItemStack(Items.ender_eye));
|
||||
recipeForestEye = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Redstone Root Recipe
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(ModItems.manaResource, 1, 6), new ItemStack(Items.redstone), new ItemStack(Blocks.tallgrass, 1, 1));
|
||||
recipeRedstoneRoot = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Mana and Terrasteel Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -15,15 +15,17 @@ import java.util.List;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.IIcon;
|
||||
import vazkii.botania.api.recipe.IFlowerComponent;
|
||||
import vazkii.botania.client.core.helper.IconHelper;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
public class ItemManaResource extends ItemMod {
|
||||
public class ItemManaResource extends ItemMod implements IFlowerComponent {
|
||||
|
||||
final int types = 6;
|
||||
final int types = 7;
|
||||
IIcon[] icons;
|
||||
|
||||
public ItemManaResource() {
|
||||
@@ -54,4 +56,14 @@ public class ItemManaResource extends ItemMod {
|
||||
public IIcon getIconFromDamage(int par1) {
|
||||
return icons[Math.min(icons.length - 1, par1)];
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canFit(ItemStack stack, IInventory apothecary) {
|
||||
return stack.getItemDamage() == 6;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getParticleColor(ItemStack stack) {
|
||||
return 0x9b0000;
|
||||
}
|
||||
}
|
||||
@@ -146,6 +146,7 @@ public final class ModItems {
|
||||
OreDictionary.registerOre(LibOreDict.LIVINGWOOD_TWIG, new ItemStack(manaResource, 1, 3));
|
||||
OreDictionary.registerOre(LibOreDict.TERRA_STEEL, new ItemStack(manaResource, 1, 4));
|
||||
OreDictionary.registerOre(LibOreDict.LIFE_ESSENCE, new ItemStack(manaResource, 1, 5));
|
||||
OreDictionary.registerOre(LibOreDict.REDSTONE_ROOT, new ItemStack(manaResource, 1, 6));
|
||||
|
||||
// Vanilla ores (because forge doesn't do this by default for some reason)
|
||||
OreDictionary.registerOre("ingotIron", Items.iron_ingot);
|
||||
|
||||
@@ -227,7 +227,7 @@ public final class LexiconData {
|
||||
|
||||
// FUNCTIONAL FLOWERS ENTRIES
|
||||
functionalIntro = new BLexiconEntry(LibLexicon.FFLOWER_INTRO, categoryFunctionalFlowers);
|
||||
functionalIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"));
|
||||
functionalIntro.setPriority().setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageText("3"), new PageCraftingRecipe("4", ModCrafingRecipes.recipeRedstoneRoot));
|
||||
|
||||
jadedAmaranthus = new BLexiconEntry(LibLexicon.FFLOWER_JADED_AMARANTHUS, categoryFunctionalFlowers);
|
||||
jadedAmaranthus.setLexiconPages(new PageText("0"), new PagePetalRecipe("1", ModPetalRecipes.jadedAmaranthusRecipe));
|
||||
|
||||
@@ -80,6 +80,7 @@ public final class LibItemNames {
|
||||
LibResources.PREFIX_MOD + "manaDiamond",
|
||||
LibResources.PREFIX_MOD + "livingwoodTwig",
|
||||
LibResources.PREFIX_MOD + "terrasteel",
|
||||
LibResources.PREFIX_MOD + "lifeEssence"
|
||||
LibResources.PREFIX_MOD + "lifeEssence",
|
||||
LibResources.PREFIX_MOD + "redstoneRoot"
|
||||
};
|
||||
}
|
||||
@@ -24,6 +24,7 @@ public final class LibOreDict {
|
||||
public static final String LIVINGWOOD_TWIG = "livingwoodTwig";
|
||||
public static final String TERRA_STEEL = "ingotTerrasteel";
|
||||
public static final String LIFE_ESSENCE = "eternalLifeEssence";
|
||||
public static final String REDSTONE_ROOT = "redstoneRoot";
|
||||
|
||||
public static final String[] FLOWER = new String[] {
|
||||
"mysticFlowerWhite", "mysticFlowerOrange", "mysticFlowerMagenta", "mysticFlowerLightBlue", "mysticFlowerYellow", "mysticFlowerLime", "mysticFlowerPink", "mysticFlowerGray", "mysticFlowerLightGray", "mysticFlowerCyan", "mysticFlowerPurple", "mysticFlowerBlue", "mysticFlowerBrown", "mysticFlowerGreen", "mysticFlowerRed", "mysticFlowerBlack",
|
||||
|
||||
@@ -315,6 +315,7 @@ item.botania:icePendant.name=Snowflake Pendant
|
||||
item.botania:lavaPendant.name=Pyroclast Pendant
|
||||
item.botania:lifeEssence.name=Essence of Eternal Life
|
||||
item.botania:goldenLaurel.name=Golden Laurel Crown
|
||||
item.botania:redstoneRoot.name=Redstone Root
|
||||
|
||||
# GUI TEXT
|
||||
botania.gui.lexicon.header=Lexica Botania Index - Pick which category you would like to study:
|
||||
@@ -523,6 +524,8 @@ botania.entry.fIntro=An Introduction to Function
|
||||
botania.page.fIntro0=There are various places in which the &4Mana&0 a botanist generates can be put to use, one of them is an assortment of &4Functional Flowers&0.<br>These flowers will drain &4Mana&0 from a nearby &1Mana Pool&0 into themselves, in order to do whatever task they were created for.<br>It's to note that these can't receive power directly through &1Mana Spreaders&0.
|
||||
botania.page.fIntro1=All &4Functional Flowers&0, alike the &4Generating Flowers&0 contain a small buffer of &4Mana&0.<br>Standard rules for &4Mana&0 reading apply, right clicking with a &1Wand of the Forest&0 will update the mana readings.
|
||||
botania.page.fIntro2=It is important to keep in mind that these flowers memorize the &1Mana Pool&0 from which they should pull &4Mana&0 out of. They'll only pull from the nearest pool present at the time of the flower being placed (or the closest placed afterward, if none was present), and none other, unless that one is removed.
|
||||
botania.page.fIntro3=Lastly, some functional flowers utilize a &1Redstone Root&0 in their creation. If they do, the flower's effect can be toggled with a redstone signal.
|
||||
botania.page.fIntro4=&1Redstone Root&0 for Redstone Control
|
||||
|
||||
# -- JADED AMARANTHUS
|
||||
botania.entry.jadedAmaranthus=Jaded Amaranthus
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 3.0 KiB |
Reference in new issue
Block a user