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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Only able to break a block with a certain item

Discussion in 'Requests' started by ImKingGolden, Aug 11, 2020.

Tags:
  1. ImKingGolden

    ImKingGolden Member

    Joined:
    Aug 11, 2020
    Messages:
    21
    Likes Received:
    1
    I'm on latest update (version 1.16.1)

    on block break of Wool:
    if item is barrier named "&cWool Remover:
    send "&cYou Broke a Wool"
    else:
    send "&aUse your &cWool Remover"
    cancel event

    when ever I break a piece of wool it will not allow me to even with the "Wool Remover"
     
  2. Flajakay

    Flajakay Active Member

    Joined:
    Jul 29, 2018
    Messages:
    55
    Likes Received:
    1
    Code (Text):
    1. on block break of Wool:
    2.     if player's tool is barrier named "&cWool Remover":
    3.         send "&cYou Broke a Wool"
    4.     else:
    5.         send "&aUse your &cWool Remover"
    6.         cancel event
     
  3. ser

    ser Member

    Joined:
    Aug 28, 2020
    Messages:
    3
    Likes Received:
    0
    You have to use a id because it does not recognize the item barrier

    Code (Text):
    1. on block break of Wool:
    2.     if player's tool is 166 named "&cWool Remover":
    3.         send "&cYou Broke a Wool"
    4.     else:
    5.         send "&aUse your &cWool Remover"
    6.         cancel event
     
  4. Zabrid

    Supporter

    Joined:
    Mar 2, 2019
    Messages:
    54
    Likes Received:
    1
    I'm aware this is old but i'd also recommend either using lore or NBT data to identify a special item in skript as a lot of servers have /rename
     

Share This Page

Loading...