mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Added the Golden Laurel Crown.
This commit is contained in:
1 parent
8fd72f5450
commit
232a9cbf1f
6 files changed
+64
-2
No files matched your search
@@ -97,6 +97,7 @@ public final class BotaniaCreativeTab extends CreativeTabs {
|
||||
addItem(ModItems.knockbackBelt);
|
||||
addItem(ModItems.icePendant);
|
||||
addItem(ModItems.lavaPendant);
|
||||
addItem(ModItems.goldLaurel);
|
||||
|
||||
addItem(ModItems.manaTablet);
|
||||
addItem(ModItems.manaMirror);
|
||||
|
||||
@@ -24,6 +24,7 @@ import vazkii.botania.common.item.equipment.armor.ItemTerrasteelChest;
|
||||
import vazkii.botania.common.item.equipment.armor.ItemTerrasteelHelm;
|
||||
import vazkii.botania.common.item.equipment.armor.ItemTerrasteelLegs;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemAuraRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemGoldenLaurel;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemGreaterAuraRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemGreaterManaRing;
|
||||
import vazkii.botania.common.item.equipment.bauble.ItemIcePendant;
|
||||
@@ -84,6 +85,7 @@ public final class ModItems {
|
||||
public static Item knockbackBelt;
|
||||
public static Item icePendant;
|
||||
public static Item lavaPendant;
|
||||
public static Item goldLaurel;
|
||||
|
||||
public static void init() {
|
||||
lexicon = new ItemLexicon();
|
||||
@@ -128,7 +130,8 @@ public final class ModItems {
|
||||
knockbackBelt = new ItemKnockbackBelt();
|
||||
icePendant = new ItemIcePendant();
|
||||
lavaPendant = new ItemLavaPendant();
|
||||
|
||||
goldLaurel = new ItemGoldenLaurel();
|
||||
|
||||
OreDictionary.registerOre(LibOreDict.LEXICON, lexicon);
|
||||
for(int i = 0; i < 16; i++) {
|
||||
OreDictionary.registerOre(LibOreDict.PETAL[i], new ItemStack(petal, 1, i));
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* 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 a
|
||||
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
||||
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
||||
*
|
||||
* File Created @ [Apr 27, 2014, 8:49:01 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.common.item.equipment.bauble;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.entity.living.LivingDeathEvent;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
import baubles.api.BaubleType;
|
||||
import baubles.common.lib.PlayerHandler;
|
||||
import cpw.mods.fml.common.eventhandler.EventPriority;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
public class ItemGoldenLaurel extends ItemBauble {
|
||||
|
||||
public ItemGoldenLaurel() {
|
||||
super(LibItemNames.GOLDEN_LAUREL);
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
||||
public void onPlayerDeath(LivingDeathEvent event) {
|
||||
if(event.entity instanceof EntityPlayer) {
|
||||
EntityPlayer player = (EntityPlayer) event.entity;
|
||||
ItemStack amulet = PlayerHandler.getPlayerBaubles(player).getStackInSlot(0);
|
||||
|
||||
if(amulet != null && amulet.getItem() == this) {
|
||||
event.setCanceled(true);
|
||||
player.setHealth(player.getMaxHealth());
|
||||
player.addPotionEffect(new PotionEffect(Potion.resistance.id, 300, 6));
|
||||
player.addChatMessage(new ChatComponentTranslation("botaniamisc.savedByLaurel"));
|
||||
player.worldObj.playSoundAtEntity(player, "random.levelup", 1F, 0.3F);
|
||||
PlayerHandler.getPlayerBaubles(player).setInventorySlotContents(0, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaubleType getBaubleType(ItemStack itemstack) {
|
||||
return BaubleType.AMULET;
|
||||
}
|
||||
}
|
||||
@@ -57,6 +57,7 @@ public final class LibItemNames {
|
||||
public static final String KNOCKBACK_BELT = LibResources.PREFIX_MOD + "knockbackBelt";
|
||||
public static final String ICE_PENDANT = LibResources.PREFIX_MOD + "icePendant";
|
||||
public static final String LAVA_PENDANT = LibResources.PREFIX_MOD + "lavaPendant";
|
||||
public static final String GOLDEN_LAUREL = LibResources.PREFIX_MOD + "goldenLaurel";
|
||||
|
||||
public static final String[] LENS_NAMES = new String[] {
|
||||
LibResources.PREFIX_MOD + "lensNormal",
|
||||
|
||||
@@ -23,6 +23,7 @@ botaniamisc.filter1=Pickup only items not in Frames
|
||||
botaniamisc.filter2=Pickup any items
|
||||
botaniamisc.creativePool0=Creative Mana Pool, has infinite Mana
|
||||
botaniamisc.creativePool1=Worthy of an Egoist
|
||||
botaniamisc.savedByLaurel=Your Golden Laurel Crown shatters, as it saves you from death.
|
||||
|
||||
# COLORS
|
||||
botania.color0=White
|
||||
@@ -301,6 +302,7 @@ item.botania:knockbackBelt.name=Tectonic Girdle
|
||||
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
|
||||
|
||||
# GUI TEXT
|
||||
botania.gui.lexicon.header=Lexica Botania Index - Pick which category you would like to study:
|
||||
@@ -383,7 +385,7 @@ botania.entry.terrasteel=Terrasteel
|
||||
botania.page.terrasteel0=&1Terrasteel&0 is a powerful metal infused with the magic of nature.<br>Creating this metal proves to not be a short order, in order to create it, toss a &1Manasteel Ingot&0, a &1Mana Pearl&0 and a &1Mana Diamond&0 on top of an &4Active &1Beacon&0. A &1Mana Pool&0 must be present nearby, being at least half full. The infusion will create a single &1Terrasteel Ingot&0.
|
||||
botania.page.terrasteel1=Creating &1Terrasteel&0
|
||||
botania.page.terrasteel2=By combining the &1Terrasteel&0 with a &1Nether Star&0 and &1Blaze Powder&0, it's possible to artificially create a small extract of &1Essence of Eternal Life&0, a very powerful component in the creation of magical flora and natural instruments.
|
||||
botania.page.terrasteel3=An extract of &1Essence of Eternal Life&0
|
||||
botania.page.terrasteel3=These come not from Kyubey
|
||||
|
||||
# - MANA
|
||||
# -- AN INTRODUCTION TO MANA
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 310 B |
Reference in new issue
Block a user