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 Wither Skulls

Discussion in 'Skript' started by SuperEpps22556, Jul 10, 2019.

Thread Status:
Not open for further replies.
  1. SuperEpps22556

    Joined:
    Oct 3, 2017
    Messages:
    17
    Likes Received:
    2
    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 (Text):
    1. if player's tool is {staff}:
    2.         if {time.used.%player%} is true:
    3.             spawn a wither skull in front of the player
    4.             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.
     
  2. PatoFrango

    PatoFrango Active Member

    Joined:
    Jul 12, 2017
    Messages:
    240
    Likes Received:
    14
    Code (Text):
    1. spawn a wither skull at location in front of player's eyes
    There, now it will shoot towards wherever the player is looking.
     
  3. SuperEpps22556

    Joined:
    Oct 3, 2017
    Messages:
    17
    Likes Received:
    2
    Thank you much, I can finally proceed in skripting :emoji_smile:
     
    PatoFrango likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...