Messenger lens

This commit is contained in:
Vasco Lavos committed 2016-10-01 22:26:20 +01:00
1 parent 6c3ff3487e
commit 6f99b2fd6c
7 files changed
+54 -5

No files matched your search

@@ -170,6 +170,7 @@ public final class ModCraftingRecipes {
public static IRecipe recipeLensRedirect;
public static IRecipe recipeLensFirework;
public static IRecipe recipeLensFlare;
public static IRecipe recipeLensMessenger;
public static List<IRecipe> recipesMiniIsland;
public static IRecipe recipeGaiaPylon;
public static IRecipe recipeGatherDrum;
@@ -1125,7 +1126,14 @@ public final class ModCraftingRecipes {
addShapelessOreDictRecipe(new ItemStack(ModItems.lens, 1, 21), new ItemStack(ModItems.lens), new ItemStack(ModBlocks.elfGlass), LibOreDict.ELEMENTIUM);
recipeLensFlare = BotaniaAPI.getLatestAddedRecipe();
// Mini Island Recipes
// Messenger Lens Recipe
addOreDictRecipe(new ItemStack(ModItems.lens, 1, 22),
" P ", "PLP", " P ",
'P', new ItemStack(Items.PAPER),
'L', new ItemStack(ModItems.lens));
recipeLensMessenger = BotaniaAPI.getLatestAddedRecipe();
// Mini Island
for(int i = 0; i < 16; i++)
GameRegistry.addRecipe(new ItemStack(ModBlocks.floatingFlower, 1, i),
"F", "S", "D",
@@ -45,7 +45,7 @@ import java.util.List;
public class ItemLens extends ItemMod implements ILensControl, ICompositableLens, ITinyPlanetExcempt {
public static final int SUBTYPES = 22;
public static final int SUBTYPES = 23;
public static final int NORMAL = 0,
SPEED = 1,
@@ -68,7 +68,8 @@ public class ItemLens extends ItemMod implements ILensControl, ICompositableLens
WARP = 18,
REDIRECT = 19,
FIREWORK = 20,
FLARE = 21;
FLARE = 21,
MESSENGER = 22;
public static final int STORM = 5000;
@@ -108,6 +109,7 @@ public class ItemLens extends ItemMod implements ILensControl, ICompositableLens
setProps(REDIRECT, PROP_TOUCH | PROP_INTERACTION);
setProps(FIREWORK, PROP_TOUCH);
setProps(FLARE, PROP_CONTROL);
setProps(MESSENGER, PROP_POWER);
setLens(NORMAL, fallbackLens);
setLens(SPEED, new LensSpeed());
@@ -131,6 +133,7 @@ public class ItemLens extends ItemMod implements ILensControl, ICompositableLens
setLens(REDIRECT, new LensRedirect());
setLens(FIREWORK, new LensFirework());
setLens(FLARE, new LensFlare());
setLens(MESSENGER, new LensMessenger());
}
private static final String TAG_COLOR = "color";
@@ -0,0 +1,25 @@
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [01/10/2016, 20:37:46 (GMT)]
*/
package vazkii.botania.common.item.lens;
import net.minecraft.item.ItemStack;
import vazkii.botania.api.mana.BurstProperties;
public class LensMessenger extends Lens {
@Override
public void apply(ItemStack stack, BurstProperties props) {
props.maxMana /= 5;
props.ticksBeforeManaLoss *= 3;
props.motionModifier *= 3F;
}
}
@@ -449,7 +449,8 @@ public final class LexiconData {
new PageCraftingRecipe("7", ModCraftingRecipes.recipeLensVelocity), new PageText("8"),
new PageCraftingRecipe("9", ModCraftingRecipes.recipeLensPotency), new PageText("10"),
new PageCraftingRecipe("11", ModCraftingRecipes.recipeLensResistance), new PageText("12"),
new PageCraftingRecipe("13", ModCraftingRecipes.recipeLensEfficiency), new PageText("14"),
new PageCraftingRecipe("13", ModCraftingRecipes.recipeLensEfficiency), new PageText("38"),
new PageCraftingRecipe("39", ModCraftingRecipes.recipeLensMessenger), new PageText("14"),
new PageCraftingRecipe("15", ModCraftingRecipes.recipeLensBounce), new PageText("16"),
new PageCraftingRecipe("17", ModCraftingRecipes.recipeLensGravity), new PageText("18"),
new PageCraftingRecipe("19", ModCraftingRecipes.recipeLensBore), new PageText("20"),
@@ -183,7 +183,8 @@ public final class LibItemNames {
"lensWarp",
"lensRedirect",
"lensFirework",
"lensFlare"
"lensFlare",
"lensMessenger"
};
public static final String[] MANA_RESOURCE_NAMES = new String[] {