Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {playerxp::%uuid of player%} to 0
- set {playerxpmax::%uuid of player%} to 50
- set {level::%uuid of player%} to 1
- command /reset:
- trigger:
- set {playerxp::%uuid of player%} to 0
- set {playerxpmax::%uuid of player%} to 50
- set {level::%uuid of player%} to 1
- on chat:
- cancel event
- broadcast "&7Lvl. %{level::%uuid of player%}% &e%player%: &f%message%"
- command /xp [<text>] [<player>] [<integer>]:
- trigger:
- if player does not have permission "xp.use":
- message "&cYou can't use this command."
- else:
- if arg 1 is "add":
- add arg 3 to {playerxp::%uuid of arg 2%}
- message "&6&l + %arg 3% Player XP" to arg 2
- if {playerxp::%uuid of arg 2%} >= {playerxpmax::%uuid of arg 2%}:
- add 1 to {level::%uuid of arg 2%}
- set {playerxp::%uuid of arg 2%} to 0
- add 25 to {playerxpmax::%uuid of arg 2%}
- message "&r " to arg 2
- message "&e&lYou are now lvl. %{level::%uuid of arg 2%}%" to arg 2
- message "&r " to arg 2
- on break:
- if player does not have permission "build.bypass":
- cancel event
- if event-block is coal ore:
- set event-block to stone
- give coal item to player
- wait 1 minute
- set event-block to coal ore
- execute console command "/xp add %player% 5"
- if event-block is iron ore:
- set event-block to stone
- give iron ingot to player
- wait 1 minute
- set event-block to iron ore
- execute console command "/xp add %player% 5"
- if event-block is gold ore:
- set event-block to stone
- give gold ingot to player
- wait 1 minute
- set event-block to gold ore
- execute console command "/xp add %player% 5"
- if event-block is diamond ore:
- set event-block to stone
- give diamond to player
- wait 1 minute
- set event-block to diamond ore
- execute console command "/xp add %player% 10"
- if event-block is emerald ore:
- set event-block to stone
- give emerald to player
- wait 1 minute
- set event-block to emerald ore
- execute console command "/xp add %player% 15"
- if event-block is lapis lazuli ore:
- set event-block to stone
- give 3 lapis lazuli to player
- wait 30 seconds
- set event-block to lapis lazuli ore
- execute console command "/xp add %player% 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement