Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click with any sword:
- open chest with 3 rows named "&bPvP Shop" to player
- set {_n} to 0
- loop 27 times:
- make gui slot {_n} of player with black glass pane named "&f" to do nothing
- add 1 to {_n}
- make gui slot 11 of player with enchanted book named "&b&lSharpness" with lore "||&8» &7Left-Click to enchant your sword||||&8» &7Deal Extra Damage To Enemies||||&bMax &8» &7Sharpness 5||&bCost &8» &75000 Gold " to run:
- if {gold::%player's uuid%} is greater than or equal to 5000:
- if level of sharpness of player's held item <= 4:
- send "&3&lEnchants &8| &7You purchased &3Sharpness &7enchant for &35000 Gold&7." to player
- remove 5000 from {gold::%player's uuid%}
- enchant the tool of player with "sharpness %level of sharpness of player's tool +1%" parsed as enchantment type
- stop
- else:
- send "&cYour Sharpness Is Maxed Out" to player
- close {_p}'s inventory
- else:
- set {_amount} to 5000 - {gold::%player's uuid%}
- send "&3&lEnchants &8| &7You need &b%{_amount}% Gold &7more to buy this enchant" to player
- close player's inventory
- stop
- make gui slot 13 of player with enchanted book named "&b&lKnockback" with lore "||&8» &7Left-Click to enchant your sword||||&8» &7Knockback your Enemies Push them away from you||||&bMax &8» &7Knockback 3||&bCost &8» &73500 Gold " to run:
- if {gold::%player's uuid%} is greater than or equal to 3500:
- if level of knockback of player's held item <= 2:
- send "&3&lEnchants &8| &7You purchased &3Knockback &7enchant for &33500 Gold&7." to player
- remove 3500 from {gold::%player's uuid%}
- enchant the tool of player with "knockback %level of knockback of player's tool +1%" parsed as enchantment type
- stop
- else:
- send "&cYour Knockback Is Maxed Out" to player
- close {_p}'s inventory
- else:
- set {_amount} to 3500 - {gold::%player's uuid%}
- send "&3&lEnchants &8| &7You need &b%{_amount}% Gold &7more to buy this enchant" to player
- close player's inventory
- stop
- make gui slot 15 of player with enchanted book named "&b&lFire Aspect" with lore "||&8» &7Left-Click to enchant your sword||||&8» &7Set Your Enemies On Fire||||&bMax &8» &7Fire Aspect 1||&bCost &8» &715000 Gold " to run:
- if {gold::%player's uuid%} is greater than or equal to 15000:
- if level of fire aspect of player's held item <= 0:
- send "&3&lEnchants &8| &7You purchased &3Fire Aspect &7enchant for &315000 Gold&7." to player
- remove 15000 from {gold::%player's uuid%}
- enchant the tool of player with "fire aspect %level of knockback of player's tool +1%" parsed as enchantment type
- stop
- else:
- send "&cYour Fire Aspect Is Maxed Out" to player
- close {_p}'s inventory
- else:
- set {_amount} to 15000 - {gold::%player's uuid%}
- send "&3&lEnchants &8| &7You need &b%{_amount}% Gold &7more to buy this enchant" to player
- close player's inventory
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement