Hi,
I wanna know how ticks work. I have looked for a tutorial about this, but I have found nothing.
Indeed, what I want to do is to create a block each 10 ticks.
I have this code, but it doesn't work:
public void randomDisplayTick(World par1World, int par2, int par3, int par4, Random par5Random) {
++i;
if ((i % 10) == 0)
{
par1World.setBlockWithNotify(par2, par3, par4 + 1,this.blockID);
par1World.markBlockForUpdate(par2, par3, par4 + 1);
}
}
Thank you very much!