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.

How do I make this skript work

Discussion in 'Skript' started by fds, Aug 27, 2021.

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

    fds Member

    Joined:
    Jan 8, 2020
    Messages:
    4
    Likes Received:
    0
    on break of iron ore:
    player is holding a wooden pickaxe
    if level of efficiency of player's tool is greater than or equal to 10
    give player iron ingot
    if else:
    send "&4§lUpgrade your pickaxe with /merchant to mine this" to player

    Im trying to make it so a player needs efficiency level 10 to mine iron can anyone help?
     
  2. IDuckz_

    IDuckz_ Active Member

    Joined:
    Jul 25, 2019
    Messages:
    106
    Likes Received:
    2
    Use "else:" instead of "if else:" since that wouldn't work, and make sure to cancel event before or after you sent the "upgrade your pickaxe ..." message otherwise player's can still break the block.
     
  3. fds

    fds Member

    Joined:
    Jan 8, 2020
    Messages:
    4
    Likes Received:
    0
    2021-08-26_22.52.13.png Im getting these errors
    --- Double Post Merged, Aug 27, 2021, Original Post Date: Aug 27, 2021 ---
    2021-08-26_22.57.23.png Got it down to one error :emoji_grinning:
     

    Attached Files:

  4. Riiee

    Riiee Member

    Joined:
    Aug 25, 2021
    Messages:
    3
    Likes Received:
    0
    Code (Text):
    1.  
    2. on break of iron ore:
    3.     player is holding a wooden pickaxe
    4.     if level of efficiency of player's tool is greater than or equal to 10:
    5.     give player iron ingot
    6. else:
    7.     cancel event
    8.     send "&4§lUpgrade your pickaxe with /merchant to mine this" to player
    9.  
     
  5. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    Code (Text):
    1. on break of iron ore:
    2.     player is holding a wooden pickaxe:
    3.         if level of efficiency of player's tool is greater than or equal to 10:
    4.             give iron ingot to player
    5.             stop
    6.     cancel event
    7.     send "&4§lUpgrade your pickaxe with /merchant to mine this" to player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...