Advertisement
Kukky

Cove

Jul 29th, 2016
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #The Creeper's Cove####
  2.  
  3. #Aliases and Variables####
  4.  
  5. aliases:
  6.    prismarine shard = 409
  7.    light blue stained glass = 95:3
  8.    endportal = 120
  9.    block of lapis = 22
  10.  
  11. variables:
  12.     {dungeon2Active.%player%} = false
  13.  
  14. #Cove Dungeon Key####
  15.  
  16. function cvItem(p: player):
  17.     set {questCD::%{_p}%} to now
  18.     play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
  19.     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}
  20.     wait 3 seconds
  21.     play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
  22.     send "&8[&3Quest&8] &7'Wait!', you yell. 'What is this legend this scripture speaks of?' Harold shrugs." to {_p}
  23.     wait 3 seconds
  24.     play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
  25.     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}
  26.     wait 3 seconds
  27.     play raw sound "random.pop" at {_p} with pitch 1 volume 0.3
  28.     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}
  29.     wait 3 seconds
  30.     play raw sound "random.orb" at {_p} with pitch 1 volume 0.3
  31.     send "&8[&3Quest&8] &4Objective&7: Take a dragon to the Creeper's Cove and beat the Sunriders' traps." to {_p}
  32.     send "&8[&3Quest&8] &4Objective&7: Find what the Sunriders are truly hiding in the Creeper's Cove." to {_p}
  33.  
  34. on right click:
  35.     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"
  36.     if {questCD::%player%} is not set:
  37.         cvItem(player)
  38.     set {_cd} to difference between {questCD::%player%} and now
  39.     if {_cd} >= 90 seconds:
  40.         cvItem(player)
  41.     else:
  42.         set {_cd} to difference between {_cd} and 90 seconds
  43.         send "&8[&3Quest&8] &7Still on cooldown - Wait &6%{_cd}%."
  44.  
  45. command /warpdungeon <player>:
  46.     trigger:
  47.         execute console command "/warp coveroom1 %player%"
  48.        
  49. #Cove Kraken Crystal####
  50.  
  51. on right click:
  52.     target block is light blue stained glass:
  53.         set {_region} to "%region at location of clicked block%"
  54.         {_region} contains "krakenegg":
  55.             if {party.%player%} is player:
  56.                 {dungeon2Active.%player%} is false:
  57.                     send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  58.                     execute console command "/kill %player%"
  59.                     stop
  60.                 if player is holding 1 diamond named "&6Jewel of the Cove":
  61.                     {redring.%player%} is true:
  62.                         send "&8[&9The Creeper's Cove&8] &4You already sacrificed this gem..."
  63.                         stop
  64.                     play raw sound "portal.travel" at player with pitch 0.1 volume 0.2
  65.                     loop {party.%player%::*}:
  66.                         send "&8[&9The Creeper's Cove&8] &4&oYou hear otherworldly whispers... Your Jewel was accepted." to loop-value
  67.                     remove 1 diamond named "&6Jewel of the Cove" from the player
  68.                     create a circle effect at the location (-2848, 46, 335) with id "redring" with particles Redstone with radius 1
  69.                     set {redring.%player%} to true
  70.                 else if player is holding 1 prismarine shard named "&6Shard of the Seas":
  71.                     {bluering.%player%} is true:
  72.                         send "&8[&9The Creeper's Cove&8] &4You already sacrificed this gem..."
  73.                         stop
  74.                     play raw sound "portal.travel" at player with pitch 0.1 volume 0.2
  75.                     loop {party.%player%::*}:
  76.                         send "&8[&9The Creeper's Cove&8] &4&oYou hear otherworldly whispers... Your Shard was accepted." to loop-value
  77.                     remove 1 prismarine shard named "&6Shard of the Seas" from the player
  78.                     create a circle effect at the location (-2848, 46, 335) with id "bluering" with particles Water Wake with radius 1
  79.                     set {bluering.%player%} to true
  80.                 else if player is holding 1 emerald named "&6The Water Crystal":
  81.                     {yellowring.%player%} is true:
  82.                         send "&8[&9The Creeper's Cove&8] &4You already sacrificed this gem..."
  83.                         stop
  84.                     play raw sound "portal.travel" at player with pitch 0.1 volume 0.2
  85.                     loop {party.%player%::*}:
  86.                         send "&8[&9The Creeper's Cove&8] &4&oYou hear otherworldly whispers... Your Crystal was accepted." to loop-value
  87.                     remove 1 emerald named "&6The Water Crystal" from the player
  88.                     create a circle effect at the location (-2848, 46, 335) with id "yellowring" with particles Flame with radius 1
  89.                     set {yellowring.%player%} to true
  90.                 else:
  91.                     send "&8[&9The Creeper's Cove&8] &7You don't have a gem in your hand!"            
  92.             else if {party.%player%} is not set:
  93.                 send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  94.                 execute console command "/kill %player%"
  95.                 stop
  96.             else:
  97.                 send "&8[&9The Creeper's Cove&8] &4You need to have your Party Leader use the jewels."
  98.                 stop
  99.  
  100. on left click:
  101.     player is holding paper named "&3Egg Particle Remover":
  102.         stop effect "bluering"
  103.         stop effect "redring"
  104.         stop effect "yellowring"
  105.         set {redring.%player%} to false
  106.         set {bluering.%player%} to false
  107.         set {yellowring.%player%} to false
  108.        
  109. #Boss Room Teleport########
  110.  
  111. on walk on endportal:
  112.     set {_region} to "%region at location of player%"
  113.     {_region} contains "krakenboss":
  114.         {dungeon2Active.%player%} is false:
  115.             send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  116.             execute console command "/kill %player%"
  117.             stop
  118.         if {party.%player%} is not player:
  119.             send "&8[&9The Creeper's Cove&8] &7Have your Party Leader walk into the water!"
  120.             stop
  121.         else:
  122.             wait 1 tick
  123.         if {bluering.%player%} is true:
  124.             if {redring.%player%} is true:
  125.                 if {yellowring.%player%} is true:
  126.                     send "&8[&9The Creeper's Cove&8] &7As you walk into the water, a magical essense teleports you to another room..."
  127.                     loop {party.%player%::*}:
  128.                         execute console command "/warp bossroom2 %loop-value%"
  129.                     stop effect "bluering"
  130.                     stop effect "redring"
  131.                     stop effect "yellowring"
  132.                     set {redring.%player%} to false
  133.                     set {bluering.%player%} to false
  134.                     set {yellowring.%player%} to false
  135.                 else:
  136.                     send "&8[&9The Creeper's Cove&8] &7You are missing &6The Water Crystal&7."
  137.                     teleport player to the location (-2841, 43, 343)
  138.             else:
  139.                 send "&8[&9The Creeper's Cove&8] &7You are missing the &6Jewel of the Cove&7."
  140.                 teleport player to the location (-2841, 43, 343)
  141.         else:
  142.             send "&8[&9The Creeper's Cove&8] &7You are missing the &6Shard of the Seas&7."
  143.             teleport player to the location (-2841, 43, 343)
  144.  
  145. #Jewel of the Cove####
  146.  
  147. on right click:
  148.     target block is a chest:
  149.         set {_region} to "%region at location of clicked block%"
  150.         {_region} contains "jewelchest":
  151.             if {dungeon2Active.%player%} is false:
  152.                 send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  153.                 execute console command "/kill %player%"
  154.                 stop
  155.             else if {party.%player%} is player:
  156.                 send "&8[&9The Creeper's Cove&8] &7You find a shiny Jewel in the chest..."
  157.                 give 1 diamond named "&6Jewel of the Cove" to player
  158.                 loop {party.%player%::*}:
  159.                     send "&8[&9The Creeper's Cove&8] &6You have completed &cThe Clever&6." to loop-value
  160.                     execute console command "/warp mainroom2 %loop-value%"
  161.             else:
  162.                 send "&8[&9The Creeper's Cove&8] &7The Party Leader must open this."
  163.                
  164. #Shard of the Seas####
  165.  
  166. on right click:
  167.     target block is a chest:
  168.         set {_region} to "%region at location of clicked block%"
  169.         {_region} contains "shardsea":
  170.             if {dungeon2Active.%player%} is false:
  171.                 send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  172.                 execute console command "/kill %player%"
  173.                 stop
  174.             else if {party.%player%} is player:
  175.                 send "&8[&9The Creeper's Cove&8] &7You find a shiny Shard in the chest..."
  176.                 give 1 prismarine shard named "&6Shard of the Seas" to player
  177.                 loop {party.%player%::*}:
  178.                     send "&8[&9The Creeper's Cove&8] &6You have completed &9The Curious&6." to loop-value
  179.                     execute console command "/warp mainroom2 %loop-value%"
  180.             else:
  181.                 send "&8[&9The Creeper's Cove&8] &7The Party Leader must open this."
  182.                
  183. #The Water Crystal####
  184.  
  185. on right click:
  186.     target block is a chest:
  187.         set {_region} to "%region at location of clicked block%"
  188.         {_region} contains "waterchest":
  189.             if {dungeon2Active.%player%} is false:
  190.                 send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  191.                 execute console command "/kill %player%"
  192.                 stop
  193.             else if {party.%player%} is player:
  194.                 send "&8[&9The Creeper's Cove&8] &7You find a shiny Crystal in the chest..."
  195.                 give 1 diamond named "&6Jewel of the Cove" to player
  196.                 loop {party.%player%::*}:
  197.                     send "&8[&9The Creeper's Cove&8] &6You have completed &eThe Swift&6." to loop-value
  198.                     execute console command "/warp mainroom2 %loop-value%"
  199.             else:
  200.                 send "&8[&9The Creeper's Cove&8] &7The Party Leader must open this."
  201.                
  202. #Captain Lucio Boss Fight####
  203.  
  204. command /boss2:
  205.     executable by: console
  206.     permission: kukky.perms
  207.     trigger:
  208.         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]}"
  209.  
  210. on right click:
  211.     target block is block of lapis
  212.     set {_region} to "%region at location of clicked block%"
  213.     if {_region} contains "dun2boss":
  214.         {party.%player%} is not set:
  215.             send "&8[&9The Creeper's Cove&8] &7You are not in a party!"
  216.             stop
  217.         {party.%player%} is not player:
  218.             send "&8[&9The Creeper's Cove&8] &7Have the Party Leader start the boss fight!"
  219.             stop
  220.         {dungeon2Active.%player%} is not true:
  221.             send "&8[&9The Creeper's Cove&8] You shouldn't be here!"
  222.         set {_region} to "%region at location of clicked block%"
  223.         {_region} contains "dun2boss":
  224.             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]}"
  225.             loop {party.%player%::*}:
  226.                 send "&8[&9The Creeper's Cove&8] &7As you look around the room, you notice that some chests have been opened..." to loop-value
  227.                 wait 3 seconds
  228.                 send "&8[&4Captain Lucio&8]: &cWHAT DO YOU THINK YER DOING 'ERE?" to loop-value
  229.                 wait 3 seconds
  230.                 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
  231.                 wait 3 seconds
  232.                 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
  233.                 execute console command "/warp cove_phase1 %loop-value%"
  234.  
  235. on death:
  236.     boots of victim are diamond boots with lore "Wall ride, baby" named "Lucio":
  237.         broadcast "&8[&9The Creeper's Cove&8] &6&l%attacker% &4&land their partner have defeated Captain Lucio!"
  238.  
  239.        
  240. #Loot Boxes####
  241.  
  242. on rightclick on a chest:
  243.     if player's tool is a paper with name "&6Loot Box Creator":
  244.         if {loot::*} contains the event-location:
  245.             remove event-location from {loot::*}
  246.             message "&8[&aLoot Box&8] &7A Loot Box has been removed from &6%event-location%&7!"
  247.             cancel the event
  248.         else:
  249.             add event-location to {loot::*}
  250.             message "&8[&aLoot Box&8] &7A Loot Box has been created at &6%event-location%&7!"
  251.             cancel the event
  252.     else:
  253.         stop
  254.         loop {loot::*}:
  255.             if loop-value is event-location:
  256.                 send "event location"
  257.             else if loop-value is not event-location:
  258.                 send "not event location"
  259.         send "lolol"
  260.         loop {loot.%event-location%::*}:
  261.             loop-value is player:
  262.                 cancel event
  263.                 message "&8[&aLoot Box&8] &7You already looted that chest!"
  264.                 stop
  265.         if {dungeon2Active.%player%} is true:
  266.             send "it works"
  267.             cancel event
  268.             message "&8[&aLoot Box&8] &7You open the loot box and recieved..."
  269.             add the player to {loot.%event-location%::*}
  270.             chance of 3%:
  271.                 chance of 50%:
  272.                     set {chest.%event-location%.%player%} to a random integer between 5 and 9
  273.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &6Legendary Song Tokens!"
  274.                     wait 1 tick
  275.                     give {chest.%event-location%.%player%} of paper named "&5Song Token" with lore "&6A Song Token used to upgrade Legendary Tools||&7Rarity: &5Epic" to player
  276.                     delete {chest.%event-location%.%player%}
  277.                     stop
  278.                 chance of 100%:
  279.                     message "&8[&aLoot Box&8] &7... a &6Legendary Squid Staff!"
  280.                     wait 1 tick
  281.                     give 1 stick named "&6Squid Staff" with lore "&7Ability: &6On Right Click&7, Shoots Squids.||&7Rarity: &6Legendary" to player
  282.                     stop
  283.             chance of 10%:
  284.                 chance of 50%:
  285.                     message "&8[&aLoot Box&8] &7... 1x &5Epic Song Tokens"
  286.                     wait 1 tick
  287.                     give 1 paper named "&5Song Token" with lore "&6A Song Token used to upgrade Legendary Tools||&7Rarity: &5Epic" to player
  288.                     stop
  289.                 chance of 50%:
  290.                     message "&8[&aLoot Box&8] &7... 1x &5Epic Water Shooter!"
  291.                     wait 1 tick
  292.                     give 1 stick named "&5Water Shooter" with lore "&7Ability: &6On Right Click&7, Shoots Water.||&7Rarity: &5Epic" to player
  293.                 chance of 100%:
  294.                     set {chest.%event-location%.%player%} to a random integer between 1 and 3
  295.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &5Epic Dark Gold&7!"
  296.                     wait 1 tick
  297.                     give {chest.%event-location%.%player%} of shiny gold ingot named "&5Dark Gold" with lore "&6Used to make Dark Gold tools." to player
  298.                     delete {chest.%event-location%.%player%}
  299.                     stop
  300.             chance of 40%:
  301.                 chance of 50%:
  302.                     set {chest.%event-location%.%player%} to a random integer between 5 and 9
  303.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &9Rare Diamond!"
  304.                     wait 1 tick
  305.                     give {chest.%event-location%.%player%} of diamond to player
  306.                     delete {chest.%event-location%.%player%}
  307.                     stop
  308.                 chance of 50%:
  309.                     set {chest.%event-location%.%player%} to a random integer between 5 and 9
  310.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &9Rare Emerald&7!"
  311.                     wait 1 tick
  312.                     give {chest.%event-location%.%player%} of emerald to player
  313.                     delete {chest.%event-location%.%player%}
  314.                     stop
  315.                 chance of 50%:
  316.                     message "&8[&aLoot Box&8] &7... 6x &9Rare Fire Token&7!"
  317.                     give 6 paper named "&cFire Token" with lore "&6A Fire Token used to buy Novelty RP Items.||&7Rarity: &9Rare" to player
  318.                     stop
  319.                 chance of 100%:
  320.                     message "&8[&aLoot Box&8] &7... 6x &9Rare Ice Token&7!"
  321.                     give 6 paper named "&bIce Token" with lore "&6An Ice Token used to buy Novelty RP Items.||&7Rarity: &9Rare" to player
  322.                     stop
  323.             chance of 100%:
  324.                 chance of 50%:
  325.                     set {chest.%event-location%.%player%} to a random integer between 14 and 21
  326.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Iron!&7!"
  327.                     wait 1 tick
  328.                     give {chest.%event-location%.%player%} of iron ingot to player
  329.                     delete {chest.%event-location%.%player%}
  330.                     stop
  331.                 chance of 50%:
  332.                     set {chest.%event-location%.%player%} to a random integer between 13 and 20
  333.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Gold&7!"
  334.                     wait 1 tick
  335.                     give {chest.%event-location%.%player%} of gold ingot to player
  336.                     delete {chest.%event-location%.%player%}
  337.                     stop
  338.                 chance of 50%:
  339.                     set {chest.%event-location%.%player%} to a random integer between 3 and 7
  340.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Prismarine&7!"
  341.                     wait 1 tick
  342.                     give {chest.%event-location%.%player%} of prismarine shard to player
  343.                     delete {chest.%event-location%.%player%}
  344.                     stop
  345.                 chance of 100%:
  346.                     set {chest.%event-location%.%player%} to a random integer between 5 and 9
  347.                     message "&8[&aLoot Box&8] &7... %{chest.%event-location%.%player%}%x &aCommon Bread&7!"
  348.                     wait 1 tick
  349.                     give {chest.%event-location%.%player%} of bread to player
  350.                     delete {chest.%event-location%.%player%}
  351.                     stop
  352.             cancel the event
  353.         else if {dungeon2Active.%player%} is false:
  354.             message "&8[&aLoot Box&8] &7You are not in a Dungeon!"
  355.             stop
  356.  
  357. on break of a chest:
  358.     {loot::*} contains the event-location
  359.     remove the event-location from {loot::*}
  360.     delete {loot.%event-location%::*}
  361.     message "&8[&aLoot Box&8] &7The Loot Box has been destroyed!"
  362.  
  363. command /lootcreator:
  364.     permission: lol.bok.lol
  365.     trigger:
  366.         give player a paper with name "&6Loot Box Creator"
  367.  
  368. command /lootdelete:
  369.     permission: dont.use.this.pls
  370.     trigger:
  371.         loop {loot::*}:
  372.             delete {loot.%loop-value%::*}
  373.         delete {loot::*}
  374.         message "&8[&aLoot Box&8] &7Deleted all Loot Boxes!"
  375.  
  376. command /lootreset:
  377.     permission: this.one.is.ok.tho
  378.     trigger:
  379.         loop {loot::*}:
  380.             delete {loot.%loop-value%::*}
  381.         message "&8[&aLoot Box&8] &7Reset all Loot Boxes!"
  382.  
  383.  
  384. command /lootdebug:
  385.     permission: dot.bok
  386.     trigger:
  387.         message "chests at %{loot::*}%"
  388.         loop {loot::*}:
  389.             message "people opened %loop-value%: %{loot.%loop-value%::*}%"
  390.  
  391. #Parkour Fail####
  392.  
  393. on walk on obsidian or coal block:
  394.     set {_region} to "%region at location of event-block%"
  395.     if {_region} contains "parkfloor":
  396.         message "&8[&9The Creeper's Cove&8] &7You failed the Speed Parkour!"
  397.         apply potion of slowness 10 to player for 4 seconds
  398.         set {parkour.%player%} to false
  399.         execute console command "/warp parkstart %player%"
  400.     else if {_region} contains "parkfail2":
  401.         message "&8[&9The Creeper's Cove&8] &7You failed the Entry Parkour!"
  402.         execute console command "/warp parkstart2 %player%"
  403.  
  404. on walk on endportal:
  405.     set {_region} to "%region at location of event-block%"
  406.     if {_region} contains "parktp":
  407.         execute console command "/warp parkstart %player%"
  408.         message "&8[&9The Creeper's Cove&8] Teleporting to the Speed Parkour..."
  409.  
  410. on walk on endportal:
  411.     set {_region} to "%region at location of event-block%"
  412.     if {_region} contains "dungeon2_parkstart":
  413.         {parkour.%player%} is true:
  414.             stop
  415.         make player execute command "/ac-parkstart"
  416.         message "&8[&9The Creeper's Cove&8] You started the Speed Parkour!"
  417.         set {parkour.%player%} to true
  418.         wait 6.5 seconds
  419.         if {parkour.%player%} is true:
  420.             message "&8[&9The Creeper's Cove&8] &7You failed the Speed Parkour!"
  421.             execute console command "/warp parkstart %player%"
  422.             apply potion of slowness 10 to player for 4 seconds
  423.             set {parkour.%player%} to false
  424.  
  425. on step on bedrock:
  426.     set {_region} to "%region at location of event-block%"
  427.     if {_region} contains "dungeon2_parkend":
  428.         message "&8[&9The Creeper's Cove&8] You completed the Speed Parkour!"
  429.         execute console command "/warp dungeon2_parkend %player%"
  430.         set {parkour.%player%} to false
  431.  
  432. command /ac-parkstart:
  433.     trigger:
  434.         {parkour.%player%} is true:
  435.             stop
  436.         play raw sound "random.orb" at player with pitch 0.25 volume 0.3
  437.         set {_increase} to 129
  438.         set {_decrease} to 1
  439.         set {_arg1} to "&9|"
  440.         set {_arg2} to "&7|"
  441.         loop 130 times:
  442.             loop {_increase} times:
  443.                 set {_ic} to "%{_ic}%%{_arg1}%"
  444.             loop {_decrease} times:
  445.                 set {_dc} to "%{_dc}%%{_arg2}%"
  446.             send action bar from "%{_ic}%%{_dc}%&r" to player
  447.             set {_dc} to ""
  448.             set {_ic} to ""
  449.             set {_increase} to {_increase} - 1
  450.             set {_decrease} to {_decrease} + 1
  451.             wait 1 tick
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement