Advertisement
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 10
- give wood pickaxe to player
- on break:
- if player's gamemode is survival:
- cancel event
- if event-block is coal ore:
- give coal to player
- execute console command "/xp give %player% 1"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to coal ore
- if event-block is iron ore:
- if {level.%uuid of player%} >= 10:
- give iron ingot to player
- execute console command "/xp give %player% 1"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to iron ore
- else:
- message "&c&lHey! &7You must be &bLevel 10 &7to mine this block."
- if event-block is gold ore:
- if {level.%uuid of player%} >= 20:
- give gold ingot to player
- execute console command "/xp give %player% 2"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to gold ore
- else:
- message "&c&lHey! &7You must be &bLevel 20 &7to mine this block."
- if event-block is redstone ore:
- if {level.%uuid of player%} >= 30:
- give redstone dust to player
- execute console command "/xp give %player% 2"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to redstone dust
- else:
- message "&c&lHey! &7You must be &bLevel 30 &7to mine this block."
- if event-block is lapis ore:
- if {level.%uuid of player%} >= 40:
- give lapis to player
- execute console command "/xp give %player% 3"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to lapis ore
- else:
- message "&c&lHey! &7You must be &bLevel 40 &7to mine this block."
- if event-block is diamond ore:
- if {level.%uuid of player%} >= 50:
- give diamond to player
- execute console command "/xp give %player% 3"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to diamond ore
- else:
- message "&c&lHey! &7You must be &bLevel 50 &7to mine this block."
- if event-block is emerald ore:
- if {level.%uuid of player%} >= 75:
- give emerald to player
- execute console command "/xp give %player% 4"
- set event-block to cobblestone
- wait 3 seconds
- set event-block to emerald ore
- else:
- message "&c&lHey! &7You must be &bLevel 75 &7to mine this block."
- if event-block is quartz ore:
- if {level.%uuid of player%} >= 100:
- give quartz item to player
- execute console command "/xp give %player% 4"
- set event-block to nether brick
- wait 3 seconds
- set event-block to quartz ore
- else:
- message "&c&lHey! &7You must be &bLevel 100 &7to mine this block."
- command /reset:
- trigger:
- set {level.%uuid of player%} to 0
- set {xp.%uuid of player%} to 0
- set {xpmax.%uuid of player%} to 10
- on chat:
- cancel event
- if {prefix.%uuid of player%} is not set:
- if {mute.%player%} is more than 0:
- message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
- stop
- else:
- broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
- else:
- if {mute.%player%} is more than 0:
- message "&cYou can not talk while you are muted. &b%{mute.%player%}% &cseconds left."
- stop
- else:
- broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%"
- on right click on ender chest:
- if {level.%uuid of player%} < 20:
- cancel event
- message "&c&lHey! &7You must be &bLevel 20 &7to access the Vault!"
- command /miner [<integer>]:
- trigger:
- if {level.%uuid of player%} < 10:
- message "&c&lHey! &7You must be &bLevel 10 &7to talk to The Miner"
- else:
- open chest with 5 rows named "The Miner" to player
- wait 0.6 ticks
- format slot 4 of player with nether star named "&a&l%player%'s Balance" with lore "&fYou have &2%player's balance%" to be unstealable
- format slot 20 of player with wood pickaxe named "&eWooden Pickaxe" with lore "&cRequired Level: 0||||&fPrice: &a$5||||&fClick to buy this item." to close then run [player command "/purchase woodpick"]
- format slot 21 of player with stone pickaxe named "&eStone Pickaxe" with lore "&cRequired Level: 5||||&fPrice: &a$15||||&fClick to buy this item." to close then run [player command "/purchase stonepick"]
- format slot 22 of player with iron pickaxe named "&eIron Pickaxe" with lore "&cRequired Level: 10||||&fPrice: &a$30||||&fClick to buy this item." to close then run [player command "/purchase ironpick"]
- format slot 23 of player with gold pickaxe named "&eGold Pickaxe" with lore "&cRequired Level: 25||||&fPrice: &a$50||||&fClick to buy this item." to close then run [player command "/purchase goldpick"]
- format slot 24 of player with diamond pickaxe named "&eDiamond Pickaxe" with lore "&cRequired Level: 50||||&fPrice: &a$90||||&fClick to buy this item." to close then run [player command "/purchase diamondpick"]
- command /xp [<text>] [<player>] [<integer>]:
- permission: *
- trigger:
- if arg 1 is "give":
- add arg 3 to {xp.%uuid of arg 2%}
- if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}:
- add 1 to {level.%uuid of arg 2%}
- add 2 to {xpmax.%uuid of arg 2%}
- set {xp.%uuid of arg 2%} to 0
- message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2
- message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2
- command /merchant:
- trigger:
- message "&a[NPC] Merchant: &fHey %player%, come sell some items!"
- open chest with 5 rows named "The Merchant" to player
- wait 0.6 ticks
- format slot 4 of player with nether star named "&a&l%player%'s Balance" with lore "&fYou have &2%player's balance%" to be unstealable
- format slot 20 of player with coal item named "&eCoal" with lore "&cRequired Level: 0||||&fPrice: &a$0.10 each||||&fClick here to sell." to run [player command "/sell coal"]
- format slot 21 of player with iron ingot named "&eIron" with lore "&cRequired Level: 10||||&fPrice: &a$0.15 each||||&fClick here to sell." to run [player command "/sell iron"]
- format slot 22 of player with gold ingot named "&eGold" with lore "&cRequired Level: 20||||&fPrice: &a$0.20 each||||&fClick here to sell." to run [player command "/sell gold"]
- format slot 23 of player with redstone dust named "&eRedstone" with lore "&cRequired Level: 30||||&fPrice: &a$0.30 each||||&fClick here to sell." to run [player command "/sell redstone"]
- format slot 24 of player with lapis lazuli named "&eLapis Lazuli" with lore "&cRequired Level: 40||||&fPrice: &a$0.50 each||||&fClick here to sell." to run [player command "/sell lapis"]
- format slot 30 of player with diamond named "&eDiamond" with lore "&cRequired Level: 50||||&fPrice: &a$1 each||||&fClick here to sell." to run [player command "/sell diamond"]
- format slot 31 of player with emerald named "&eEmerald" with lore "&cRequired Level: 75||||&fPrice: &a$1.75 each||||&fClick here to sell." to run [player command "/sell emerald"]
- format slot 32 of player with quartz item named "&eQuartz" with lore "&cRequired Level: 100||||&fPrice: &a$2.50 each||||&fClick here to sell." to run [player command "/sell quartz"]
- command /prefix [<player>] [<text>]:
- permission: prefix.*
- trigger:
- set {prefix.%uuid of arg 1%} to "%coloured arg 2%"
- message "&aSet %arg 1%'s prefix to %coloured arg 2%"
- if arg 2 is not set:
- delete {prefix.%uuid of arg 1%}
- command /level:
- trigger:
- message ""
- message "&7You are currently level %{level.%uuid of player%}%"
- message "&bProgress: %{xp.%uuid of player%}%/%{xpmax.%uuid of player%}% XP Remaining"
- message ""
- on drop:
- if event-item is pickaxe:
- if player's gamemode is survival:
- cancel event
- message "&c&lHey! &7You can't drop pickaxes."
- on place:
- if player's gamemode is survival:
- cancel event
- command /sorry:
- trigger:
- if {sorry.%uuid of player%} is not set:
- set {sorry.%uuid of player%} to true
- message "&cSorry for resetting! Here are some items to get you started."
- give stone pickaxe to player
- execute console command "/xp give %player% 10"
- message "&aYou have received 10 player experience."
- execute console command "/prefix %player% &d[BETA]"
- stop
- if {sorry.%uuid of player%} is true:
- message "&aYou have already claimed this."
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement