1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Adding coordinates to set variable

Discussion in 'Skript' started by TheBlazeTuber, Sep 11, 2018.

Thread Status:
Not open for further replies.
  1. TheBlazeTuber

    TheBlazeTuber Member

    Joined:
    Jul 6, 2018
    Messages:
    8
    Likes Received:
    0
    Minecraft Version: 1.12.2
    Full Code:

    Code (Skript):
    1.  
    2. if player has permission "tbt.wands.netherwand.arrowrain":
    3.             if name of player's tool is "&4Nether Wand":
    4.                 cancel event
    5.                 if line 1 of lore of player's tool is "&4Arrow Rain":
    6.                     set {_arrowrain.block.target} to targeted block of player
    7.                     shoot arrow from {_arrowrain.block.target} upwards
    8.  

    Other Useful Info:
    I want to spawn an arrow from the targeted block of the player +3 blocks above the targeted block
    Addons using (including versions):
    Skript: 2.2-dev36
    SkDragon
    Skellett
    SkQuery
    SkRayFall
    SkUtilities: 0.9.2

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it?
    if player has permission "tbt.wands.netherwand.arrowrain":
    if name of player's tool is "&4Nether Wand":
    cancel event
    if line 1 of lore of player's tool is "&4Arrow Rain":
    set {_arrowrain.block.target} to targeted block of player +3
    shoot arrow from {_arrowrain.block.target} upwards
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    So what exactly is not working here?
     
  3. TheBlazeTuber

    TheBlazeTuber Member

    Joined:
    Jul 6, 2018
    Messages:
    8
    Likes Received:
    0
    Fixed it myself already, I wanted to spawn an arrow from the block that the player is looking at but higher,
    Used code:
    Shoot an arrow from the block 16 above the targetedblock of player downwards

    Thanks anyway!
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Well then YAY glad you figured it out!
    I now know what you were asking, sorry i misunderstood!
     
    • Like Like x 1
Thread Status:
Not open for further replies.
Loading...