Skip to content
home/templates/jobs system (mining / farming)
economyIntermediatenewmc 1.20.x – 1.21.x36 lines

jobs system (mining / farming)

players earn money for breaking blocks. /jobs join mining → get paid for stone, coal, iron, etc. per-block payout configurable.

vanilla Skriptno addons required.
jobs-system.sk36 lines
command /jobs <text> [<text>]:
    trigger:
        if arg-1 is "join":
            if arg-2 is "mining":
                set {jobs.%uuid of player%} to "mining"
                send "&aYou joined the &eMiner &ajob!" to player
            else if arg-2 is "farming":
                set {jobs.%uuid of player%} to "farming"
                send "&aYou joined the &eFarmer &ajob!" to player
            else:
                send "&cAvailable jobs: &fmining, farming" to player
        else if arg-1 is "leave":
            delete {jobs.%uuid of player%}
            send "&7You left your current job." to player
        else:
            send "&eYour job: &f%{jobs.%uuid of player%} ? \"None\"%" to player

on break:
    if {jobs.%uuid of player%} is "mining":
        if event-block is stone:
            add 1 to {money.%uuid of player%}
        else if event-block is coal ore:
            add 3 to {money.%uuid of player%}
        else if event-block is iron ore:
            add 8 to {money.%uuid of player%}
        else if event-block is diamond ore:
            add 50 to {money.%uuid of player%}
            send "&6&l+ $50 &r&7(diamond ore)" to player action bar
    else if {jobs.%uuid of player%} is "farming":
        if event-block is wheat:
            add 1 to {money.%uuid of player%}
        else if event-block is melon:
            add 2 to {money.%uuid of player%}
        else if event-block is pumpkin:
            add 3 to {money.%uuid of player%}

get it running

jobs-system.sk · 36 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    jobs-system.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/jobs-system.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload jobs-system
that's it — your script is live. hop in-game to try it.
/ related templates

more economy templates

comments