Jump to content

can someone make me this script?


KingTino104

Recommended Posts

when player mines 100 blocks

do

(/)crate key set player 18 1

and 1% chance to do

/crate key set player 14 1

# just saying this like if there is an addon that can enable so you can use commands from other plugins ill add it (that is kinda the only reason im making this)

Edited by KingTino104

 

                                                                   [DEFAULT] - 02/13/2021 - 10/28/2021

                                                                   [VIP]10/28/2021 - Present

Link to comment
Share on other sites

Hey, I believe this is roughly what you want:
 

command /blocks:
  trigger:
    send "&bReward: &f%{mined.%player's uuid%}%/100"
    send "&bTotal: &f%{blocks.%player's uuid%}%"

on block break:
    add 1 to {mined.%player's uuid%}
    add 1 to {blocks.%player's uuid%}
    if {mined.%player's uuid%} is greater than 99:
        set {mined.%player's uuid%} to 0
        make console execute command "/crate key set player 18 1"
        if chance of 1%:
        make console execute command "/crate key set player 14 1"

 

If you like what I post or I've helped you please leave a like or upvote my posts! Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...