--------------------------------------------
Not a solution!
---------------------------------------------
So I've done like @KittenKodersuggested:
Is this cheat ?
@Override
public void onBlockPlacedBy(World worldIn, BlockPos pos, IBlockState state, EntityLivingBase placer, ItemStack stack) {
TileEntity tileentity = worldIn.getTileEntity(pos);
if (tileentity instanceof JdwOSDigger)
{
((JdwOSDigger)tileentity).setPos(pos);
worldIn.scheduleBlockUpdate(pos, this, 20, 1); // schedule first update
}
}
@Override
public void updateTick(World worldIn, BlockPos pos, IBlockState state, Random rand)
{
if(!worldIn.isRemote) {
TileEntity tileentity = worldIn.getTileEntity(pos);
if (tileentity instanceof JdwOSDigger){
((JdwOSDigger)tileentity).jdwUpdate(); //call jdwupDate in tile entity
worldIn.scheduleBlockUpdate(pos, this, 20, 1); //schedule next update.
}
}
}