Simple Dupe plugin. It contains a config which you can set the undupables.
Set anti-dupe to the custom model data of you're undupable. Then add the custom model data you just made anti-dupe to on the desired item.
Contact me here for support: https://discord.gg/T9pBQthbaR