Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean startBreeding = false;
- public static long breedDelay;
- public void breedStart()
- {
- if (!startBreeding) {
- startBreeding = true;
- breedDelay = System.currentTimeMillis();
- }
- if(breedDelay >= System.currentTimeMillis()+5000) {
- startBreeding = false; //(reset the delay, unless you dont want them to start attempting to breed again)
- //actually breed
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement