Solved Help with enchanted paper

  • 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 community!

    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
I want to enchant a paper to get the glowing visual effect.
This is the part of the code where I did it:

code_language.skript:
if arg 1 = "2":
      loop all items in player's inventory:
        loop-item is paper
        loop-item's name isn't set
        enchant the loop-item with mending
        set the name of the loop-item to "§5&lCheque §2&lAes§6&lGold"
        set line 1 of loop-item's lore to "Emitido por §a%player%"
      message "&6[&cCHEQUES&6] &rVocê transformou em cheques §etipo 2&r os papeis em branco no seu inventário!"
      clear {emitir.%player%.waiting}
      stop

The problem is that I want only the visual effect, not to show the "mending" line.
But I also need to show the Lore line 1.

Is there a way to hide the enchant? Thanks!
 
That effect is called glowing, search it on the docs, many addons support it.
 
That effect is called glowing, search it on the docs, many addons support it.
I tried it, but I can use it on a "give" command, not on this where I set the effect on the existing paper. The docs just give us examples about giving, not editing an item. Do you know how to do it?

To give the paper with glowing effect, I would also have to count how many paper the player have in the inventory, and that's also something I don't know how to do, lol.
 
I tried it, but I can use it on a "give" command, not on this where I set the effect on the existing paper. The docs just give us examples about giving, not editing an item. Do you know how to do it?

To give the paper with glowing effect, I would also have to count how many paper the player have in the inventory, and that's also something I don't know how to do, lol.
You could just do:
code_language.skript:
set loop-item to glowing loop-item
 
Status
Not open for further replies.