Created
February 12, 2014 15:13
-
-
Save anonymous/8957256 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package amw.witchcraft; | |
import java.util.List; | |
import net.minecraft.client.renderer.texture.IconRegister; | |
import net.minecraft.creativetab.CreativeTabs; | |
import net.minecraft.entity.player.EntityPlayer; | |
import net.minecraft.item.Item; | |
import net.minecraft.item.ItemBlock; | |
import net.minecraft.item.ItemStack; | |
import net.minecraft.nbt.NBTTagCompound; | |
import net.minecraft.nbt.NBTTagList; | |
import net.minecraft.nbt.NBTTagString; | |
import cpw.mods.fml.relauncher.Side; | |
import cpw.mods.fml.relauncher.SideOnly; | |
public class bookOfShadows extends Item | |
{ | |
public bookOfShadows(int id) | |
{ | |
super(id); | |
setContainerItem(this); | |
setMaxStackSize(1); | |
setHasSubtypes(true); | |
} | |
@SideOnly(Side.CLIENT) | |
public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) | |
{ | |
for (int x = 0; x < 4; x++) | |
{ | |
par3List.add(new ItemStack(this, 1, x)); | |
} | |
} | |
public static final int doNotUse = 0, srcsOfPower = 1, soulBush = 2, LLflowerRecipe = 3, shadowBush = 4; | |
public static final String[] names = new String[] | |
{ "Book of Shadows", "Sources of Power", "Soul Bush", "Long Lost Flower Recipe", "Shadow Bush" }; | |
@SideOnly(Side.CLIENT) | |
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { | |
switch(par1ItemStack.getItemDamage()) { | |
case 0: par3List.add("Flowers hold the most powerful magick, and to be able to harness magick, you have to understand them."); break; | |
case 1: par3List.add("The Soul Bush can be found deep underground, where an ancient flower is trapped inside stone. It gives off light, even through the stone. If you smelt it, you'll find a soul fragment inside. This is what's left of the flower that once graced our lands."); break; | |
case 2: par3List.add("Combine a wooden stick, vines and a soul fragment and the soul fragment will attach to these, and the long lost flower will be in your hand."); break; | |
case 3: par3List.add("This bush is more common than the Soul Bush, but it's nature is decieving. Don't try to walk on it, as you will fall straight through."); break; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment