Advertisement
tahg

Untitled

May 9th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. setBlockBounds(0.001f, 0.001f, 0.001f, 0.999f, 0.999f, 0.999f);
  2.  
  3. @Override
  4. public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {
  5. super.onEntityCollidedWithBlock(world, x, y, z, entity);
  6. if (entity.isSneaking()) {
  7. entity.setPosition(entity.posX, entity.posY - entity.motionY, entity.posZ);
  8. entity.motionY = 0;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement