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.

Skript Edit HELP

Discussion in 'Skript' started by mynameisjosep, Apr 27, 2020.

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

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    hello guys i have a script but i have a problem let me explain with a example, EXAMPLE he broked 20 coal ore's he can see with action bar till a there everythings good but if he get another PİCKAXE! if he wanna see how much coal he BROKED ! thats showing previous pickaxe values İ DONT WANT THİS help me guys



    code is
    on break of coal ore:
    if tool's name is "&6level &c1":
    if tool is diamond pickaxe:
    if {Miner:%player%} is set:
    add 1 to {coal::%tool%}
    set action bar of player to "you breaked &2&l%{kömür::%tool%}% with your level 1 pickaxe"
    set {_item} to player's tool
    if {coal::%player%} is greater than or equal to 250:
    remove {_item} from player
    give a diamond pickaxe of efficiency 2 named "" to player
    set {coal::%player%} to 0
     
  2. PanHack

    PanHack Active Member

    Joined:
    Dec 18, 2019
    Messages:
    143
    Likes Received:
    8
    upload_2020-4-28_0-23-26.png
    cmon use proper formatting, it's hard to read + many people wont help you by that
    --- Double Post Merged, Apr 27, 2020, Original Post Date: Apr 27, 2020 ---
    should work
    Code (Text):
    1. on break of coal ore:
    2.     if tool's name is "&6level &c1":
    3.         if tool is diamond pickaxe:
    4.             if {Miner:%player%} is set:
    5.             add 1 to {coal::%player%}
    6.             set action bar of player to "you breaked &2&l%{kömür::%tool%}% with your level 1 pickaxe"
    7.             set {_item} to player's tool
    8.             if {coal::%player%} is greater than or equal to 250:
    9.                 remove {_item} from player
    10.                 give a diamond pickaxe of efficiency 2 named "" to player
    11.                 set {coal::%player%} to 0
     
  3. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    sir im only want Do value's single set action bar of player to "you breaked &2&l%{kömür::%tool%}% with your level 1 pickaxe" you did this but i want add 1 to {coal::%tool%} i want to add value's only tools sir
     
Thread Status:
Not open for further replies.

Share This Page

Loading...