Vanilla item lore (item description)

Started by NerdyPuzzle on

Topic category: Advanced modding

Vanilla item lore (item description)

I am trying to add a feature to my mod so when you craft an item, it will display some randomly selected NBTs in item lore. I know how to code the NBTs into the lore, but only for custom items. How do I add my item lore with visible NBT values to vanilla items aswell? 

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh man I have been trying to…
Wed, 08/31/2022 - 06:24

Oh man I have been trying to do this for ages. Only way I have found to add lore to an item currently is with the /item modify command but its complicated and I haven't made it work yet. If I figure it out I'll lyk.

I FIGURED IT OUT! The…
Sun, 09/18/2022 - 01:33

I FIGURED IT OUT! The command you need to run is:

data modify block ~ ~ ~ Items[{Slot:YOUR_SLOT_NUMBERb}].tag.display set value {Lore:['[{"YOUR":"AA","italic":false}]','[{"text":"TEXT","italic":false}]','[{"text":"GOES","italic":false}]','[{"text":"HERE","italic":false}]']}

 

THIS TOOK SO LONG TO FIGURE OUT!

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This command can't be…
Mon, 09/19/2022 - 17:39

This command can't be forgotten.

Kinda made a typo here: ['[{…
Mon, 09/19/2022 - 18:50

Kinda made a typo here: ['[{"YOUR":"AA","italic":false}]'

It should be : ['[{"text":"YOUR","italic":false}]'

And you remove the text with…
Mon, 09/19/2022 - 18:54

And you remove the text with data remove block ~ ~ ~ Items[{Slot:0b}].tag.display

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Won't that onlyh work if the…
Thu, 09/29/2022 - 14:47

Won't that onlyh work if the item is in a chest though?

Joined Mar 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hey bro, could you please…
Mon, 03/27/2023 - 19:42

hey bro, could you please make a new tutorial on how to make the procedure for animations with your geckolib plugin in 2023.1? I got an attack, death, walk and idle animation but i cant find anything on the internet. pls help