Solved Lore doesn't work

  • 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.

MateoxPL

Active Member
Jan 27, 2018
116
0
0
26
Hello i have problem with this skript:
code_language.skript:
command /tpd:
       trigger:
          if player has 1 paper named "&6&lItem" with lore "&eTeleportation":
                    remove 1 paper named "&6&Item" with lore "&eTeleportation" from player
                    run player command "mvtp map1" as op

does not execute the command
and it does not remove the item
 
code_language.skript:
command /tpd:
   trigger:
      if player has 1 paper named "&6&lItem" with lore "&eTeleportation":
         remove 1 paper named "&6&Item" with lore "&eTeleportation" from player
         run player command "mvtp map1" as op
lol
Be careful about your use of spaces
 
any, when I use it without lore it works

maybe looping will solve your problems?
code_language.skript:
command /tpd:
    trigger:
        loop all items in player's inventory:
            if loop-item is paper named "hello" with lore "hello":
                # do something
 
1. i know I did it here, but I have a good word in the skript
2. any errors nothing happens
 
1. i know I did it here, but I have a good word in the skript
2. any errors nothing happens
try
code_language.skript:
command /tpd:
    trigger:
        set {_item} to paper named "&6&lItem" with lore "&eTeleportation" #parsed as an item
        if player has 1 of {_item}:
            remove 1 of {_item} from player's inventory
            teleport player to world "map1"

Or:

code_language.skript:
command /tpd:
    trigger:
        set {_item} to paper named "&6&lItem" with lore "&eTeleportation" #parsed as an item
        loop all items in player's inventory:
            if loop-item is {_item}:
                remove 1 of {_item} from player's inventory
                teleport player to world "map1"
 
the same does not work
maybe this..
code_language.skript:
command /tpd1:
    trigger:
        set {_item} to paper named "&6&lItem"# with lore "&eTeleportation" #parsed as an item
        loop all items in player's inventory:
            if loop-item is {_item}:
                if loop-item's lore is "&eTeleportation":
                    remove 1 of {_item} from player's inventory
                    teleport player to world "map1"
 
Status
Not open for further replies.