Need Help

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 4, 2021
14
0
1
23
Is it possible to get the information of a block that a player places? Like on a "on block place" event, how would I detect the block they placed?
 
If you want to get the block the player placed you want to message the name of the event-block (The block that the event is about. If you place dirt, the block that is being used in the event of on place is a dirt block.) to the player so that you know what block it is.

You can do this by sending "%event-block%" to the player. the "" marks are for a string of text and the %% is so Skript knows you are talking about SOMETHING instead of "event-block" in text.
Code:
on place:
    message "%event-block%" to player
    stop
upload_2021-4-12_14-53-59.png

Please mark this thread as "Solved".
 
Last edited:
Status
Not open for further replies.