Started by
NerdyPuzzle
on
Topic category: Advanced modding
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?
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 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!
This command can't be forgotten.
Kinda made a typo here: ['[{"YOUR":"AA","italic":false}]'
It should be : ['[{"text":"YOUR","italic":false}]'
And you remove the text with data remove block ~ ~ ~ Items[{Slot:0b}].tag.display
Won't that onlyh work if the item is in a chest though?
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