Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*package net.minecraft.src;
- import java.util.List;
- import java.util.Random;
- public class EntityFriend extends EntityLiving
- {
- /* not done at all so dont worry if you feel the need to edit it go ahead <3 Justin*/
- /*public EntityFriend(World world)
- {
- super(world);
- randomSoundDelay = 0;
- texture = "/mob/pigman.png";
- moveSpeed = 0.5F;
- attackStrength = 5;
- isImmuneToFire = true;
- }
- public void onUpdate()
- {
- super.onUpdate();
- for(int i = 0; i < worldObj.loadedEntityList.size(); i++)
- {
- Entity entity1 = (Entity)worldObj.loadedEntityList.get(i);
- if(!(entity1 instanceof EntityPlayer))
- {
- continue;
- }
- double d2 = entity1.getDistance(posX, posY, posZ);
- EntityFriend friend = (EntityFriend)entity1;
- if((d2 < 16) && friend.canEntityBeSeen(this) && friend.playerToAttack == null)
- {
- friend.playerToAttack = this;
- }
- }
- }
- protected int getDropItemId()
- {
- return 0;
- }
- public ItemStack getHeldItem()
- {
- return defaultHeldItem;
- }
- private int randomSoundDelay;
- private static final ItemStack defaultHeldItem;
- static
- {
- defaultHeldItem = new ItemStack(Item.sword, 1);
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement