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.

Cancel place

Discussion in 'Skript' started by Auswahluhr6004, Sep 1, 2017.

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

    Joined:
    Mar 1, 2017
    Messages:
    109
    Likes Received:
    1
    Hello,

    My Problem: I couldn't cancel the place of a chest with a specifi name.

    Code:
    Code (Skript):
    1. on place:
    2.     if block is chest:
    3.         if name of block is "&4Willkommen &8&7Case":
    4.             cancel the event
    Thank you!
    Best regards, Auswahluhr6004
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Replace block with "held item"
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    It doesn't work. I tried it with a debug

    Code (Skript):
    1. on place:
    2.     if held item is chest:
    3.         send "&cHey" to sender
    4.         if name of held item is "&4Willkommen &8&7Case":
    5.             send "&cHey"
    6.             cancel the event
    It doesn't send me Hey one or two times :emoji_frowning:
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    held item of player.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Same. It doesn't send me anything
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Code (Skript):
    1. on place of chest:
    2.     name of player's tool is "&4Willkommen &8&7Case"
    3.     cancel event
    ...perhaps?
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...