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.

Block Change

Discussion in 'Skript' started by Crocie, Aug 15, 2021.

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

    Crocie Member

    Joined:
    Jul 2, 2021
    Messages:
    29
    Likes Received:
    0
    i want to change the event-block to yellow, then turn back after 1 second

    Code (Text):
    1. else if target block of player is set:
    2.     set {_eventblock} to event-block
    3.     send "%{_eventblock}%"
    4.     set event-block to yellow wool
    5.     wait 1 seconds
    6.     set event-block to {_eventblock}
    7.     send "%{_eventblock}%"
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    And now? Wheres the problem?
     
  3. Crocie

    Crocie Member

    Joined:
    Jul 2, 2021
    Messages:
    29
    Likes Received:
    0
    The problem is when I set {_eventblock} it becomes the block from before but when the yellow spawns it changes
     
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    then add a delay to prevent it
     
  5. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Code (Text):
    1.  
    2. else if target block of player is set:
    3.     set {_eventblock} to type of event-block
    4.     set event-block to yellow wool
    5.     wait 1 second
    6.     set event-block to {_eventblock}
    7.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...