packagenet.minecraft.block;publicclassBlockSoulSandextendsBlock{publicBlockSoulSand(){super(Material.sand,MapColor.brownColor);}publicAxisAlignedBBgetCollisionBoundingBox(WorldworldIn,BlockPospos,IBlockStatestate){returnnewAxisAlignedBB(pos.getX(),pos.getY(),pos.getZ(),pos.getX()+1.0,pos.getY()+0.875,pos.getZ()+1.0);}/* called from Entity.doBlockCollisions() */publicvoidonEntityCollidedWithBlock(WorldworldIn,BlockPospos,IBlockStatestate,EntityentityIn){entityIn.motionX*=0.4D;entityIn.motionZ*=0.4D;//note that EACH surrounding soulsand block applies this effect.}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.