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
- 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:
- if arg 1 is not set:
- open chest with 6 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 19 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 28 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 37 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 50 of player with arrow named "&aNext Page >" with lore "&7Click to view the next page." to run [player command "/miner 2"]
- if arg 1 = 2:
- open chest with 6 rows named "The Miner (Page 2)" 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 48 of player with arrow named "&a< Previous Page" with lore "&7Click to view the previous page." to run [player command "/miner"]
- format slot 19 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 28 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%}
Add Comment
Please, Sign In to add comment