Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #The Creeper's Cove####
- #Aliases and Variables####
- aliases:
- prismarine shard = 409
- light blue stained glass = 95:3
- endportal = 120
- block of lapis = 22
- variables:
- {dungeon2Active.%player%} = false
- #Cove Dungeon Key####
- function cvItem(p: player):
- set {questCD::%{_p}%} to now
- play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
- send "&8[&3Quest&8] &7As Harold hands you the piece of paper telling you where to go, you feel a strange sensation in the air." to {_p}
- wait 3 seconds
- play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
- send "&8[&3Quest&8] &7'Wait!', you yell. 'What is this legend this scripture speaks of?' Harold shrugs." to {_p}
- wait 3 seconds
- play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
- send "&8[&3Quest&8] &7'All I know is that The Sunriders, pirates that worship the legendary Kraken, have taken the Creeper's Cove and hid something there. You need to find what it is', he says with a blank expression. " to {_p}
- wait 3 seconds
- play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
- send "&8[&3Quest&8] &7With fear for what the future holds, after the incident on Spawn Island with Renhelm, you set out to the cove." to {_p}
- wait 3 seconds
- play raw sound "random.orb" at {_p} with pitch 1 volume 0.3
- send "&8[&3Quest&8] &4Objective&7: Take a dragon to the Creeper's Cove and beat the Sunriders' traps." to {_p}
- send "&8[&3Quest&8] &4Objective&7: Find what the Sunriders are truly hiding in the Creeper's Cove." to {_p}
- on right click:
- player is holding paper with lore "&7Quest Type: &3Dungeon||&7Raid Difficulty: &4Hard||&7Recommended: &a2 Players||&9Left Click at Dungeon Door to Enter.||&9Right Click to start the Quest." named "&3The Legend Beneath the Waves"
- if {questCD::%player%} is not set:
- cvItem(player)
- set {_cd} to difference between {questCD::%player%} and now
- if {_cd} >= 90 seconds:
- cvItem(player)
- else:
- set {_cd} to difference between {_cd} and 90 seconds
- send "&8[&3Quest&8] &7Still on cooldown - Wait &6%{_cd}%."
- command /warpdungeon <player>:
- trigger:
- execute console command "/warp coveroom1 %player%"
- #Cove Kraken Crystal####
- on right click:
- target block is light blue stained glass:
- set {_region} to "%region at location of clicked block%"
- {_region} contains "krakenegg":
- if {party.%player%} is player:
- {dungeon2Active.%player%} is false:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- execute console command "/kill %player%"
- stop
- if player is holding 1 diamond named "&6Jewel of the Cove":
- {redring.%player%} is true:
- send "&8[&9The Creeper's Cove&8] &4You already sacrificed this gem..."
- stop
- play raw sound "portal.travel" at player with pitch 0.1 volume 0.2
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &4&oYou hear otherworldly whispers... Your Jewel was accepted." to loop-value
- remove 1 diamond named "&6Jewel of the Cove" from the player
- create a circle effect at the location (-2848, 46, 335) with id "redring" with particles Redstone with radius 1
- set {redring.%player%} to true
- else if player is holding 1 prismarine shard named "&6Shard of the Seas":
- {bluering.%player%} is true:
- send "&8[&9The Creeper's Cove&8] &4You already sacrificed this gem..."
- stop
- play raw sound "portal.travel" at player with pitch 0.1 volume 0.2
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &4&oYou hear otherworldly whispers... Your Shard was accepted." to loop-value
- remove 1 prismarine shard named "&6Shard of the Seas" from the player
- create a circle effect at the location (-2848, 46, 335) with id "bluering" with particles Water Wake with radius 1
- set {bluering.%player%} to true
- else if player is holding 1 emerald named "&6The Water Crystal":
- {yellowring.%player%} is true:
- send "&8[&9The Creeper's Cove&8] &4You already sacrificed this gem..."
- stop
- play raw sound "portal.travel" at player with pitch 0.1 volume 0.2
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &4&oYou hear otherworldly whispers... Your Crystal was accepted." to loop-value
- remove 1 emerald named "&6The Water Crystal" from the player
- create a circle effect at the location (-2848, 46, 335) with id "yellowring" with particles Flame with radius 1
- set {yellowring.%player%} to true
- else:
- send "&8[&9The Creeper's Cove&8] &7You don't have a gem in your hand!"
- else if {party.%player%} is not set:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- execute console command "/kill %player%"
- stop
- else:
- send "&8[&9The Creeper's Cove&8] &4You need to have your Party Leader use the jewels."
- stop
- on left click:
- player is holding paper named "&3Egg Particle Remover":
- stop effect "bluering"
- stop effect "redring"
- stop effect "yellowring"
- set {redring.%player%} to false
- set {bluering.%player%} to false
- set {yellowring.%player%} to false
- #Boss Room Teleport########
- on walk on endportal:
- set {_region} to "%region at location of player%"
- {_region} contains "krakenboss":
- {dungeon2Active.%player%} is false:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- execute console command "/kill %player%"
- stop
- if {party.%player%} is not player:
- send "&8[&9The Creeper's Cove&8] &7Have your Party Leader walk into the water!"
- stop
- else:
- wait 1 tick
- if {bluering.%player%} is true:
- if {redring.%player%} is true:
- if {yellowring.%player%} is true:
- send "&8[&9The Creeper's Cove&8] &7As you walk into the water, a magical essense teleports you to another room..."
- loop {party.%player%::*}:
- execute console command "/warp bossroom2 %loop-value%"
- stop effect "bluering"
- stop effect "redring"
- stop effect "yellowring"
- set {redring.%player%} to false
- set {bluering.%player%} to false
- set {yellowring.%player%} to false
- else:
- send "&8[&9The Creeper's Cove&8] &7You are missing &6The Water Crystal&7."
- teleport player to the location (-2841, 43, 343)
- else:
- send "&8[&9The Creeper's Cove&8] &7You are missing the &6Jewel of the Cove&7."
- teleport player to the location (-2841, 43, 343)
- else:
- send "&8[&9The Creeper's Cove&8] &7You are missing the &6Shard of the Seas&7."
- teleport player to the location (-2841, 43, 343)
- #Jewel of the Cove####
- on right click:
- target block is a chest:
- set {_region} to "%region at location of clicked block%"
- {_region} contains "jewelchest":
- if {dungeon2Active.%player%} is false:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- execute console command "/kill %player%"
- stop
- else if {party.%player%} is player:
- send "&8[&9The Creeper's Cove&8] &7You find a shiny Jewel in the chest..."
- give 1 diamond named "&6Jewel of the Cove" to player
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &6You have completed &cThe Clever&6." to loop-value
- execute console command "/warp mainroom2 %loop-value%"
- else:
- send "&8[&9The Creeper's Cove&8] &7The Party Leader must open this."
- #Shard of the Seas####
- on right click:
- target block is a chest:
- set {_region} to "%region at location of clicked block%"
- {_region} contains "shardsea":
- if {dungeon2Active.%player%} is false:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- execute console command "/kill %player%"
- stop
- else if {party.%player%} is player:
- send "&8[&9The Creeper's Cove&8] &7You find a shiny Shard in the chest..."
- give 1 prismarine shard named "&6Shard of the Seas" to player
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &6You have completed &9The Curious&6." to loop-value
- execute console command "/warp mainroom2 %loop-value%"
- else:
- send "&8[&9The Creeper's Cove&8] &7The Party Leader must open this."
- #The Water Crystal####
- on right click:
- target block is a chest:
- set {_region} to "%region at location of clicked block%"
- {_region} contains "waterchest":
- if {dungeon2Active.%player%} is false:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- execute console command "/kill %player%"
- stop
- else if {party.%player%} is player:
- send "&8[&9The Creeper's Cove&8] &7You find a shiny Crystal in the chest..."
- give 1 diamond named "&6Jewel of the Cove" to player
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &6You have completed &eThe Swift&6." to loop-value
- execute console command "/warp mainroom2 %loop-value%"
- else:
- send "&8[&9The Creeper's Cove&8] &7The Party Leader must open this."
- #Captain Lucio Boss Fight####
- command /boss2:
- executable by: console
- permission: kukky.perms
- trigger:
- execute console command "/summon PigZombie -2836 23 337 {CustomName:""Captain Lucio"",CustomNameVisible:1,Attributes:[{Name:""generic.maxHealth"",Base:200},{Name:""generic.followRange"",Base:20},{Name:""generic.knockbackResistance"",Base:1f},{Name:""generic.movementSpeed"",Base:0.4f},{Name:""generic.attackDamage"",Base:100}],Anger:32767,Equipment:[{id:""minecraft:golden_sword"",tag:{display:{Name:""Captain's Sorrow"",Lore:[""An ancient sword passed down from captain to captain."",""It's probably worth a lot. Give it to an NPC at the "",""Creeper's Cove for a nice reward.""]},ench:[{id:16,lvl:5},{id:20,lvl:2}]},Count:1},{tag:{display:{Name:""Lucio's Boots"",Lore:[""Wall ride, baby""]},ench:[{id:0,lvl:4},{id:1,lvl:4},{id:34,lvl:3}]},id:""minecraft:diamond_boots""},{tag:{ench:[{id:0,lvl:4},{id:1,lvl:4}]},id:""minecraft:iron_leggings""},{tag:{ench:[{id:0,lvl:4},{id:1,lvl:4}]},id:""minecraft:iron_chestplate""},{id:""minecraft:skull"",Damage:3,tag:{SkullOwner:Antho_D}}],DropChances:[0.01F,0F,0F,0F,0F]}"
- on right click:
- target block is block of lapis
- set {_region} to "%region at location of clicked block%"
- if {_region} contains "dun2boss":
- {party.%player%} is not set:
- send "&8[&9The Creeper's Cove&8] &7You are not in a party!"
- stop
- {party.%player%} is not player:
- send "&8[&9The Creeper's Cove&8] &7Have the Party Leader start the boss fight!"
- stop
- {dungeon2Active.%player%} is not true:
- send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
- set {_region} to "%region at location of clicked block%"
- {_region} contains "dun2boss":
- execute console command "/summon PigZombie -2836 23 337 {CustomName:""Captain Lucio"",CustomNameVisible:1,Attributes:[{Name:""generic.maxHealth"",Base:200},{Name:""generic.followRange"",Base:20},{Name:""generic.knockbackResistance"",Base:1f},{Name:""generic.movementSpeed"",Base:0.4f},{Name:""generic.attackDamage"",Base:100}],Anger:32767,Equipment:[{id:""minecraft:golden_sword"",tag:{display:{Name:""Captain's Sorrow"",Lore:[""An ancient sword passed down from captain to captain."",""It's probably worth a lot. Give it to an NPC at the "",""Creeper's Cove for a nice reward.""]},ench:[{id:16,lvl:5},{id:20,lvl:2}]},Count:1},{tag:{display:{Name:""Lucio"",Lore:[""Wall ride, baby""]},ench:[{id:0,lvl:4},{id:1,lvl:4},{id:34,lvl:3}]},id:""minecraft:diamond_boots""},{tag:{ench:[{id:0,lvl:4},{id:1,lvl:4}]},id:""minecraft:iron_leggings""},{tag:{ench:[{id:0,lvl:4},{id:1,lvl:4}]},id:""minecraft:iron_chestplate""},{id:""minecraft:skull"",Damage:3,tag:{SkullOwner:Antho_D}}],DropChances:[0.01F,0F,0F,0F,0F]}"
- loop {party.%player%::*}:
- send "&8[&9The Creeper's Cove&8] &7As you look around the room, you notice that some chests have been opened..." to loop-value
- wait 3 seconds
- send "&8[&4Captain Lucio&8]: &cWHAT DO YOU THINK YER DOING 'ERE?" to loop-value
- wait 3 seconds
- send "&8[&4Captain Lucio&8]: &cThis here is the Kraken's Sacrifice reward room! You shouldn't be 'ere, the two of ya!" to loop-value
- wait 3 seconds
- send "&8[&4Captain Lucio&8]: &cGuess I'll need te put ye both down now, aye? Guess so. Kraken be with me!" to loop-value
- execute console command "/warp cove_phase1 %loop-value%"
- on death:
- boots of victim are diamond boots with lore "Wall ride, baby" named "Lucio":
- broadcast "&8[&9The Creeper's Cove&8] &6&l%attacker% &4&land their partner have defeated Captain Lucio!"
- #Loot Boxes####
- on rightclick on a chest:
- if player's tool is a paper with name "&6Loot Box Creator":
- if {loot::*} contains the event-location:
- remove event-location from {loot::*}
- message "&8[&aLoot Box&8] &7A Loot Box has been removed from &6%event-location%&7!"
- cancel the event
- else:
- add event-location to {loot::*}
- message "&8[&aLoot Box&8] &7A Loot Box has been created at &6%event-location%&7!"
- cancel the event
- else:
- stop
- loop {loot::*}:
- if loop-value is event-location:
- send "event location"
- else if loop-value is not event-location:
- send "not event location"
- send "lolol"
- loop {loot.%event-location%::*}:
- loop-value is player:
- cancel event
- message "&8[&aLoot Box&8] &7You already looted that chest!"
- stop
- if {dungeon2Active.%player%} is true:
- send "it works"
- cancel event
- message "&8[&aLoot Box&8] &7You open the loot box and recieved..."
- add the player to {loot.%event-location%::*}
- chance of 3%:
- chance of 50%:
- set {chest.%event-location%.%player%} to a random integer between 5 and 9
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &6Legendary Song Tokens!"
- wait 1 tick
- give {chest.%event-location%.%player%} of paper named "&5Song Token" with lore "&6A Song Token used to upgrade Legendary Tools||&7Rarity: &5Epic" to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 100%:
- message "&8[&aLoot Box&8] &7... a &6Legendary Squid Staff!"
- wait 1 tick
- give 1 stick named "&6Squid Staff" with lore "&7Ability: &6On Right Click&7, Shoots Squids.||&7Rarity: &6Legendary" to player
- stop
- chance of 10%:
- chance of 50%:
- message "&8[&aLoot Box&8] &7... 1x &5Epic Song Tokens"
- wait 1 tick
- give 1 paper named "&5Song Token" with lore "&6A Song Token used to upgrade Legendary Tools||&7Rarity: &5Epic" to player
- stop
- chance of 50%:
- message "&8[&aLoot Box&8] &7... 1x &5Epic Water Shooter!"
- wait 1 tick
- give 1 stick named "&5Water Shooter" with lore "&7Ability: &6On Right Click&7, Shoots Water.||&7Rarity: &5Epic" to player
- chance of 100%:
- set {chest.%event-location%.%player%} to a random integer between 1 and 3
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &5Epic Dark Gold&7!"
- wait 1 tick
- give {chest.%event-location%.%player%} of shiny gold ingot named "&5Dark Gold" with lore "&6Used to make Dark Gold tools." to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 40%:
- chance of 50%:
- set {chest.%event-location%.%player%} to a random integer between 5 and 9
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &9Rare Diamond!"
- wait 1 tick
- give {chest.%event-location%.%player%} of diamond to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 50%:
- set {chest.%event-location%.%player%} to a random integer between 5 and 9
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &9Rare Emerald&7!"
- wait 1 tick
- give {chest.%event-location%.%player%} of emerald to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 50%:
- message "&8[&aLoot Box&8] &7... 6x &9Rare Fire Token&7!"
- give 6 paper named "&cFire Token" with lore "&6A Fire Token used to buy Novelty RP Items.||&7Rarity: &9Rare" to player
- stop
- chance of 100%:
- message "&8[&aLoot Box&8] &7... 6x &9Rare Ice Token&7!"
- give 6 paper named "&bIce Token" with lore "&6An Ice Token used to buy Novelty RP Items.||&7Rarity: &9Rare" to player
- stop
- chance of 100%:
- chance of 50%:
- set {chest.%event-location%.%player%} to a random integer between 14 and 21
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Iron!&7!"
- wait 1 tick
- give {chest.%event-location%.%player%} of iron ingot to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 50%:
- set {chest.%event-location%.%player%} to a random integer between 13 and 20
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Gold&7!"
- wait 1 tick
- give {chest.%event-location%.%player%} of gold ingot to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 50%:
- set {chest.%event-location%.%player%} to a random integer between 3 and 7
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Prismarine&7!"
- wait 1 tick
- give {chest.%event-location%.%player%} of prismarine shard to player
- delete {chest.%event-location%.%player%}
- stop
- chance of 100%:
- set {chest.%event-location%.%player%} to a random integer between 5 and 9
- message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Bread&7!"
- wait 1 tick
- give {chest.%event-location%.%player%} of bread to player
- delete {chest.%event-location%.%player%}
- stop
- cancel the event
- else if {dungeon2Active.%player%} is false:
- message "&8[&aLoot Box&8] &7You are not in a Dungeon!"
- stop
- on break of a chest:
- {loot::*} contains the event-location
- remove the event-location from {loot::*}
- delete {loot.%event-location%::*}
- message "&8[&aLoot Box&8] &7The Loot Box has been destroyed!"
- command /lootcreator:
- permission: lol.bok.lol
- trigger:
- give player a paper with name "&6Loot Box Creator"
- command /lootdelete:
- permission: dont.use.this.pls
- trigger:
- loop {loot::*}:
- delete {loot.%loop-value%::*}
- delete {loot::*}
- message "&8[&aLoot Box&8] &7Deleted all Loot Boxes!"
- command /lootreset:
- permission: this.one.is.ok.tho
- trigger:
- loop {loot::*}:
- delete {loot.%loop-value%::*}
- message "&8[&aLoot Box&8] &7Reset all Loot Boxes!"
- command /lootdebug:
- permission: dot.bok
- trigger:
- message "chests at %{loot::*}%"
- loop {loot::*}:
- message "people opened %loop-value%: %{loot.%loop-value%::*}%"
- #Parkour Fail####
- on walk on obsidian or coal block:
- set {_region} to "%region at location of event-block%"
- if {_region} contains "parkfloor":
- message "&8[&9The Creeper's Cove&8] &7You failed the Speed Parkour!"
- apply potion of slowness 10 to player for 4 seconds
- set {parkour.%player%} to false
- execute console command "/warp parkstart %player%"
- else if {_region} contains "parkfail2":
- message "&8[&9The Creeper's Cove&8] &7You failed the Entry Parkour!"
- execute console command "/warp parkstart2 %player%"
- on walk on endportal:
- set {_region} to "%region at location of event-block%"
- if {_region} contains "parktp":
- execute console command "/warp parkstart %player%"
- message "&8[&9The Creeper's Cove&8] Teleporting to the Speed Parkour..."
- on walk on endportal:
- set {_region} to "%region at location of event-block%"
- if {_region} contains "dungeon2_parkstart":
- {parkour.%player%} is true:
- stop
- make player execute command "/ac-parkstart"
- message "&8[&9The Creeper's Cove&8] You started the Speed Parkour!"
- set {parkour.%player%} to true
- wait 6.5 seconds
- if {parkour.%player%} is true:
- message "&8[&9The Creeper's Cove&8] &7You failed the Speed Parkour!"
- execute console command "/warp parkstart %player%"
- apply potion of slowness 10 to player for 4 seconds
- set {parkour.%player%} to false
- on step on bedrock:
- set {_region} to "%region at location of event-block%"
- if {_region} contains "dungeon2_parkend":
- message "&8[&9The Creeper's Cove&8] You completed the Speed Parkour!"
- execute console command "/warp dungeon2_parkend %player%"
- set {parkour.%player%} to false
- command /ac-parkstart:
- trigger:
- {parkour.%player%} is true:
- stop
- play raw sound "random.orb" at player with pitch 0.25 volume 0.3
- set {_increase} to 129
- set {_decrease} to 1
- set {_arg1} to "&9|"
- set {_arg2} to "&7|"
- loop 130 times:
- loop {_increase} times:
- set {_ic} to "%{_ic}%%{_arg1}%"
- loop {_decrease} times:
- set {_dc} to "%{_dc}%%{_arg2}%"
- send action bar from "%{_ic}%%{_dc}%&r" to player
- set {_dc} to ""
- set {_ic} to ""
- set {_increase} to {_increase} - 1
- set {_decrease} to {_decrease} + 1
- wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement