Skript Edit HELP

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

mynameisjosep

Member
Apr 25, 2020
29
0
0
23
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
 
upload_2020-4-28_0-23-26.png

cmon use proper formatting, it's hard to read + many people wont help you by that
[doublepost=1588026328,1588026257][/doublepost]should work
Code:
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::%player%}
            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
 
View attachment 4604
cmon use proper formatting, it's hard to read + many people wont help you by that
[doublepost=1588026328,1588026257][/doublepost]should work
Code:
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::%player%}
            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
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
 
Status
Not open for further replies.