Add Lore

Adds a line of text to the item in the target slot.

/goop nbt addLore <index> <player> <slot> [force vanilla] <lore line>

If used on MMOItems, automatically targets the MMOItems Lore Stat

Args Breakdown (What everything does)

<index>

  • Index that the newly appended lore line will hold

  • May be the top or bottom keyword.

<Player>

  • Player whose inventory items' NBT will be edited.

  • Supports a few vanilla selectors.

  • [1.6.5] May be an Entity (dropped item) UUID

<Slot>

  • The slot in the player's inventory in which items will be renamed. To read on slots see Inventory Slots.

  • Examples: mainhand, offhand, chest, feet, any, 0-8, ec*

[force vanilla]

  • Stands 'Force Vanilla,' which means that it wont register the lore into the MMOItem lore stat data if applied onto a MMOItem.

<lore line>

  • Text to add to the item. Supports colour codes.

  • (1.16+) For Hex color codes: <#rrggbb>

Tips

  • You can use the following keywords instead of an integer number:

    • bottom will add the text to the bottom of the existing lore

    • top will add the text at the top of the existing lore


  • By default, if the target item is a MMOItem, this command will target the MMOItems lore stat, adding lore to the section you defined in MMOItem's lore-format.yml file

    • For example, if using the top keyword, will add the lore at the beginning of MMOItems lore rather than at the beginning of the vanilla lore.

    • This behaviour can be overriden by forcing the operation to be 'vanilla'

Simple Examples:

/goop nbt addLore top cocopad head &aLorem Ispum

Will add some text to cocopad's helmet


/goop nbt removeLore top cln89 offhand true oS: goop nbt addLore top @s offhand true &cNot a Shield

Replaces the MMOItem Type lore of cln89's offhand by 'Not a Shield.' Without those force-vanilla trues, the changes would be reflected in the MMOItems lore section and just wouldnt work the way it is supposed to.