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 our 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 make a broadcast happen when someone touches a certain block?

Discussion in 'Skript' started by RunaYoutube, Nov 10, 2019.

  1. RunaYoutube

    RunaYoutube Member

    Joined:
    Nov 10, 2019
    Messages:
    16
    Likes Received:
    0
    Hello, I'm wanting to know if it is possible to make a broadcast happen when someone touches a certain block
     
  2. Juvius

    Juvius Member

    Joined:
    Oct 28, 2019
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1. on walk on sponge:
    2.     if {broadcast.%player%} is true:
    3.         stop
    4.     else:
    5.         set {broadcast.%player%} to true
    6.         broadcast "&a%player% &awalked on &e&lSponge&a!"
    7.         # your time to shine here
    8.         wait 5 seconds
    9.         delete {broadcast.%player%}
    10.        
    11. on join:
    12.     if {broadcast.%player%} is true:
    13.         delete {broadcast.%player%}
    I used Sponge as an example. (Obviously change Sponge to the block you want)
    Maybe next time include which Skript version you are using, addons, etc.
     
Loading...