Posted September 7, 201411 yr I need a tile entity to update every tick or so. I found a page that talks about the updateTick function, but it isnt working for me. I have a System.out.println function that isnt happening. Any help is appreciated! Code: private long tickCounter; public void updateTick(World world, int x, int y, int z, Random par5Random) { if(tickCounter%mod_Eclipses.JarTickSpeed == 0){ long wt = world.getWorldTime(); System.out.println(wt); if(wt > 0 && wt < 12000){ setFluid(liquid1); }else if(wt > 12000 && wt < 24000){ setFluid(liquid2); } } tickCounter++; }
September 7, 201411 yr updateEntity() hint: on eclipse, you can see what methods you can override by pressing CTRL+SPACE inside the class body.
September 7, 201411 yr and adding the @Override annotation helps too (especially when you'll need to update!) Check out my blog! http://www.whov.altervista.org
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.