The work an individual does is not enough to make oneself irreplaceable.
It’s who one is that makes one irreplaceable.
Being irreplaceable doesn’t mean that one will be loved.
Any individual is loveable.
Being loveable doesn’t mean one will be loved by everyone.
Nor does it mean that one has to do something to be loved or hated.
Being appreciated, however, usually results from how one relates to others and how one contributes to that relationship. This can include the work one agreed to do, but there is no guarantee that one will receive additional appreciation for it.
Problems arise when one confuses both or forgets that both the being and the doing are relevant.