Any way i can make this material only show the diamond?

it goes fully invisible if i turn it down too far, too high and it’s fully opaque. I’m assuming what i’m wanting to do is extremly hard. would i be able to apply the logic of the portals, y’know, just the see through stuff, and have that go to somewhere hidden on the map with that diamond inside of it?

EDIT: Render targets i think they’re called. Could i use that?