Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setBlockBounds(0.001f, 0.001f, 0.001f, 0.999f, 0.999f, 0.999f);
- @Override
- public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {
- super.onEntityCollidedWithBlock(world, x, y, z, entity);
- if (entity.isSneaking()) {
- entity.setPosition(entity.posX, entity.posY - entity.motionY, entity.posZ);
- entity.motionY = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement