How do you add to a player's total mined blocks

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

ItzSulf

New Member
Jul 15, 2022
7
0
1
21
Im using the %statistic_mine_block% placeholder to show how many blocks a player has mine but when using my auto pickup skript the amount does not go up.

I've disabled the skript then mined a block to test if the skript was the problem and it is because it worked fine.

Code:
on break:
    if player's gamemode is not creative:
        add 1 to {blocks-mined::%player's uuid%}
        set event-block to air
        give drops of event-block using player's tool to player
        cancel drops
 
Code:
mine_block statistic of player
this will return the total amount of blocks you've broken, it has been added in skbee 1.17
 
Status
Not open for further replies.