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
- 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:
- broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%"
- 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&lYou must be at least &4&lLevel 20 &c<o use the Vault!"
- command /miner:
- trigger:
- if {level.%uuid of player%} < 10:
- message "&c&lYou must be at least &4&lLevel 10 &c<o talk to The Miner!"
- else:
- message "&a[NPC] Miner: &fHey there, what do you need?"
- 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
- 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"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement