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
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
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}