GenuineSounds

Tele randomly

Jul 14th, 2012
204
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.26 KB | None | 0 0
  1. if (!worldObj.isDaytime() && entityToAttack == null && !worldObj.isRemote) {
  2.     if (worldObj.canBlockSeeTheSky(MathHelper.floor_double(posX), MathHelper.floor_double(posY), MathHelper.floor_double(posZ)) && rand.nextFloat() < 0.001F) {
  3.         teleportRandomly();
  4.     }
  5. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment