Shoot Wither Skulls

  • 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.
Oct 3, 2017
19
2
3
25
I've been out of the skripting game for a while but came back to hitting a road block. I've been trying to figure out how to shoot a wither skull like an actual wither out of an item. I have this code, however if the player were to look straight forward, the skull would drop to the ground instead of going forward.

This is the code so far
Code:
if player's tool is {staff}:
        if {time.used.%player%} is true:
            spawn a wither skull in front of the player
            thrust the spawned wither skull in direction of player with force 1

My skript versions:
SkQuery v3.21.4
Skellett v1.9.6b
Skript v2.2-dev27
skRayFall v1.9.15

My minecraft version is 1.8.x

I'm just looking for any possible way to make it shoot straight or make the code better. I've searched high and low on google, youtube, and these forums but haven't found anything on it.
 
Code:
spawn a wither skull at location in front of player's eyes
There, now it will shoot towards wherever the player is looking.
 
Status
Not open for further replies.