Solved Multishot bow

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

Jun 30, 2022
17
1
3
40
Republic of Korea
Category: projectile

Suggested name: Multishot bow

Spigot/Skript Version: 2.6.4

What I want:
If i right click with bow named "&bMultishot Bow", it shoots 3 arrows:
1 is at 315⁰ degrees of player,
1 is at 0⁰ degrees of player,
and last 1 is at 45⁰ degrees of player,
like Multishot enchantment at minecraft.

When I'd like it by: A reasonable time

[doublepost=1676894118,1676641529][/doublepost]nvm, i did it :emoji_grinning:
code_language.skript:
spawn armor stand at location of player
set {_armorstand} to last spawned entity
set {_x} to x-coordinate of player
set {_y} to y-coordinate of player
set {_z} to z-coordinate of player
set {_world} to world of player
set {_yaw} to yaw of player
add 25 to {_yaw}
set {_pitch} to pitch of player
set {_location} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})
teleport {_armorstand} to {_location}
make {_armorstand} shoot an arrow at speed 3
add -25 to {_yaw}
set {_location} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})
teleport {_armorstand} to {_location}
make {_armorstand} shoot an arrow at speed 3
add -25 to {_yaw}
set {_location} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {_pitch})
teleport {_armorstand} to {_location}
make {_armorstand} shoot an arrow at speed 3
kill {_armorstand}
 
Hi, sorry I couldn't get to your post sooner. Since it's done, could you mark this post as done? Sorry to bother.