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.

Detecting Movements

Discussion in 'Skript' started by kittkarrkitt, Jan 5, 2021.

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

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    Hi, I need to know if there is any way to detect if the player or entity stops sprinting after it has started sprinting, which is detectable with on player sprint. I also need to know how to detect if the player or entity has its walk speed at a certain speed (if walk speed of player is higher then xx, didn't work for me).



    Code (Text):
    1. command /emerald:
    2.     trigger:
    3.         give emerald named "&5Speedy Emerald" with lore "&4Dangerous" to the player
    4.  
    5. on any movement:
    6.     event-entity is player:
    7.         if event-entity is sprinting:
    8.             player is holding an emerald named "&5Speedy Emerald" with lore "&4Dangerous"
    9.             #apply speed tier 2 to player for 15 seconds
    10.             set the walk speed of event-entity to 4
    11.             message "Emerald Sprint"
    12.             stop
    13.  
     
  2. BadName

    BadName Member

    Joined:
    Oct 23, 2020
    Messages:
    23
    Likes Received:
    0
    what version of minecraft are you using
     
  3. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    I am using minecraft 1.11.x
     
Thread Status:
Not open for further replies.

Share This Page

Loading...