Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &4[&cZombies&4]&c
- command /zombies <text> [<integer>]:
- trigger:
- if arg 1 is "enable":
- set {zombies.state} to true
- broadcast "{@P} Enabled"
- set {zombies.mysterybox.cooldown} to true
- if arg 1 is "disable":
- set {zombies.state} to false
- broadcast "{@P} Disabled"
- if arg 1 is "reseteffects":
- loop all players:
- remove loop-player from {zombies.perk.juggernog::*}
- remove loop-player from {zombies.perk.doubletap::*}
- remove loop-player from {zombies.perk.staminup::*}
- remove loop-player from {zombies.perk.speedcola::*}
- console command "effect %loop-player% clear"
- if arg 1 is "rotatebox":
- message "{@P} Box Rotated!"
- if {zombies.mysterybox.currentlocation} is 1:
- set block at {zombies.mysterybox.location.1} to air
- wait 1 tick
- set block at {zombies.mysterybox.location.2} to ender chest
- set {zombies.mysterybox.currentlocation} to 2
- exit 2 sections
- if {zombies.mysterybox.currentlocation} is 2:
- set block at {zombies.mysterybox.location.2} to air
- wait 1 tick
- set block at {zombies.mysterybox.location.3} to ender chest
- set {zombies.mysterybox.currentlocation} to 3
- exit 2 sections
- if {zombies.mysterybox.currentlocation} is 3:
- set block at {zombies.mysterybox.location.3} to air
- wait 1 tick
- set block at {zombies.mysterybox.location.4} to ender chest
- set {zombies.mysterybox.currentlocation} to 4
- exit 2 sections
- if {zombies.mysterybox.currentlocation} is 4:
- wait 1 tick
- set block at {zombies.mysterybox.location.4} to air
- set block at {zombies.mysterybox.location.1} to ender chest
- set {zombies.mysterybox.currentlocation} to 1
- exit 2 sections
- if arg 1 is "setboxlocation":
- if arg 2 is set:
- set {zombies.mysterybox.location.%arg 2%} to the player's location
- message "{@P} Set box location %arg 2% to %location of the player%"
- if arg 1 is "resetrotationcycle":
- set {zombies.mysterybox.currentlocation} to 4
- loop 4 times:
- set block at {zombies.mysterybox.location.%loop-number%} to air
- on break of sign:
- player is not op
- {zombies.state} is true
- cancel the event
- on place of sign:
- player is not op
- {zombies.state} is true
- cancel the event
- on consume of milk:
- {zombies.state} is true
- cancel the event
- on damage:
- attacker is not a player:
- damage is caused by fall:
- message " "
- else:
- chance of 50%:
- remove victim from {zombies.perk.juggernog::*}
- remove victim from {zombies.perk.doubletap::*}
- remove victim from {zombies.perk.staminup::*}
- remove victim from {zombies.perk.speedcola::*}
- console command "effect %victim% clear"
- on leftclick on sign:
- if {zombies.state} is true:
- if line 1 of the block is "[PerkShop]":
- if line 2 of the block is "Juggernog":
- player doesn't have resistance
- if player has 16 gold ingot:
- message "&bYou purchased JUGGERNOG for 16 gold"
- message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
- add player to {zombies.perk.juggernog::*}
- apply resistance 1 to the player for 999 days
- remove 16 gold ingot from the player
- if line 2 of the block is "Double_Tap":
- player doesn't have strength
- if player has 20 gold ingot:
- message "&bYou purchased DOUBLE_TAP for 20 gold"
- message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
- add player to {zombies.perk.doubletap::*}
- apply strength 1 to the player for 999 days
- remove 16 gold ingot from the player
- if line 2 of the block is "Staminup":
- player doesn't have speed
- if player has 8 gold ingot:
- message "&bYou purchased STAMINUP for 8 Gold"
- message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
- add player to {zombies.perk.staminup::*}
- apply speed 2 to the player for 999 days
- remove 8 gold ingot from the player
- if line 2 of the block is "Speed_Cola":
- player doesn't have haste
- if player has 4 gold ingot:
- message "&bYou purchased SPEED_COLA for 4 gold"
- message "&bThis perk will have a 50%% chance of being removed upon PVE dmg"
- add player to {zombies.perk.speedcola::*}
- apply haste 1 to the player for 999 days
- remove 4 gold ingot from the player
- if line 1 of the block is "[PackAPunch]":
- if player has 5 diamonds:
- if the tool of the player is enchanted with sharpness 1:
- enchant the player's tool with sharpness 2
- remove 5 diamonds from the player
- exit 3 sections
- if the tool of the player is enchanted with sharpness 2:
- enchant the player's tool with sharpness 3
- remove 5 diamonds from the player
- exit 3 sections
- if the tool of the player is enchanted with sharpness 3:
- enchant the player's tool with sharpness 4
- remove 5 diamonds from the player
- exit 3 sections
- if the tool of the player is enchanted with power 1:
- enchant the event-player's tool with power 2
- remove 5 diamonds from the player
- exit 3 sections
- if the tool of the player is enchanted with power 2:
- enchant the event-player's tool with power 3
- remove 5 diamonds from the player
- exit 3 sections
- if the tool of the player is enchanted with power 3:
- enchant the event-player's tool with power 4
- remove 5 diamonds from the player
- exit 3 sections
- if the player's tool is enchanted with protection 1:
- enchant the event-player's tool with protection 2
- remove 5 diamonds from the player
- exit 3 sections
- if the player's tool is enchanted with protection 2:
- enchant the event-player's tool with protection 3
- remove 5 diamonds from the player
- exit 3 sections
- if the player's tool is enchanted with protection 3:
- enchant the event-player's tool with protection 4
- remove 5 diamonds from the player
- exit 3 sections
- if the player's tool is enchanted with projectile protection 1:
- enchant the event-player's tool with projectile protection 2
- remove 5 diamonds from the player
- exit 3 sections
- if the player's tool is enchanted with projectile protection 2:
- enchant the event-player's tool with projectile protection 3
- remove 5 diamonds from the player
- exit 3 sections
- if the player's tool is enchanted with projectile protection 3:
- enchant the event-player's tool with projectile protection 4
- remove 5 diamonds from the player
- exit 3 sections
- on leftclick on ender chest:
- {zombies.state} is true:
- player has 4 gold ingots:
- if {zombies.mysterybox.cooldown} is true:
- set {zombies.mysterybox.cooldown} to false
- remove 4 gold ingots from the player
- console command "playsound random.anvil_land %event-player%"
- message "&bOpening..."
- wait 0.5 seconds
- console command "playsound random.anvil_land %event-player%"
- chance of 87%:
- message "&bYou got a normal item"
- wait 0.1 seconds
- set {zombies.mysterybox.number} to a random integer between 1 and 34
- if {zombies.mysterybox.number} is 1:
- give 1 dirt to the player
- if {zombies.mysterybox.number} is 2:
- give 1 cobblestone to the player
- if {zombies.mysterybox.number} is 3:
- give 1 golden hoe to the player
- if {zombies.mysterybox.number} is 4:
- give 1 stick to the player
- if {zombies.mysterybox.number} is 5:
- give 1 wooden pickaxe to the player
- if {zombies.mysterybox.number} is 6:
- give 1 clay to the player
- if {zombies.mysterybox.number} is 7:
- give 1 fire to the player
- if {zombies.mysterybox.number} is 8:
- give 1 iron hoe to the player
- if {zombies.mysterybox.number} is 9:
- give 1 grass to the player
- if {zombies.mysterybox.number} is 10:
- give 1 water bucket to the player
- if {zombies.mysterybox.number} is 11:
- give 1 gold nugget to the player
- if {zombies.mysterybox.number} is 12:
- give 1 brick to the player
- if {zombies.mysterybox.number} is 13:
- give 1 leather helmet to the player
- if {zombies.mysterybox.number} is 14:
- give 1 wooden stairs to the player
- if {zombies.mysterybox.number} is 15:
- give 1 stone slab to the player
- if {zombies.mysterybox.number} is 16:
- give 1 nether quartz ore to the player
- if {zombies.mysterybox.number} is 17:
- give 1 wool to the player
- if {zombies.mysterybox.number} is 18:
- give 1 spruce wood to the player
- if {zombies.mysterybox.number} is 19:
- give 1 cactus to the player
- if {zombies.mysterybox.number} is 20:
- give 1 diamond hoe to the player
- if {zombies.mysterybox.number} is 21:
- give 1 golden shovel to the player
- if {zombies.mysterybox.number} is 22:
- give 1 golden hoe to the player
- if {zombies.mysterybox.number} is 23:
- give 1 golden chestplate to the player
- if {zombies.mysterybox.number} is 24:
- give 1 cobblestone wall to the player
- if {zombies.mysterybox.number} is 25:
- give 1 snowball to the player
- if {zombies.mysterybox.number} is 26:
- give 1 flower pot to the player
- if {zombies.mysterybox.number} is 27:
- give 1 lever to the player
- if {zombies.mysterybox.number} is 28:
- give 1 chest to the player
- if {zombies.mysterybox.number} is 29:
- give 1 leather to the player
- if {zombies.mysterybox.number} is 30:
- give 1 sign to the player
- if {zombies.mysterybox.number} is 31:
- give 1 shears to the player
- if {zombies.mysterybox.number} is 32:
- give 1 flower pot to the player
- if {zombies.mysterybox.number} is 33:
- give 1 cobblestone to the player
- if {zombies.mysterybox.number} is 34:
- give 1 golden hoe to the player
- if {zombies.mysterybox.number} is 34:
- give 1 diamond shovel to the player
- wait 0.1 seconds
- set {zombies.mysterybox.cooldown} to true
- else:
- loop 10 times:
- console command "playsound random.successful_hit %event-player%"
- wait 3 ticks
- console command "playsound random.bow %event-player%"
- wait 1 tick
- message "&bYou got a special item!"
- set {zombies.mysterybox.snumber} to a random integer between 0.9 and 16
- if {zombies.mysterybox.snumber} is 1:
- give diamond chestplate of projectile protection 4 to the player
- if {zombies.mysterybox.snumber} is 2:
- give diamond leggings of protection 3 and thorns 2 to the player
- if {zombies.mysterybox.snumber} is 3:
- give bow of power 3 and flame 1 to the player
- if {zombies.mysterybox.snumber} is 4:
- give bow of power 4 and infinity 1 to the player
- if {zombies.mysterybox.snumber} is 5:
- give diamond boots of projectile protection 1 and feather falling 4 to the player
- if {zombies.mysterybox.snumber} is 6:
- give diamond sword of sharpness 4 to the player
- if {zombies.mysterybox.snumber} is 7:
- give diamond sword of sharpness 3 and knockback 2 to the player
- if {zombies.mysterybox.snumber} is 8:
- give diamond helmet of protection 4 to the player
- if {zombies.mysterybox.snumber} is 9:
- give diamond chestplate of protection 4 to the player
- if {zombies.mysterybox.snumber} is 10:
- give bow of power 2 and punch 1 and infinity 1 to the player
- if {zombies.mysterybox.snumber} is 11:
- give diamond leggings of protection 4 to the player
- if {zombies.mysterybox.snumber} is 12:
- give diamond boots of protection 4 to the player
- if {zombies.mysterybox.snuwmber} is 12:
- give diamond boots of protection 4 to the player
- if {zombies.mysterybox.snumber} is 13:
- give diamond sword of sharpness 2 and fire aspect 1 to the player
- if {zombies.mysterybox.snumber} is 14:
- give iron sword of sharpness 4 and knockback 1 to the player
- if {zombies.mysterybox.snumber} is 15:
- give iron pickaxe of unbreaking 3 and fortune 3 to the player
- if {zombies.mysterybox.snumber} is 16:
- give iron helmet of aqua affinity 2 and thorns 3 and protection 2 and unbreaking 2 to the player
- wait 0.1 seconds
- set {zombies.mysterybox.cooldown} to true
- else:
- message "&bThe mysterybox is on its 5 seconds global cooldown!"
- else:
- message "&bYou do not have 4 gold"
- on skript start:
- set {zombies.mysterybox.cooldown} to true
- on rightclick on ender chest:
- cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement