Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {mobcoins.%player%} = 0 # Amount of mobcoins a player will have on first join
- # When a player breaks one of these listed blocks, they will recieve the specified amount of mobcoins
- on break of iron_ore:
- chance of 7%:
- add 3 to {mobcoins.%attacker%}
- send "&eYou salvaged &63x&e mobcoins" to miner
- on break of gold_ore:
- chance of 12%:
- add 1 to {mobcoins.%attacker%}
- send "&eYou salvaged &61x&e mobcoins" to miner
- on break of diamond_ore:
- chance of 14%:
- add 5 to {mobcoins.%attacker%}
- send "&eYou salvaged &65x&e mobcoins" to miner
- on break of emerald_ore:
- chance of 18%:
- add 9 to {mobcoins.%attacker%}
- send "&eYou salvaged &69x&e mobcoins" to miner
- on break of quartz_ore:
- chance of 8%:
- add 5 to {mobcoins.%attacker%}
- send "&eYou salvaged &65x&e mobcoins" to miner
- on break of oak_log:
- chance of 7%:
- add 15 to {mobcoins.%attacker%}
- send "&eYou salvaged &61x&e mobcoins" to miner
- command /mobcoins [<text>] [<player>]:
- trigger:
- if arg 1 is not set:
- if arg 2 is not set:
- send "&eYou have &6%{mobcoins.%player%}% &eMobcoins." to player
- if arg 1 is "view":
- if arg 2 is set:
- send "&6%arg 2%'s &eMobcoins balance is &6%{mobcoins.%arg 2%}%&e" to player
- if arg 1 is "reset":
- if arg 2 is set:
- if player has permission "mobcoins.admin":
- set {mobcoins.%arg 2%} to 0%
- send "&6%arg 2%'s &eMobcoin balance was reset back to &60&e." to player
- send "&eYour Mobcoins where reset by a staff member. Your new Mobcoin balance is &60&e!" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement