Location issues

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

mike

Member
Jun 28, 2017
23
0
0
I have already asked the discord but im having a real issue with:
code_language.skript:
on "de.Ste3et_C0st.FurnitureLib.Events.FurnitureClickEvent":
    set {_player} to event.getPlayer()
    set {_id} to event.getID().getID()
    set {_loc} to location of block above event.getLocation()
    set {_lore::*} to line 1 of {_player}'s tool parsed as "x: %number%, y: %number%, z: %number%"
    set {_lore} to location({_lore::1}, {_lore::2}, {_lore::3}, {_player}'s world)
#    broadcast "%{_loc}%"
    if {_id} contains "teleporter":
        if "%{teleport::*}%" does not contain "%{_loc}%":
            add "%{_loc}%" to {teleport::*}
        if {_player} has permission "furniture.craft.teleporter":
            if {_player}'s held item is glowing emerald named "Teleport Stone" with lore "%{_loc}%":
                teleport (uncolored {_lore} parsed as player) to {_player}'s location   
                message "hmm" to {_player}               
            else:
                message "HI" to {_player}
it runs the message hmm but does not teleport the player to the lore
 
Hmmm
set {_lore} to location({_lore::1}, {_lore::2}, {_lore::3}, {_player}'s world)

teleport (uncolored {_lore} parsed as player) to {_player}'s location

Why do you parsed it as player if you make it as location?

maybe do you want this?
code_language.skript:
teleport {_player} to {_lore}
 
it was suggested to me, and teleport player lore doesnt work
 
Status
Not open for further replies.