You need to register the tile entity
Remove every Entity, that walks into the portal room.

Doesn’t work with portal rooms and you have to activate the portal
block with an rs torch