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.

Placed Block question

Discussion in 'Skript' started by GandalfDev, May 2, 2020.

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

    GandalfDev New Member

    Joined:
    Jun 2, 2018
    Messages:
    5
    Likes Received:
    0
    Hello, skunity community,

    It is possible to make a variable that can save the player placed block location and the name of the player that placed that block, so when i right click on that block i can see in chat the location o the block and the owner?

    It is possible?
    Thanks,
     
    #1 GandalfDev, May 2, 2020
    Last edited: May 2, 2020
  2. Flowy

    Flowy New Member

    Joined:
    May 29, 2020
    Messages:
    6
    Likes Received:
    0
    Code (Text):
    1. on place of bedrock:
    2.     set {block::%event-block%::%player%} to player
    3.     set {block2::%event-block%} to event-block's location
    4.  
    5. on rightclick on bedrock:
    6.     if {block::%event-block%::*} is set:
    7.         send "&2%{block2::%event-block%}%"
    8.         send "&cOwner: &3%{block::%event-block%::*}%"
    It's a bit late but :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...