mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +00:00
Recipe/docs for Manaweave.
This commit is contained in:
1 parent
585f36421c
commit
ba356af922
5 files changed
+62
No files matched your search
@@ -282,6 +282,11 @@ public final class ModCraftingRecipes {
|
||||
public static IRecipe recipeFireChakram;
|
||||
public static IRecipe recipeThunderSword;
|
||||
public static IRecipe recipeBellows;
|
||||
public static IRecipe recipeManaweaveCloth;
|
||||
public static IRecipe recipeManaweaveHelm;
|
||||
public static IRecipe recipeManaweaveChest;
|
||||
public static IRecipe recipeManaweaveLegs;
|
||||
public static IRecipe recipeManaweaveBoots;
|
||||
|
||||
// Garden of Glass
|
||||
public static IRecipe recipeRootToSapling;
|
||||
@@ -1934,6 +1939,30 @@ public final class ModCraftingRecipes {
|
||||
'L', new ItemStack(Items.leather));
|
||||
recipeBellows = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Manaweave Cloth Recipe
|
||||
addOreDictRecipe(new ItemStack(ModItems.manaResource, 1, 22),
|
||||
"SS", "SS",
|
||||
'S', LibOreDict.MANA_STRING);
|
||||
recipeManaweaveCloth = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Manaweave Armor Recipes
|
||||
addOreDictRecipe(new ItemStack(ModItems.manaweaveHelm),
|
||||
"SSS", "S S",
|
||||
'S', LibOreDict.MANAWEAVE_CLOTH);
|
||||
recipeManaweaveHelm = BotaniaAPI.getLatestAddedRecipe();
|
||||
addOreDictRecipe(new ItemStack(ModItems.manaweaveChest),
|
||||
"S S", "SSS", "SSS",
|
||||
'S', LibOreDict.MANAWEAVE_CLOTH);
|
||||
recipeManaweaveChest = BotaniaAPI.getLatestAddedRecipe();
|
||||
addOreDictRecipe(new ItemStack(ModItems.manaweaveLegs),
|
||||
"SSS", "S S", "S S",
|
||||
'S', LibOreDict.MANAWEAVE_CLOTH);
|
||||
recipeManaweaveLegs = BotaniaAPI.getLatestAddedRecipe();
|
||||
addOreDictRecipe(new ItemStack(ModItems.manaweaveBoots),
|
||||
"S S", "S S",
|
||||
'S', LibOreDict.MANAWEAVE_CLOTH);
|
||||
recipeManaweaveBoots = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Storage Block/Nugget Recipes
|
||||
|
||||
+18
@@ -10,14 +10,21 @@
|
||||
*/
|
||||
package vazkii.botania.common.item.equipment.armor.manaweave;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.item.IManaProficiencyArmor;
|
||||
import vazkii.botania.api.mana.IManaDiscountArmor;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.item.equipment.tool.ToolCommons;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
public class ItemManaweaveHelm extends ItemManaweaveArmor implements IManaDiscountArmor, IManaProficiencyArmor {
|
||||
|
||||
private static final int MANA_PER_DAMAGE = 30;
|
||||
|
||||
public ItemManaweaveHelm() {
|
||||
super(0, LibItemNames.MANAWEAVE_HELM);
|
||||
}
|
||||
@@ -32,4 +39,15 @@ public class ItemManaweaveHelm extends ItemManaweaveArmor implements IManaDiscou
|
||||
return hasArmorSet(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
|
||||
if(!world.isRemote && stack.getItemDamage() > 0 && ManaItemHandler.requestManaExact(stack, player, MANA_PER_DAMAGE * 2, true))
|
||||
stack.setItemDamage(stack.getItemDamage() - 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) {
|
||||
ToolCommons.damageItem(stack, damage, entity, MANA_PER_DAMAGE);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -198,6 +198,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry obedienceStick;
|
||||
public static LexiconEntry slimeBottle;
|
||||
public static LexiconEntry exchangeRod;
|
||||
public static LexiconEntry manaweave;
|
||||
|
||||
public static LexiconEntry enderAir;
|
||||
public static LexiconEntry enderEyeBlock;
|
||||
@@ -769,6 +770,9 @@ public final class LexiconData {
|
||||
exchangeRod = new BLexiconEntry(LibLexicon.TOOL_EXCHANGE_ROD, categoryTools);
|
||||
exchangeRod.setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"), new PageCraftingRecipe("3", ModCraftingRecipes.recipeExchangeRod));
|
||||
|
||||
manaweave = new BLexiconEntry(LibLexicon.TOOL_MANAWEAVE, categoryTools);
|
||||
manaweave.setLexiconPages(new PageText("0"), new PageText("1"), new PageCraftingRecipe("2", ModCraftingRecipes.recipeManaweaveCloth), new PageCraftingRecipe("3", ModCraftingRecipes.recipeManaweaveHelm), new PageCraftingRecipe("4", ModCraftingRecipes.recipeManaweaveChest), new PageCraftingRecipe("5", ModCraftingRecipes.recipeManaweaveLegs), new PageCraftingRecipe("6", ModCraftingRecipes.recipeManaweaveBoots));
|
||||
|
||||
// ENDER ENTRIES
|
||||
enderAir = new BLexiconEntry(LibLexicon.ENDER_AIR, categoryEnder);
|
||||
enderAir.setPriority().setLexiconPages(new PageText("0"));
|
||||
|
||||
@@ -167,6 +167,7 @@ public final class LibLexicon {
|
||||
public static final String TOOL_OBEDIENCE_STICK = "obedienceStick";
|
||||
public static final String TOOL_SLIME_BOTTLE = "slimeBottle";
|
||||
public static final String TOOL_EXCHANGE_ROD = "exchangeRod";
|
||||
public static final String TOOL_MANAWEAVE = "manaweave";
|
||||
|
||||
public static final String ENDER_AIR = "enderAir";
|
||||
public static final String ENDER_ENDER_EYE_BLOCK = "enderEyeBlock";
|
||||
|
||||
Reference in new issue
Block a user