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

Pickaxe enchant checker

Discussion in 'Skript' started by Travis Janzen, Aug 13, 2019 at 8:30 AM.

  1. T

    Travis Janzen Member

    Joined:
    Tuesday
    Messages:
    2
    Likes Received:
    0
    I have been trying to figure out how to check what enchantments a players pickaxe is when they mine a block. I have searched multiple forum pages and the docs, skUnity came up with tool of the player is enchanted with efficiency 2. Every time I reload the skript in game it says it can't compare a slot with 'enchanted with silktouch' Have any idea whats going wrong?
    Skript version: 2.4 5beta (latest)
    minecraft version: 1.14.4
    no console errors
    Code:
    Code (Text):
    1. on mine of stone:
    2.     if tool of the player is enchanted with silktouch:
    3.         execute console command "give %player% steak"
     
    #1 Travis Janzen, Aug 13, 2019 at 8:37 AM
    Last edited: Aug 13, 2019 at 8:43 AM
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    164
    Likes Received:
    15
    Code (Text):
    1. on break of stone:
    2.     if player's tool is enchanted with silk touch:
    3.         give player a steak
     
  3. T

    Travis Janzen Member

    Joined:
    Tuesday
    Messages:
    2
    Likes Received:
    0
    Thank you that worked!
    But everytime I reload the skript it gives me the error can't compare a slot with 'enchant with silktouch'
    it would just be nice if there would be a fix to that.
     
  4. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    164
    Likes Received:
    15
    Try "player's equipped tool" also make sure it's "silk touch" not "silktouch"
     
Loading...