Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- set metadata tag "1 life armor" of player to chest inventory with 4 rows named "&b1 Life &aArmor"
- set slot (integers from 10 to 25) of metadata tag "1 life armor" of player to light gray stained glass pane named " "
- set slot 17, and 18 of metadata tag "1 life armor" of player to black stained glass pane named " "
- set slot (integers from 0 to 9) of metadata tag "1 life armor" of player to black stained glass pane named " "
- set slot (integers from 26 to 36) of metadata tag "1 life armor" of player to black stained glass pane named " "
- set metadata tag "1 life sword" of player to chest inventory with 3 rows named "&b1 Life &aSwords"
- set slot (integers from 10 to 16) of metadata tag "1 life sword" of player to light gray stained glass pane named " "
- set slot (integers from 0 to 9) of metadata tag "1 life sword" of player to black stained glass pane named " "
- set slot (integers from 17 to 27) of metadata tag "1 life sword" of player to black stained glass pane named " "
- set metadata tag "Perm Armor" of player to chest inventory with 4 rows named "&bPermanent &aArmor"
- set metadata tag "Shop" of player to chest inventory with 5 rows named "&7Shop"
- set metadata tag "Armor" of player to chest inventory with 5 rows named "&aArmor Shop"
- set metadata tag "Sword" of player to chest inventory with 5 rows named "&aSword Shop"
- set metadata tag "Misc" of player to chest inventory with 5 rows named "&aMisc Shop"
- set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Perm Armor" of player to light gray stained glass pane named " "
- set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Perm Armor" of player to black stained glass pane named " "
- set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Shop" of player to light gray stained glass pane named " "
- set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Shop" of player to black stained glass pane named " "
- set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Armor" of player to light gray stained glass pane named " "
- set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Armor" of player to black stained glass pane named " "
- set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Sword" of player to light gray stained glass pane named " "
- set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Sword" of player to black stained glass pane named " "
- set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Misc" of player to light gray stained glass pane named " "
- set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Misc" of player to black stained glass pane named " "
- # Main Shop
- set slot 20 of metadata tag "Shop" of player to diamond chestplate named "&aArmor"
- set slot 22 of metadata tag "Shop" of player to diamond sword named "&bSwords"
- set slot 24 of metadata tag "Shop" of player to ender pearl named "&3Misc"
- # Armor
- set slot 21 of metadata tag "Armor" of player to diamond chestplate named "&41 life &aArmor"
- set {_d} to diamond chestplate
- enchant {_d} with protection 2
- set slot 23 of metadata tag "Armor" of player to {_d} named "&4Permanent &aArmor"
- set {_b} to iron chestplate
- enchant {_b} with protection 1
- set slot 11 of metadata tag "1 life armor" of player to {_b} named "&4Protection &b1 &fIron chestplate &7(100)"
- set slot 13 of metadata tag "1 life armor" of player to {_b} named "&4Protection &b2 &fIron chestplate &7(200)"
- set slot 15 of metadata tag "1 life armor" of player to {_b} named "&4Protection &b3 &fIron chestplate &7(400)"
- enchant {_d} with protection 1
- set slot 21 of metadata tag "1 life armor" of player to {_d} named "&4Protection &b1 &3Diamond chestplate &7(750)"
- set slot 23 of metadata tag "1 life armor" of player to {_d} named "&4Protection &b2 &3Diamond chestplate &7(1000)"
- # Swords
- set slot
- # Misc
- on disconnect:
- delete metadata tag "Shop" of player
- on inventory click:
- if event-inventory = (metadata tag "Shop" of player):
- cancel event
- if event-item is diamond chestplate named "&aArmor":
- open metadata tag "Armor" of player to player
- else if event-item is diamond sword named "&bSwords":
- open metadata tag "Sword" of player to player
- else if event-item is ender pearl named "&3Misc":
- open metadata tag "Misc" of player to player
- else if event-inventory = (metadata tag "Armor" of player):
- cancel event
- set {_d} to diamond chestplate
- enchant {_d} with protection 2
- if event-item is diamond chestplate named "&41 life &aArmor":
- open metadata tag "1 life armor" of player to player
- if event-item is {_d} named "&4Permanent &aArmor":
- else if event-inventory = (metadata tag "1 life armor" of player):
- set {_b} to iron chestplate
- enchant {_b} with protection 1
- set {_d} to diamond chestplate
- enchant {_d} with protection 1
- if event-item is {_b} named "&4Protection &b1 &fIron chestplate &7(100)":
- if {coins::%player's uuid%} is more than 100:
- else if event-item is {_b} named "&4Protection &b2 &fIron chestplate &7(200)":
- if {coins::%player's uuid%} is more than 200:
- else if event-item is {_b} named "&4Protection &b3 &fIron chestplate &7(400)":
- if {coins::%player's uuid%} is more than 400:
- else if event-item is {_d} named "&4Protection &b1 &3Diamond chestplate &7(750)":
- if {coins::%player's uuid%} is more than 750:
- else if event-item is {_d} named "&4Protection &b2 &3Diamond chestplate &7(1000)":
- if {coins::%player's uuid%} is more than 1000:
- command /shop:
- trigger:
- open metadata tag "Shop" of player to player
- on spawn:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement