Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {level::%uuid of player%} to 0
- set {xp::%uuid of player%} to 0
- set {xpmax::%uuid of player%} to 50
- command /reset:
- trigger:
- set {level::%uuid of player%} to 0
- set {xp::%uuid of player%} to 0
- set {xpmax::%uuid of player%} to 50
- on build:
- if player is not op:
- cancel event
- on break:
- if player is not op:
- cancel event
- if event-block is coal ore:
- set event-block to stone
- give coal item to player
- execute console command "/xp add %player% 5"
- wait 10 seconds
- set event-block to coal ore
- if event-block is iron ore:
- set event-block to stone
- give iron ingot to player
- execute console command "/xp add %player% 5"
- wait 10 seconds
- set event-block to iron ore
- if event-block is gold ore:
- set event-block to stone
- give gold ingot to player
- execute console command "/xp add %player% 5"
- wait 10 seconds
- set event-block to gold ore
- if event-block is diamond ore:
- if {level::%uuid of player%} < 20:
- message "&c&lYou must be at least Level 20 to mine this!"
- else:
- set event-block to stone
- give diamond to player
- execute console command "/xp add %player% 5"
- wait 10 seconds
- set event-block to diamond ore
- if event-block is emerald ore:
- if {level::%uuid of player%} < 20:
- message "&c&lYou must be at least Level 20 to mine this!"
- else:
- set event-block to stone
- give emerald to player
- execute console command "/xp add %player% 5"
- wait 10 seconds
- set event-block to emerald ore
- on chat:
- cancel event
- broadcast "&7Lvl %{level::%uuid of player%}% &e%player% &f%message%"
- command /xp [<text>] [<player>] [<integer>]:
- executable by: console
- trigger:
- if arg 1 is "add":
- add arg 3 to {xp::%uuid of arg 2%}
- message "&a&l + %arg 3% XP" to arg 2
- if {xp::%uuid of arg 2%} >= {xpmax::%uuid of arg 2%}:
- add 1 to {level::%uuid of arg 2%}
- set {xp::%uuid of arg 2%} to 0
- message "&e&lYou are now Level %{level::%uuid of arg 2%}%" to arg 2
Add Comment
Please, Sign In to add comment