Remove lore

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

aescraft

Well-Known Member
Mar 1, 2017
295
13
0
36
Is there a way to remove the lore from a item?
The only way I found is to use this syntax:

code_language.skript:
set %itemstack% to %itemstack% with lore ""

So, it's not removing the lore, but setting the lore to nothing.

I've tried removing the NBT with the following:

"set %itemstack% to %itemstack% without any NBT" (Skellet)

and

"with no nbt" (SkRayfall)

But both just removes the default lore, not custom lore. (for example, removes +7 dmg line from diamond sword).

Thanks!

--

To visualize what I mean:

lore.png

[doublepost=1495261098,1494988858][/doublepost]Bump
 
Not tested, but you can try this:

code_language.skript:
command /removelore:
    trigger:
        if lore of player's tool contains "&f":
            remove lore from player's tool
        else:
            stop
i not tested that
I think there will be mistakes
 
Status
Not open for further replies.