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.

Help with giving someone a block on they can interact

Discussion in 'Skript' started by ImKingGolden, Mar 5, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. ImKingGolden

    ImKingGolden Member

    Joined:
    Aug 11, 2020
    Messages:
    21
    Likes Received:
    1
    I'm a little lost and how i can give someone a block so only they can interact with that block and no one else (when its placed down). if anyone helps Thanks :emoji_grinning:
     
  2. Mattllama987

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    Are you talking about something like this?

    Code (Text):
    1. command /specialstone:
    2.     trigger:
    3.         if player has permission "special.stone":
    4.             give player 1 stone named "&aSpecial Stone"
    5. on place stone:
    6.     if name of player's held item contains "&aSpecial Stone":
    7.         set {specialblock::%player's uuid%} to location of event-block
    8. on break:
    9.     if {specialblock::%player's uuid%} is location of event-block:
    10.         delete {specialblock::%player's uuid%}
    11.         send "&cYou removed your special stone!" to player
    12. on right click on stone:
    13.     if {specialblock::%player's uuid%} is location of event-block:
    14.         cancel event
    15.         send "&aWow! You clicked a block only you can use!" to player
    16.         #code here
     
  3. ImKingGolden

    ImKingGolden Member

    Joined:
    Aug 11, 2020
    Messages:
    21
    Likes Received:
    1
    i'll try it out thanks
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...