Shoot arrow at specific coordinate

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

Redblock6

Member
Apr 13, 2019
12
1
3
45
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:
function trap5(p: player):
    shoot an arrow from -19,14,-45 at speed 4.5
    wait 5 ticks
    shoot arrow from -19,14,-46 at speed 4.5
    wait 5 ticks
    shoot arrow from -19,14,-47 at speed 4.5
    wait 5 ticks
    shoot arrow from -19,14,-48 at speed 4.5
    wait 5 ticks
    shoot arrow from -19,14,-49 at speed 4.5
    wait 5 ticks
    shoot arrow from -19,14,-50 at speed 4.5
    wait 5 ticks
    shoot arrow from -19,14,-51 at speed 4.5
    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.
 
Try
Code:
set {_loc} to location at -19, 14, -49 in world "world"
shoot arrow from [location] {_loc} at speed 4.5
If it's still not working, try setting the speed into an integer
 
Try
Code:
set {_loc} to location at -19, 14, -49 in world "world"
shoot arrow from [location] {_loc} at speed 4.5
If it's still not working, try setting the speed into an integer
That works however I am now getting this error everytime I reload my skript.
here is what it looks like in console:
Code:
04.06 17:48:39 [Server] INFO [Skript] Reloading mccore.sk...
04.06 17:48:40 [Server] ERROR The function 'trap2' does not exist. (mccore.sk, line 130: trap2(arg-1)')
04.06 17:48:40 [Server] WARN Unexpected exception while parsing console command "sk reload mccore"
04.06 17:48:40 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'sk' in plugin Skript v2.2-dev36
04.06 17:48:40 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146) ~[patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666) ~[patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchServerCommand(CraftServer.java:629) [patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.aO(DedicatedServer.java:416) [patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:379) [patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212-1-ojdkbuild]
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;
04.06 17:48:40 [Server] INFO at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:244) ~[?:?]
04.06 17:48:40 [Server] INFO at me.TheBukor.SkStuff.SkStuff$4.parse(SkStuff.java:1) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.registrations.Classes.parseSimple(Classes.java:421) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.registrations.Classes.parse(Classes.java:450) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:95) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:84) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.UnparsedLiteral.getConvertedExpression(UnparsedLiteral.java:1) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.effects.EffChange.init(EffChange.java:207) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:253) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:180) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.Statement.parse(Statement.java:59) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:972) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.function.ScriptFunction.<init>(ScriptFunction.java:50) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.lang.function.Functions.loadFunction(Functions.java:143) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:634) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.lambda$1(ScriptLoader.java:389) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:401) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:434) ~[?:?]
04.06 17:48:40 [Server] INFO at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:181) ~[?:?]
04.06 17:48:40 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[patched.jar:git-PaperSpigot-"4c7641d"]
04.06 17:48:40 [Server] INFO ... 8 more
here is what it looks like in game: http://prntscr.com/su1haa
 
I'm not an expert and I'm not sure but it should be because of worldguard.
INFO Caused by: java.lang.NoSuchMethodError: com.sk89q.worldguard.bukkit.WorldGuardPlugin.getFlagRegistry()Lcom/sk89q/worldguard/protection/flags/registry/FlagRegistry;
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
 
Status
Not open for further replies.