Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1.     public boolean onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)
  2.     {
  3.         if (entity.isSneaking())
  4.         {
  5.             return false;
  6.         }
  7.         else
  8.         {
  9.             entity.attackEntityFrom(DamageSource.explosion, 1);
  10.             return true;
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement