Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!worldObj.isDaytime() && entityToAttack == null && !worldObj.isRemote) {
- if (worldObj.canBlockSeeTheSky(MathHelper.floor_double(posX), MathHelper.floor_double(posY), MathHelper.floor_double(posZ)) && rand.nextFloat() < 0.001F) {
- teleportRandomly();
- }
- }
Advertisement