Started by
AngelFireLA
on
Topic category: Help with Minecraft modding (Java Edition)
For my item I want to make if item = lore so ??? but I don't know how to make if item = lore can you please help?
And can you tell me how to add a lore with a procedure?
You can add lore to items without procedures, it's in the "special information" section (I think).
I know, I want , imagine if I right click the lore is 1 if I left click the lore is 2 (just an exemple=
I dont think you can change the tooltip with procedures
This is a very big problem I am having, too. My mod's development has come to a complete halt because of this problem, I want to replace the item's lore with what spell it contains, similar to how the Enchantment Books show the enchantment that they have, but I don't want to create a new item for each spell (there will be a lot, maybe up to 100), the only thing I can think of doing is replacing the item's display name with the type of spell which causes a bunch of other problems.
There's no "Set Lore of [itemstack] to [text]" so I'm stuck, and I barely know any Java so I can't just code it into the game.
You Could try Changing lore by using datapacks (cons: requires player who is using the mod to have the datapacks for it to work)
with /item modify
reason it has to be datapacks is probably that you need item modifier which seems to be exclusive in datapacks