I was trying to make a Minecraft plugin while having this problem, but I thought this would be more of a Java discussion So I tried to make a spawner that would spawn a chicken every second (for testing, it would become every minute when I’m done), but while I was testing the event doesn’t seem to run (because TimeUnit.SECONDS.sleep()
Tag: delay
Java Delay/Wait
How do I delay a while loop to 1 second intervals without slowing down the entire code / computer it’s running on to the one second delay (just the one little loop). Answer