Only able to break a block with a certain item

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

ImKingGolden

Member
Aug 11, 2020
21
1
3
24
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"
 
Code:
on block break of Wool:
    if player's tool is barrier named "&cWool Remover":
        send "&cYou Broke a Wool"
    else:
        send "&aUse your &cWool Remover"
        cancel event
 
You have to use a id because it does not recognize the item barrier

Code:
on block break of Wool:
    if player's tool is 166 named "&cWool Remover":
        send "&cYou Broke a Wool"
    else:
        send "&aUse your &cWool Remover"
        cancel event
 
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