Jump to content

make minecraft wait


jjw123

Recommended Posts

hi, so i need to make minecraft wait before running code, all the methods that i have tried cause unbelievable amounts of lag, so im just wondering what other ways i have of doing it, i want something like the BC quarry building

Link to comment
Share on other sites

i still cant get one to work without Producing MASSIVE lag

 

heres my code example

 

public static Runnable r1 = new Runnable() {
    	public void run() {
    		try {
    			while (true) {
    				System.out.println("Hello, world!");
    				Thread.sleep(5);
    			}
    		} catch (InterruptedException iex) {}
    	}
    };

    public static Thread t1 = new Thread(r1);

public static void creation(World world, int depth, int height, int width, int x, int y, int z, Block block){

	for (int x1 = 0; x1 < depth; x1++) {
		for (int y1 = 0; y1 < height; y1++) {
			for (int z1 = 0; z1 < width; z1++) {
				// Floor
				world.setBlockWithNotify(x + x1, y, z + z1, block.blockID);
				t1.start();
			}
		}
	}
}

 

im probably making such a noobish mistake, for which i apologise in advanced

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.