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.

How to execute something on step on blocks

Discussion in 'Skript' started by AKRODOGY, Jul 16, 2018.

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

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    52
    Likes Received:
    2
    Someone?

    I want to do this: on step on block at a coord , to execute a effect/run commands

    And i don't know
     
  2. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
    Maybe this, but i havent tested it
    Code (Skript):
    1. on step:
    2.     if location of player = location at 0, 0, 0  in world "china":
    3.         execute player command "/wall"
     
  3. AKRODOGY

    AKRODOGY Active Member

    Joined:
    Mar 20, 2018
    Messages:
    52
    Likes Received:
    2
    can't understand this event: 'on step' (ddo.sk, line 8: on step:')

    is a error
     
  4. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    9
    If it works...:
    Code (Skript):
    1. on walking on stone:
    2.     player's y-coordinate is 0:
    3.         player's z-coordinate is 0:
    4.             player's x-coordinate is 0:
    5.                 message "Test"
    6.    
    You may want to change the coordinate numbers and the block of the event must be the block below the player at that location below indicated, also you can change the effects, instead of a message. :emoji_grinning::emoji_grinning:
     
  5. Efnilite

    Supporter

    Joined:
    May 12, 2018
    Messages:
    218
    Likes Received:
    15
    Medals:
    that only works if he is stepping on stone..
     
  6. Aidanete

    Aidanete Active Member

    Joined:
    Apr 11, 2017
    Messages:
    139
    Likes Received:
    9
    I say that he may change the block stone to the block below the player in that coordinate. Sometimes I think I talk to the walls.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...