Solved Adding coordinates to set variable

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

TheBlazeTuber

New Member
Jul 6, 2018
8
0
0
24
Minecraft Version: 1.12.2
Full Code:

code_language.skript:
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
                    shoot arrow from {_arrowrain.block.target} upwards


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
 
So what exactly is not working here?
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!
 
Well then YAY glad you figured it out!
I now know what you were asking, sorry i misunderstood!
 
  • Like
Reactions: TheBlazeTuber
Status
Not open for further replies.