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

Shoot arrow at specific coordinate

Discussion in 'Skript' started by Redblock6, Jun 4, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. Redblock6

    Redblock6 Member

    Joined:
    Apr 13, 2019
    Messages:
    12
    Likes Received:
    1
    Skript Version (do not put latest): Skript 2.2-dev36
    Skript Author: Bensku
    Minecraft Version: 1.8.8
    ---
    Full Code:
    Note: If the code is too large, feel free to use a pasting website (Pastebin or hastebin)
    Note: If a variable is being set in another script, but not shown, please explain how they are being set


    Code (Text):
    1. function trap5(p: player):
    2.     shoot an arrow from -19,14,-45 at speed 4.5
    3.     wait 5 ticks
    4.     shoot arrow from -19,14,-46 at speed 4.5
    5.     wait 5 ticks
    6.     shoot arrow from -19,14,-47 at speed 4.5
    7.     wait 5 ticks
    8.     shoot arrow from -19,14,-48 at speed 4.5
    9.     wait 5 ticks
    10.     shoot arrow from -19,14,-49 at speed 4.5
    11.     wait 5 ticks
    12.     shoot arrow from -19,14,-50 at speed 4.5
    13.     wait 5 ticks
    14.     shoot arrow from -19,14,-51 at speed 4.5
    15.     wait 5 ticks
    Errors on Reload:

    http://prntscr.com/stci6d
    http://prntscr.com/stcib2

    Console Errors: (if applicable)

    None.

    Other Useful Info:

    Addons using (including versions):
    N/A (this was added in Skript 1.4)

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it? Tried different variants of the shoot arrow thing, but they all didnt work.
     
  2. Best Answer:
    Post #2 by Nikd0, Jun 4, 2020
  3. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    204
    Likes Received:
    19
    Try
    Code (Text):
    1. set {_loc} to location at -19, 14, -49 in world "world"
    2. shoot arrow from [location] {_loc} at speed 4.5
    If it's still not working, try setting the speed into an integer
     
    • Winner Winner x 1
  4. Redblock6

    Redblock6 Member

    Joined:
    Apr 13, 2019
    Messages:
    12
    Likes Received:
    1
    That works however I am now getting this error everytime I reload my skript.
    here is what it looks like in console:
    Code (Text):
    1. 04.06 17:48:39 [Server] INFO [Skript] Reloading mccore.sk...
    2. 04.06 17:48:40 [Server] ERROR The function 'trap2' does not exist. (mccore.sk, line 130: trap2(arg-1)')
    3. 04.06 17:48:40 [Server] WARN Unexpected exception while parsing console command "sk reload mccore"
    4. 04.06 17:48:40 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-dev36
    5. 04.06 17:48:40 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched.jar:git-PaperSpigot-"4c7641d"]
    6. 04.06 17:48:40 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146) ~[patched.jar:git-PaperSpigot-"4c7641d"]
    7. 04.06 17:48:40 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[patched.jar:git-PaperSpigot-"4c7641d"]
    8. 04.06 17:48:40 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:629) [patched.jar:git-PaperSpigot-"4c7641d"]
    9. 04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:416) [patched.jar:git-PaperSpigot-"4c7641d"]
    10. 04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:379) [patched.jar:git-PaperSpigot-"4c7641d"]
    11. 04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
    12. 04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
    13. 04.06 17:48:40 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212-1-ojdkbuild]
    14. 04.06 17:48:40 [Server] INFO Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
    15. 04.06 17:48:40 [Server] INFO at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:244) ~[?:?]
    16. 04.06 17:48:40 [Server] INFO at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
    17. 04.06 17:48:40 [Server] INFO at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:421) ~[?:?]
    18. 04.06 17:48:40 [Server] INFO at ch.njol.skript.registrations.Classes.parse(Classes.java:450) ~[?:?]
    19. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:95) ~[?:?]
    20. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:84) ~[?:?]
    21. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
    22. 04.06 17:48:40 [Server] INFO at ch.njol.skript.effects.EffChange.init(EffChange.java:207) ~[?:?]
    23. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:253) ~[?:?]
    24. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180) ~[?:?]
    25. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.Statement.parse(Statement.java:59) ~[?:?]
    26. 04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972) ~[?:?]
    27. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:50) ~[?:?]
    28. 04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:143) ~[?:?]
    29. 04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:634) ~[?:?]
    30. 04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389) ~[?:?]
    31. 04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401) ~[?:?]
    32. 04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:434) ~[?:?]
    33. 04.06 17:48:40 [Server] INFO at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:181) ~[?:?]
    34. 04.06 17:48:40 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched.jar:git-PaperSpigot-"4c7641d"]
    35. 04.06 17:48:40 [Server] INFO ... 8 more
    here is what it looks like in game: http://prntscr.com/su1haa
     
  5. Nikd0

    Nikd0 Active Member

    Joined:
    May 30, 2020
    Messages:
    204
    Likes Received:
    19
    I'm not an expert and I'm not sure but it should be because of worldguard.
    Are you sure u are using the right version of world guard? There are multiple versions and if you have outdated server you cannot use the latest plugin version.

    If you're not sure which version to download, you can find it here: https://dev.bukkit.org/projects/worldguard/files
     
Thread Status:
Not open for further replies.

Share This Page

Loading...