How do i change tileset ids into objects?

Hi guys! How do i… make tileset ids (or tiles) turn into an object? like for the whole tileset if the id is 0 then turn into block? thank you!