mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Finish off the Hand of Ender.
This commit is contained in:
1 parent
38dd74bc20
commit
294617dad3
6 files changed
+33
-3
No files matched your search
@@ -43,6 +43,7 @@ public final class ConfigHandler {
|
||||
public static boolean versionCheckEnabled = true;
|
||||
public static int spreaderPositionShift = 1;
|
||||
public static boolean flowerForceCheck = true;
|
||||
public static boolean enderPickpocketEnabled = true;
|
||||
|
||||
public static boolean fallenKanadeEnabled = true;
|
||||
public static boolean darkQuartzEnabled = true;
|
||||
|
||||
@@ -183,6 +183,7 @@ public final class ModCrafingRecipes {
|
||||
public static IRecipe recipeEnderEyeBlock;
|
||||
public static IRecipe recipeItemFinder;
|
||||
public static IRecipe recipeSuperLavaPendant;
|
||||
public static IRecipe recipeEnderHand;
|
||||
|
||||
public static void init() {
|
||||
// Lexicon Recipe
|
||||
@@ -1136,6 +1137,15 @@ public final class ModCrafingRecipes {
|
||||
'G', LibOreDict.LIFE_ESSENCE);
|
||||
recipeSuperLavaPendant = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Hand of Ender Recipe
|
||||
addOreDictRecipe(new ItemStack(ModItems.enderHand),
|
||||
"PLO", "LEL", "OL ",
|
||||
'P', LibOreDict.PIXIE_DUST,
|
||||
'L', new ItemStack(Items.leather),
|
||||
'E', new ItemStack(Blocks.ender_chest),
|
||||
'O', new ItemStack(Blocks.obsidian));
|
||||
recipeEnderHand = BotaniaAPI.getLatestAddedRecipe();
|
||||
|
||||
// Mana and Terrasteel Block Recipes
|
||||
addOreDictRecipe(new ItemStack(ModBlocks.storage, 1, 0),
|
||||
"III", "III", "III",
|
||||
|
||||
@@ -15,10 +15,12 @@ import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.mana.IManaUsingItem;
|
||||
import vazkii.botania.api.mana.ManaItemHandler;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
public class ItemEnderHand extends ItemMod {
|
||||
public class ItemEnderHand extends ItemMod implements IManaUsingItem {
|
||||
|
||||
private static final int COST_SELF = 250;
|
||||
private static final int COST_OTHER = 5000;
|
||||
@@ -40,7 +42,7 @@ public class ItemEnderHand extends ItemMod {
|
||||
|
||||
@Override
|
||||
public boolean itemInteractionForEntity(ItemStack stack, EntityPlayer iplayer, EntityLivingBase entity) {
|
||||
if(entity instanceof EntityPlayer && ManaItemHandler.requestManaExact(stack, iplayer, COST_OTHER, false)) {
|
||||
if(ConfigHandler.enderPickpocketEnabled && entity instanceof EntityPlayer && ManaItemHandler.requestManaExact(stack, iplayer, COST_OTHER, false)) {
|
||||
iplayer.displayGUIChest(((EntityPlayer) entity).getInventoryEnderChest());
|
||||
ManaItemHandler.requestManaExact(stack, iplayer, COST_OTHER, true);
|
||||
iplayer.worldObj.playSoundAtEntity(iplayer, "mob.endermen.portal", 1F, 1F);
|
||||
@@ -50,4 +52,9 @@ public class ItemEnderHand extends ItemMod {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean usesMana(ItemStack stack) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -160,6 +160,7 @@ public final class LexiconData {
|
||||
public static LexiconEntry reachRing;
|
||||
public static LexiconEntry itemFinder;
|
||||
public static LexiconEntry superLavaPendant;
|
||||
public static LexiconEntry enderHand;
|
||||
|
||||
public static LexiconEntry alfhomancyIntro;
|
||||
public static LexiconEntry elvenMessage;
|
||||
@@ -488,6 +489,9 @@ public final class LexiconData {
|
||||
skyDirtRod = new ALexiconEntry(LibLexicon.TOOL_SKY_DIRT_ROD, categoryTools);
|
||||
skyDirtRod.setLexiconPages(new PageText("0"), new PageCraftingRecipe("1", ModCrafingRecipes.recipeSkyDirtRod));
|
||||
|
||||
enderHand = new ALexiconEntry(LibLexicon.TOOL_ENDER_HAND, categoryTools);
|
||||
enderHand.setLexiconPages(new PageText(ConfigHandler.enderPickpocketEnabled ? "0" : "0a"), new PageCraftingRecipe(ConfigHandler.enderPickpocketEnabled ? "1" : "1a", ModCrafingRecipes.recipeEnderHand));
|
||||
|
||||
// BAUBLES ENTRIES
|
||||
baublesIntro = new BLexiconEntry(LibLexicon.BAUBLE_INTRO, categoryBaubles);
|
||||
baublesIntro.setPriority().setLexiconPages(new PageText("0"), new PageImage("1", LibResources.ENTRY_BAUBLES), new PageText("2"));
|
||||
|
||||
@@ -117,6 +117,7 @@ public final class LibLexicon {
|
||||
public static final String TOOL_LAPUTA_SHARD = "laputaShard";
|
||||
public static final String TOOL_VIRUS = "virus";
|
||||
public static final String TOOL_SKY_DIRT_ROD = "skyDirtRod";
|
||||
public static final String TOOL_ENDER_HAND = "enderHand";
|
||||
|
||||
public static final String BAUBLE_INTRO = "bIntro";
|
||||
public static final String BAUBLE_TINY_PLANET = "tinyPlanet";
|
||||
|
||||
@@ -1295,6 +1295,13 @@ botania.entry.skyDirtRod=Rod of the Highlands
|
||||
botania.page.skyDirtRod0=While the &1Rod of the Lands&0 is all well and good, being able to place &1Dirt&0 without something to hold it would be great.<br>The &1Rod of the Highlands&0 does just that, while maintaining the original power of the &1Rod of the Lands&0, it can also place &1Dirt&0 in mid air, for an increased &4Mana&0 cost.
|
||||
botania.page.skyDirtRod1=Dirty Stick mk2
|
||||
|
||||
# -- HAND OF ENDER
|
||||
botania.entry.enderHand=Hand of Ender
|
||||
botania.page.enderHand0=The &1Hand of Ender&0 allows the user to access the interdimensional ender field, on other words, their &1Ender Chest&0 inventory. This can be done anywhere by right clicking with the hand at the cost of some &4Mana&0.<br>Using the hand on another player will open up &otheir&r inventory instead, at a lot higher &4Mana&0 cost.
|
||||
botania.page.enderHand0a=The &1Hand of Ender&0 allows the user to access the interdimensional ender field, on other words, their &1Ender Chest&0 inventory. This can be done anywhere by right clicking with the hand at the cost of some &4Mana&0.
|
||||
botania.page.enderHand1=Zezima hates him!
|
||||
botania.page.enderHand1a=It's like the 4G of Ender Chests
|
||||
|
||||
# - BAUBLES
|
||||
# -- AN INTRODUCTION TO BAUBLES
|
||||
botania.entry.bIntro=An Introduction to Baubles
|
||||
@@ -1394,7 +1401,7 @@ botania.page.itemFinder2=Do you hear their voices?
|
||||
# -- CRIMSON PENDANT
|
||||
botania.entry.superLavaPendant=Crimson Pendant
|
||||
botania.page.superLavaPendant0=The &1Crimson Pendant&0 is, in simple terms, an upgraded counterpart to the &1Pyroclast Pendant&0, wearing it provides the wearer immunity to all fire and lava damage, instead of just extinguishing them.
|
||||
botania.page.superLavaPendant1=The Crimson Prince
|
||||
botania.page.superLavaPendant1=Runner-up on Monolith Code
|
||||
|
||||
# - ALFHOMANCY
|
||||
# -- THE PORTAL TO ALFHEIM
|
||||
|
||||
Reference in new issue
Block a user