Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- import net.minecraft.client.Minecraft;
- public class EmptySoulGem extends Item
- {
- protected EmptySoulGem(int i)
- {
- super(i);
- field_21011_a = 100;
- maxStackSize = 1;
- }
- public int getDamageVsEntity(Entity entity)
- {
- return field_21011_a;
- }
- public void hitEntity(ItemStack itemstack, EntityLiving entityliving)
- {
- if(entityliving instanceof EntityCreature)
- {
- if(entityliving instanceof EntityAnimals)
- {
- itemstack.itemID = mod_SoulGemsMod.sgm_filled_soulgem.shiftedIndex;
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("You've acquired a Charged Soulgem!");
- }
- if(entityliving instanceof EntitySquid)
- {
- itemstack.itemID = mod_SoulGemsMod.sgm_filled_soulgem.shiftedIndex;
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("You've acquired a Charged Soulgem!");
- }
- if(entityliving instanceof EntityZombie)
- {
- itemstack.itemID = mod_SoulGemsMod.sgm_gemzomb.shiftedIndex;
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("You've captured a Zombie's soul!");
- }
- if(entityliving instanceof EntitySkeleton)
- {
- itemstack.itemID = mod_SoulGemsMod.sgm_gemskelly.shiftedIndex;
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("You've captured a Skeleton's soul!");
- }
- if(entityliving instanceof EntitySpider)
- {
- itemstack.itemID = mod_SoulGemsMod.sgm_gemspida.shiftedIndex;
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("You've captured a Spider's soul!");
- }
- if(entityliving instanceof EntityCreeper)
- {
- itemstack.itemID = mod_SoulGemsMod.sgm_black_soulgem.shiftedIndex;
- ModLoader.getMinecraftInstance().ingameGUI.addChatMessage("You've acquired a Black Soulgem!");
- }
- }
- }
- private int field_21011_a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement