Advertisement
Corosus

Untitled

Jul 22nd, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public static boolean startBreeding = false;
  2. public static long breedDelay;
  3.  
  4. public void breedStart()
  5. {
  6. if (!startBreeding) {
  7. startBreeding = true;
  8. breedDelay = System.currentTimeMillis();
  9. }
  10. if(breedDelay >= System.currentTimeMillis()+5000) {
  11. startBreeding = false; //(reset the delay, unless you dont want them to start attempting to breed again)
  12. //actually breed
  13.  
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement