Type a name and the lore lines, colour them with & codes, and copy a /give command that works in your version. The same text also comes out as lines for plugin configs.
Command
Plugin config with & codes
Plugin config with MiniMessage
How to write the text
&a to &f and &0 to &9 are the 16 colours. 7FF99 is any hex colour.
&l bold, &o italic, &n underline, &m strike, &k scrambled, &r back to the line's colour.
A colour code switches the styles off again, the same as in the game.
An empty line in the lore stays an empty line.
Good to know
The game writes custom names and lore in italic, and lore in purple. The command switches that off, so you get the colours you chose. Use &o where you want italic.
The way items are written in commands changed twice: in 1.20.5 and in 1.21.5. Pick your version, or the command is refused.
Chat takes commands up to 256 letters. A longer one goes into a command block: /give @p command_block, place it, paste, and power it.
The plugin lines are the same text for config files. Which keys a plugin uses (name, display-name, lore) is in the plugin's own config.
Hex colours need 1.16 or newer.
Something wrong or missing here? Tell me, requests decide what I add next. More tools: all tools.