Chat

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

skanto123

Active Member
Jan 8, 2018
70
0
0
34
How do I make it so when a player right clicks a stone it sends a player a message saying if you want to use this stone type Yes in chat! and if player writes in chat "Yes" it removes the stone from the inventory but if he says no it stops
 
Do you mean when he places a stone or when he clicks it in his inventory? please be more specific
 
code_language.skript:
on rightclick on stone:
    send "if you want to use this stone type Yes in chat! "
    set {block.%player%} to location of event-block
    
on chat:
    if {block.%player%} is set:
        cancel event
        if message contains "yes":
            set block at {block.%player%} to air
            delete {block.%player%}
Fast code :I I didn't no what exactly do you want
 
Status
Not open for further replies.