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.

Need help identifying enchantments on a tool

Discussion in 'Skript' started by Kitti_Chan, Feb 16, 2020.

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

    Kitti_Chan Member

    Joined:
    Sep 3, 2019
    Messages:
    2
    Likes Received:
    0
    So far I have this:

    on block damage:
    if event-block is bedrock:
    if player’s tool is diamond pickaxe:
    wait 100 ticks
    set event-block to air
    drop bedrock

    But I wanted to find out how to have the tool as a diamond pickaxe with the enchantments efficiency 69, infinity 420, and sharpness 5. Sorry btw, I’m not sure how to make the code above into the format it’s supposed to be in ✊
     
  2. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    109
    Likes Received:
    0
    you want the player's tool to be enchanted?
    --- Double Post Merged, Feb 16, 2020, Original Post Date: Feb 16, 2020 ---
    if you meant that, here is the skript:
    Code (Text):
    1. on block damage:
    2.   if event-block is bedrock:
    3.     if player is holding stone pickaxe:
    4.       if player's held item is enchanted with efficiency 69:
    5.         set {_drop} to bedrock
    6.         wait 40 ticks
    7.         set event-block to air
    8.         drop {_drop} 2 meters forward the player
     
  3. Kitti_Chan

    Kitti_Chan Member

    Joined:
    Sep 3, 2019
    Messages:
    2
    Likes Received:
    0
    Tysm!
     
  4. Turb032

    Turb032 Active Member

    Joined:
    Jan 16, 2020
    Messages:
    109
    Likes Received:
    0
    No problem! Make sure to mark the title as Solved!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...