Vanilla item lore (item description)

Started by NerdyPuzzle on Sat, 08/27/2022 - 04:40

Topic category: Advanced modding

Last seen on 08:54, 29. Nov 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Vanilla item lore (item description)
Sat, 08/27/2022 - 04:40

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? 

Last seen on 07:52, 21. Nov 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 08:54, 29. Nov 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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!

Last seen on 10:08, 14. Nov 2022
Joined Sep 2020
Points:

User statistics:

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

This command can't be forgotten.

Last seen on 08:54, 29. Nov 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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}]'

Last seen on 08:54, 29. Nov 2022
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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

Last seen on 07:52, 21. Nov 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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?