Scientists have built a new magnetic material that keeps its magnetism locked inside while barely affecting anything around it.