I'm about to set up a teleporter.
What is the ID or the name of a shiny, somehow enchanted item in Minecraft?
You simply have to provide an invalid enchantment. To do this, use the command
/ give @s minecraft: book {Enchantments: [{id: none}]}
If you don't want a book, you have to change the relevant part, instead of "none" you can name any text, that's just the example of Minecraft Wiki. See also https://minecraft-de.gamepedia.com/...t.C3.A4nde
If you want to query the enchanted item later, you can simply use its normal ID…
I thought you were programming what?
But you don't use any / give commands…
I didn't see you want to program that. Then you just have to set the item data in a different way. The item has the normal ID without enchantment. Now you have to find out how to set object data in your programming language. In the simplest case, you can also bring these together. However, the programming language probably generally requires you to enter the item data. Out
{Slot: 0, id: "minecraft: book", Count: 1}
or something like that
{Slot: 0, id: "minecraft: book", Count: 1, Day: {Enchantments: [{id: none}]}}
or depending on what you want. If the function you use to add the item doesn't support https://minecraft-de.gamepedia.com/...tandsdaten, you have to use another one. How to enter the item data, you will probably have to look in the documentation of the programming language if the function does not want the items in the form of their item data anyway.
https://bukkit.org/threads/how-to-make-an-item-glow-with-no-enchant.374594/