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 "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 "Perm Armor" of player to chest inventory with 5 rows named "&7Permanent Armor"
- 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, 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 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 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 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 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 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 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 "Shop" of player to black 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 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 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 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 slot 23 of metadata tag "Armor" of player to diamond chestplate named "&3Permanent &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"
- set slot 13 of metadata tag "1 life armor" of player to {b} named "&4Protection &b2 &fIron chestplate"
- set slot 15 of metadata tag "1 life armor" of player to {b} named "&4Protection &b3 &fIron chestplate"
- set {d} to diamond chestplate
- enchant {d} with protection 1
- set slot 21 of metadata tag "1 life armor" of player to {d} named "&4Protection &b1 &3Diamond chestplate"
- set slot 23 of metadata tag "1 life armor" of player to {d} named "&4Protection &b2 &3Diamond chestplate"
- set {cq} to iron helmet
- enchant {cq} with protection 1
- set slot 11 of metadata tag "Perm Armor" of player to {cq} named "&4Protection &b1 &fIron Helmet &7(300)"
- set slot 12 of metadata tag "Perm Armor" of player to {cq} named "&4Protection &b2 &fIron Helmet &7(600)"
- set slot 13 of metadata tag "Perm Armor" of player to {cq} named "&4Protection &b3 &fIron Helmet &7(1000)"
- set {dq} to diamond helmet
- enchant {dq} with protection 1
- set slot 14 of metadata tag "Perm Armor" of player to {dq} named "&4Protection &b1 &3Diamond Helmet &7(1250)"
- set slot 15 of metadata tag "Perm Armor" of player to {dq} named "&4Protection &b2 &3Diamond Helmet &7(1750)"
- set slot 20 of metadata tag "Perm Armor" of player to {b} named "&4Protection &b1 &fIron Chestplate &7(500)"
- set slot 21 of metadata tag "Perm Armor" of player to {b} named "&4Protection &b2 &fIron Chestplate &7(800)"
- set slot 22 of metadata tag "Perm Armor" of player to {b} named "&4Protection &b3 &fIron Chestplate &7(1200)"
- set slot 23 of metadata tag "Perm Armor" of player to {d} named "&4Protection &b1 &3Diamond Chestplate &7(1500)"
- set slot 24 of metadata tag "Perm Armor" of player to {d} named "&4Protection &b2 &3Diamond Chestplate &7(2000)"
- # Swords
- set slot 22 of metadata tag "Sword" of player to red stained glass pane named "&a&lSoon™"
- # Misc
- set slot 22 of metadata tag "Misc" of player to red stained glass pane named "&a&lSoon™"
- 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
- if event-item is diamond chestplate named "&41 life &aArmor":
- open metadata tag "1 life armor" of player to player
- if event-item is diamond chestplate named "&3Permanent &aArmor":
- open metadata tag "Perm Armor" of player to player
- else if event-inventory = (metadata tag "Perm Armor" of player):
- cancel event
- index of event-slot is 11:
- {coins::%player's uuid%} is more than 300:
- {perm::helmet::%player's uuid%} is not set:
- set {perm::helmet::%player's uuid%} to 1
- remove 300 from {coins::%player's uuid%}
- index of event-slot is 12:
- {coins::%player's uuid%} is more than 600:
- {perm::helmet::%player's uuid%} is less than 2:
- set {perm::helmet::%player's uuid%} to 2
- remove 600 from {coins::%player's uuid%}
- index of event-slot is 13:
- {coins::%player's uuid%} is more than 1000:
- {perm::helmet::%player's uuid%} is less than 3:
- set {perm::helmet::%player's uuid%} to 3
- remove 1000 from {coins::%player's uuid%}
- index of event-slot is 14:
- {coins::%player's uuid%} is more than 1250:
- {perm::helmet::%player's uuid%} is less than 4:
- set {perm::helmet::%player's uuid%} to 4
- remove 1250 from {coins::%player's uuid%}
- index of event-slot is 15:
- {coins::%player's uuid%} is more than 1750:
- {perm::helmet::%player's uuid%} is less than 5:
- set {perm::helmet::%player's uuid%} to 5
- remove 1750 from {coins::%player's uuid%}
- index of event-slot is 20:
- {coins::%player's uuid%} is more than 500:
- {perm::chestplate::%player's uuid%} is not set:
- set {perm::chestplate::%player's uuid%} to 1
- remove 500 from {coins::%player's uuid%}
- index of event-slot is 21:
- {coins::%player's uuid%} is more than 800:
- {perm::chestplate::%player's uuid%} is less than 2:
- set {perm::chestplate::%player's uuid%} to 2
- remove 800 from {coins::%player's uuid%}
- index of event-slot is 22:
- {coins::%player's uuid%} is more than 1200:
- {perm::chestplate::%player's uuid%} is less than 3:
- set {perm::chestplate::%player's uuid%} to 3
- remove 1200 from {coins::%player's uuid%}
- index of event-slot is 23:
- {coins::%player's uuid%} is more than 1500:
- {perm::chestplate::%player's uuid%} is less than 4:
- set {perm::chestplate::%player's uuid%} to 4
- remove 1500 from {coins::%player's uuid%}
- index of event-slot is 24:
- {coins::%player's uuid%} is more than 2000:
- {perm::chestplate::%player's uuid%} is less than 5:
- set {perm::chestplate::%player's uuid%} to 5
- remove 2000 from {coins::%player's uuid%}
- else if event-inventory = (metadata tag "1 life armor" of player):
- cancel event
- command /shop:
- trigger:
- open metadata tag "Shop" of player to player
- on damage:
- set {%victim's uuid%::combattagged} to true
- set {%attacker's uuid%::combattagged} to true
- set {%victim's uuid%::combattimer} to 10
- set {%attacker's uuid%::combattimer} to 10
- every 1 second:
- loop all players:
- remove 1 from {%loop-player's uuid%::combattimer}
- if {%loop-player's uuid%::combattimer} is 0:
- set {%loop-player's uuid%::combattagged} to false
- on death:
- set {%player's uuid%::combattagged} to false
- clear player's inventory
- command /pvp:
- trigger:
- clear player's inventory
- teleport player to {current::pvp}
- if {perm::helmet::%player's uuid%} is set:
- if {perm::helmet::%player's uuid%} is 1:
- set the helmet of player to unbreakable iron helmet
- enchant player's helmet with protection 1
- else if {perm::helmet::%player's uuid%} is 2:
- set the helmet of player to unbreakable iron helmet
- enchant player's helmet with protection 2
- else if {perm::helmet::%player's uuid%} is 3:
- set the helmet of player to unbreakable iron helmet
- enchant player's helmet with protection 3
- else if {perm::helmet::%player's uuid%} is 4:
- set the helmet of player to unbreakable diamond helmet
- enchant player's helmet with protection 1
- else if {perm::helmet::%player's uuid%} is 5:
- set the helmet of player to unbreakable diamond helmet
- enchant player's helmet with protection 2
- else:
- set the helmet of player to unbreakable iron helmet
- if {%player's uuid%::chestplate::upgrade} is not set:
- set the chestplate of player to unbreakable iron chestplate
- enchant player's chestplate with protection 1
- if {%player's uuid%::chestplate::upgrade} is 1:
- set the chestplate of player to unbreakable iron chestplate
- enchant player's chestplate with protection 3
- if {%player's uuid%::leggings::upgrade} is not set:
- set the leggings of player to unbreakable iron leggings
- enchant player's leggings with protection 1
- if {%player's uuid%::leggings::upgrade} is 1:
- set the leggings of player to unbreakable iron leggings
- enchant player's leggings with protection 3
- if {%player's uuid%::boots::upgrade} is not set:
- set the boots of player to unbreakable iron boots
- enchant player's boots with protection 1
- if {%player's uuid%::boots::upgrade} is 1:
- set the boots of player to unbreakable iron boots
- enchant player's boots with protection 3
- if {%player's uuid%::sword::upgrade} is not set:
- set {_item} to unbreakable iron sword
- enchant {_item} with sharpness 2
- give player {_item}
- loop 3 times:
- give player golden apple
- give player glowing golden apple named "&aGolden Head"
- loop {pvp::%player's uuid%::*}:
- if loop-value is "Golden Head":
- give player glowing golden apple named "&aGolden Head"
- remove loop-value from {pvp::%player's uuid%::*}
- if loop-value is "Golden apple":
- give player golden apple
- remove loop-value from {pvp::%player's uuid%::*}
- if loop-value is "ender pearl":
- give player ender pearl
- remove loop-value from {pvp::%player's uuid%::*}
- on respawn:
- teleport player to {spawn}
- on right click holding a golden apple:
- if name of player's held item is "&aGolden Head":
- execute console command "/effect give %player% minecraft:regeneration 5 2"
- execute console command "/effect give %player% minecraft:speed 10 1"
- remove 1 of tool from tool
- on food bar change:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement