mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Finishing the missiles up /o/
This commit is contained in:
1 parent
7c1821316d
commit
9a4f159942
7 files changed
+23
-3
No files matched your search
@@ -209,6 +209,7 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeRedStringFertilizer;
|
||||
public static IRecipe recipeRedStringComparator;
|
||||
public static IRecipe recipeRedStringRelay;
|
||||
public static IRecipe recipeMissileRod;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1340,6 +1341,14 @@ public final class ModCraftingRecipes {
|
||||
'M', new ItemStack(ModBlocks.spreader));
|
||||
recipeRedStringRelay = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Rod of the Arcane Barrage
|
||||
addOreDictRecipe(new ItemStack(ModItems.missileRod),
|
||||
"GDD", " TD", "T G",
|
||||
'G', LibOreDict.LIFE_ESSENCE,
|
||||
'D', LibOreDict.DRAGONSTONE,
|
||||
'T', LibOreDict.LIVINGWOOD_TWIG);
|
||||
recipeMissileRod = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Mana and Terrasteel Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -60,6 +60,7 @@ public class ItemMissileRod extends ItemMod implements IManaUsingItem {
|
||||
EntityMagicMissile missile = new EntityMagicMissile(player.worldObj);
|
||||
missile.setPosition(player.posX + (Math.random() - 0.5 * 0.1), player.posY + 2.4 + (Math.random() - 0.5 * 0.1), player.posZ + (Math.random() - 0.5 * 0.1));
|
||||
if(missile.getTarget()) {
|
||||
player.worldObj.playSoundAtEntity(player, "botania:missile", 0.6F, 0.8F + (float) Math.random() * 0.2F);
|
||||
player.worldObj.spawnEntityInWorld(missile);
|
||||
ManaItemHandler.requestManaExact(stack, player, COST_PER, true);
|
||||
}
|
||||
|
||||
@@ -148,6 +148,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry diviningRod;
|
||||
public static LexiconEntry gravityRod;
|
||||
public static LexiconEntry regenIvy;
|
||||
public static LexiconEntry missileRod;
|
||||
|
||||
public static LexiconEntry baublesIntro;
|
||||
public static LexiconEntry tinyPlanet;
|
||||
@@ -562,6 +563,9 @@ public final class LexiconData {
|
||||
regenIvy = new ALexiconEntry(LibLexicon.TOOL_REGEN_IVY, categoryTools);
|
||||
regenIvy.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeRegenIvy));
|
||||
|
||||
missileRod = new ALexiconEntry(LibLexicon.TOOL_MISSILE_ROD, categoryTools);
|
||||
missileRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCraftingRecipes.recipeMissileRod));
|
||||
|
||||
// BAUBLES ENTRIES
|
||||
baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles);
|
||||
baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2"));
|
||||
|
||||
@@ -129,7 +129,8 @@ public final class LibLexicon {
|
||||
public static final String TOOL_DIVINING_ROD = "diviningRod";
|
||||
public static final String TOOL_GRAVITY_ROD = "gravityRod";
|
||||
public static final String TOOL_REGEN_IVY = "regenIvy";
|
||||
|
||||
public static final String TOOL_MISSILE_ROD = "missileRod";
|
||||
|
||||
public static final String BAUBLE_INTRO = "bIntro";
|
||||
public static final String BAUBLE_TINY_PLANET = "tinyPlanet";
|
||||
public static final String BAUBLE_MANA_RING = "manaRing";
|
||||
|
||||
Reference in new issue
Block a user