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.

make some block falling with animation

Discussion in 'Skript' started by AlfaLe0, Mar 2, 2018.

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

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
    I need a script that create some falling block like Meteor in the sky... they don't have only to fall in vertical but like that
    -
    . ......-
    . ............ -
    . ................ -
    . ....................... -
    - -- ---------------- --- - -
    is it possible?
     
    #1 AlfaLe0, Mar 2, 2018
    Last edited: Mar 2, 2018
  2. TPGamesNL

    Moderator Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    108
    Medals:
    #2 TPGamesNL, Mar 2, 2018
    Last edited: Mar 4, 2018
  3. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
    yes, but I don’t need a vertical falling block...
    --- Double Post Merged, Mar 2, 2018, Original Post Date: Mar 2, 2018 ---
    I want a falling block like a meteor...
     
  4. TPGamesNL

    Moderator Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    108
    Medals:
    If you spawn the falling block and then push it to the right until its it the ground
     
  5. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
    Yes, but how? Can you write me a simple code?
     
  6. TPGamesNL

    Moderator Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    108
    Medals:
    Code (Skript):
    1. command /meteor [<text>]:
    2.     trigger:
    3.         if arg-1 is "loc":
    4.             set {meteor::startloc} to location of player
    5.             message "meteor location set"
    6.             stop
    7.         if {meteor::startloc} is not set:
    8.             message "use &e/meteor loc &rfirst"
    9.             stop
    10.         if arg-1 is not set:
    11.             message "meteor starting!"
    12.             spawn falling block of stone at {meteor::startloc}
    13.             set {_fb} to last spawned falling block
    14.             while ground state of {_fb} is false:
    15.                 push {_fb} west at speed 0.07
    16.                 wait 2 ticks
    17.             message "meteor landed!"
    requires SkQuery and Skellett
     
Thread Status:
Not open for further replies.

Share This Page

Loading...