Advertisement
Guest User

Minecraft Respawn Code

a guest
Feb 12th, 2011
1,188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1.  
  2. public void onDeath(Entity entity)
  3.     {
  4.         func_371_a(0.2F, 0.2F);
  5.         setPosition(posX, posY, posZ);
  6.         motionY = 0.10000000149011612D;
  7.         if(field_771_i.equals("Notch"))
  8.         {
  9.             func_444_a(new ItemStack(Item.appleRed, 1), true);
  10.         }
  11.         field_778_b.dropAllItems();
  12.         if(entity != null)
  13.         {
  14.             motionX = -MathHelper.func_1114_b(((field_4102_N + rotationYaw) * 3.141593F) / 180F) * 0.1F;
  15.             motionZ = -MathHelper.func_1106_a(((field_4102_N + rotationYaw) * 3.141593F) / 180F) * 0.1F;
  16.         } else
  17.         {
  18.             motionX = motionZ = 0.0D;
  19.         }
  20.         field_645_aB = 0.1F;
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement