Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #- Scenario Skript -#
- #- Edited and Remade by Melonn -#
- #- Made for the DynastyPvP / DynastyUHC Server -#
- options:
- Permission: skript.op
- PermissionDeny: &4You do not have permission to execute this command.
- P: &8[&aMoles&8]&7
- command /scenario [<text>] [<text>] [<text>]:
- usage: /scenario (help) (list) (scenarioname)
- permission: {@Permission}
- permission message: {@PermissionDeny}
- executable by: players and console
- trigger:
- #-----#
- if arg-1 is "help":
- message " &a------------------=+=------------------" to player
- message " &7/Scenario List - (lists all the scenarios)" to player
- message " &7Example: /scenario list" to player
- message " &a------------------=+=------------------" to player
- message " &7/Scenario scenarioname_E/D - (E/D a scenario)" to player
- message " &7Example: /scenario cutclean_E/D" to player
- message " &a------------------=+=------------------" to player
- message " &7/scenario DisableAll - (disables all skripts)" to player
- message " &7Example: /scenario disableall" to player
- message " &a------------------=+=------------------" to player
- message " &7/ScenarioBar set scene - (sets scenario bossbar)" to player
- message " &7Example: /scenariobar set &aTo2 CutClean Rush!" to player
- message " &a------------------=+=------------------" to player
- #-----#
- if arg-1 is "list":
- message "&a&m>------------------<" to player
- message " &a&nScenario List" to player
- message " &aEnable all scenarios after scatter"
- message "" to player
- message " &aCutClean" to player
- message " &aBarebones &7(Start command /uhc barebones)" to player
- message " &aTimeBomb" to player
- message " &aGoToHell &7(Enable when you want damage to take effect)" to player
- message " &aBestPVE" to player
- message " &aPotential Hearts &2(phearts) &7(Enable after final heal)"
- message " &a&mAssassins"
- message " &aTripleOres &7(You dont need to enable CutClean)"
- message " &aBlood Diamonds"
- message " &aDiamondless"
- message " &aDragon Rush &7(Start command /uhc drush)"
- message "" to player
- message "&a&m>------------------<" to player
- #-----#
- if arg-1 is "disableall":
- make console execute "/cutclean disable"
- make console execute "/ptool disable barebones"
- make console execute "/timebomb disable"
- make console execute "/gotohell off"
- make console execute "/bStop"
- make console execute "/pothearts off"
- make console execute "/blooddiamonds disable"
- make console execute "/cutclean2 disable"
- make console execute "/diamondless disable"
- make console execute "/erush off"
- broadcast " &7Disabled all scenarios!"
- #-----#
- if arg-1 is "CutClean_E":
- make console execute "/cutclean enable"
- broadcast " &aCutClean Enabled"
- if arg-1 is "barebones_e":
- make console execute "/ptool enable barebones"
- broadcast " &aBarebones Enabled"
- if arg-1 is "timebomb_E":
- make console execute "/timebomb enable"
- make console execute "/setbombtimer"
- make console execute "/setexplosionforce"
- broadcast " &aTimeBomb Enabled"
- if arg-1 is "gotohell_e":
- make console execute "/gotohell on"
- broadcast " &aGo To Hell Enabled"
- if arg-1 is "bestpve_e":
- make console execute "/bstart"
- if arg-1 is "phearts_e":
- make console execute "/pothearts on"
- broadcast " &aPotential Hearts Enabled"
- if arg-1 is "tripleores_e":
- make console execute "/cutclean2 enable"
- broadcast " &aTripleOres Enabled"
- if arg-1 is "blooddiamonds_e":
- make console execute "/blooddiamonds enable"
- broadcast " &aBlood Diamonds Enabled"
- if arg-1 is "diamondless_e":
- make console execute "/diamondless enable"
- broadcast " &aDiamondless Enabled"
- if arg-1 is "dragonrush_e":
- make console execute "/dragonrush on"
- broadcast " &DragonRush Enabled"
- #-----#
- if arg-1 is "CutClean_D":
- make console execute "/cutclean disable"
- broadcast " &aCutClean Disabled"
- if arg-1 is "barebones_d":
- make console execute "/ptool disable barebones"
- broadcast " &aBarebones Disabled"
- if arg-1 is "timebomb_D":
- make console execute "/timebomb disable"
- broadcast " &aTimeBomb Disabled"
- if arg-1 is "gotohell_D":
- make console execute "/gotohell disable"
- broadcast " &aGo To Hell Disabled"
- if arg-1 is "bestpve_d":
- make console execute "/bstop"
- if arg-1 is "phearts_D":
- make console execute "/pothearts off"
- broadcast " &aPotential Hearts Disabled"
- if arg-1 is "tripleores_d":
- make console execute "/cutclean2 disable"
- broadcast " &aTripleOres Disabled"
- if arg-1 is "blooddiamonds_d":
- make console execute "/blooddiamonds disable"
- broadcast " &aBlood Diamonds Disabled"
- if arg-1 is "diamondless_d":
- make console execute "/diamondless disable"
- broadcast " &aDiamondless Disabled"
- if arg-1 is "dragonrush_d":
- make console execute "/dragonrush off"
- broadcast " &aDragonRush Disabled"
- #-----# CutClean #-----#
- command /cutclean <text>:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- executable by: players and console
- trigger:
- if arg 1 is "enable":
- set {cutclean} to true
- if arg 1 is "disable":
- set {cutclean} to false
- #- Mining -#
- on mine of gravel:
- if {cutclean} is true:
- set block to air
- chance of 100%
- drop 1 flint
- cancel the event
- on mine of iron ore:
- if {cutclean} is true:
- set block to air
- drop 1 iron ingot
- cancel the event
- drop 3 exp
- on mine of gold ore:
- if {cutclean} is true:
- set block to air
- drop 1 gold ingot
- cancel the event
- drop 3 exp
- on mine of diamond ore:
- if {cutclean} is true:
- if {diamondless} is not set:
- set block to air
- drop 1 diamond
- cancel the event
- drop 3 exp
- on mine of coal ore:
- if {cutclean} is true:
- set block to air
- drop 1 coal
- cancel the event
- drop 3 exp
- on death of a pig:
- if {cutclean} is true:
- clear drops
- drop 3 cooked porkchop at the pig
- on death of a cow:
- if {cutclean} is true:
- clear drops
- drop 3 steak at the cow
- drop 1 leather at the cow
- on death of a chicken:
- if {cutclean} is true:
- clear drops
- drop 1 cooked chicken at the chicken
- drop 2 feather at the chicken
- on death of a villager:
- if {cutclean} is true:
- clear drops
- drop 1 book at the villager
- on death of a sheep:
- if {cutclean} is true:
- clear drops
- drop 1 bread at the sheep
- on death of a spider:
- if {cutclean} is true:
- clear drops
- drop 2 string at the spider
- #-----# Barebones #-----#
- variables:
- {barebones}=false
- command /barebones <text>:
- permission: skript.op
- trigger:
- if arg 1 is "enable":
- if {barebones} is false:
- set {barebones} to true
- stop
- if {barebones} is true:
- stop
- if arg 1 is "disable":
- if {barebones} is true:
- set {barebones} to false
- stop
- if {barebones} is false:
- stop
- if arg 1 is "toggle":
- if {barebones} is true:
- set {barebones} to false
- stop
- if {barebones} is false:
- set {barebones} to true
- stop
- on mine of gold ore:
- if {barebones} is true:
- set the block to air
- cancel the event
- drop 1 iron ingot
- on mine of diamond ore:
- if {barebones} is true:
- set the block to air
- cancel the event
- drop 1 iron ingot
- on craft of enchantment table:
- if {barebones} is true:
- cancel the event
- on craft of anvil:
- if {barebones} is true:
- cancel the event
- on craft of golden apple:
- if {barebones} is true:
- cancel the event
- on death of a player:
- if {barebones} is true:
- drop 1 golden apple at the player
- drop 1 diamond at the player
- drop 32 arrows at the player
- drop 2 string at the player
- #-----# Rush Kit #-----#
- command /rushkit <player>:
- permission: skript.op
- trigger:
- give arg-1 stone sword named "&6Stone Sword"
- give arg-1 stone pickaxe named "&6Stone Pickaxe"
- give arg-1 stone shovel named "&6Stone Shovel"
- give arg-1 stone axe named "&6Stone Axe"
- #-----# Time Bomb #-----#
- command /timebomb <text="toggle">:
- description: Enable/Disable/Toggle Time Bomb
- usage: /timebomb [enable/disable/toggle] defaults to toggle
- permission: UHC.Admin
- trigger:
- if arg 1 is "disable":
- set {timebomb} to false
- execute console command "/gamerule keepInventory false"
- else if arg 1 is "enable":
- set {timebomb} to true
- execute console command "/gamerule keepInventory true"
- command /setbombtimer <integer=30>:
- description: Set the length of time until the bomb goes off
- usage: /setbombtimer [time (s)] Defaults to 30s
- permission: UHC.Admin
- trigger:
- set {timer} to arg 1
- command /setexplosionforce <integer=10>:
- description: Set the force of the time bomb explosion
- usage: /setexplosionforce [force (1-10)] Default force is 10
- permission: UHC.Admin
- trigger:
- set {explosionforce} to arg 1
- on death of player:
- if {timebomb} is true:
- set {_tempinventory} to the player's inventory
- set {_templocation} to the block below the player
- set block 1 meter north of {_templocation} to Chest
- set block at {_templocation} to Chest
- set the inventory of the block at {_templocation} to {_tempinventory}
- if {timer} is set:
- set {_bombcounter} to {timer}
- else:
- set {_bombcounter} to 30
- if {explosionforce} is not set:
- set {explosionforce} to 10
- while {_bombcounter} is greater than 0:
- set {_bombcounter} to ({_bombcounter} - 1)
- wait 1 second
- broadcast "&a&lDynasty&2&lUHC &8&l> &9%player%'s &bcorpse has exploded!"
- create an explosion of force {explosionforce} at {_templocation}
- strike lightning at {_templocation}
- wait 1 second
- strike lightning at {_templocation}
- on player respawn:
- if {timebomb} is true:
- clear the player's inventory
- #-----# Go To Hell #-----#
- options:
- S: &8[&aGoToHell&8]
- command /gotohell <text>:
- permission: skript.op
- description: Enables the scenario
- aliases: /gth
- trigger:
- if arg 1 is "enable" or "on":
- set {GoToHell} to true
- broadcast "&a&lDynasty&2&lUHC &8&l> &c&lYou must now enter the Nether"
- else if arg 1 is "disable" or "off":
- if {GoToHell} is true:
- set {GoToHell} to false
- command /gotohellhelp:
- trigger:
- if {GoToHell} is true:
- message "&7---------------------------------------------" to command sender
- message " " to command sender
- message "{@S} &ais a scenario similar to SkyHigh!" to command sender
- message "&a You have 45 minutes to gear up before you &a&lmust &aenter the &4&lNether" to command sender
- message "&a If you are not in the Nether after the 45 minute mark you will take 0.5 hearts of damage every 30 seconds!" to command sender
- message "&4&lHint: &aLava Buckets are very useful to have!" to command sender
- message " " to command sender
- message "&7---------------------------------------------" to command sender
- every 30 seconds:
- loop all players:
- {GoToHell} is true
- biome at loop-player is not hell:
- damage the loop-player by 0.5 hearts
- #-----# Pot Hearts #-----#
- command /pothearts [<text>]:
- permission: skript.op
- permission message: Unknown command! Type /help.
- trigger:
- if arg-1 is "on" or "enable":
- set {pothearts} to true
- loop all players:
- set the loop-player's max health to 20
- if arg-1 is "off" or "disable":
- set {pothearts} to false
- loop all players:
- set loop-player's max health to 10
- on death of player:
- if {pothearts} is true:
- set the player's max health to 10
- command /addpothearts [<text>]:
- usage: /addpothearts <player>
- permission: skript.op
- trigger:
- set the max health of the player to 20
- command /removepothearts [<text>]:
- usage: /removepothearts <player>
- permission: skript.op
- trigger:
- set max health of the player to 10
- #-----# Best PvE #-----#
- options:
- P: &8[&9Best PvE&8]
- H: &c
- C: &b
- waittime: 10 #minutes
- command /bStart:
- permission: bestpve.start
- aliases: /bestpvestart
- trigger:
- set {bestpve} to true
- set {bestpve.time} to {@waittime}
- loop all players:
- set {bestpve::%loop-player%} to "%loop-player%"
- broadcast "&aBestPvE Enabled"
- command /bStop:
- aliases: /bestpvestop
- permission: bestpve.stop
- trigger:
- if {bestpve} is not set:
- send "&cBestPvE Not Enabled!"
- stop
- delete {bestpve}
- delete {bestpve::*}
- delete {bestpve.time}
- loop all players:
- set loop-player's max health to 10
- broadcast "&aBestPvE Disabled"
- command /bList:
- aliases: /bestpvelist
- trigger:
- if {bestpve} is not set:
- send "&cBestPvE Not Enabled!"
- else:
- if {bestpve::*} is not set:
- send "&cNobody on the list!"
- else:
- send "&b%{bestpve::*}%"
- command /bAdd <player>:
- aliases: /bestpveadd
- permission: bestpve.add
- trigger:
- if {bestpve} is not set:
- send "{@C} Not Enabled!"
- stop
- if {bestpve::%arg-1%} is set:
- send "&c%arg-1% is already on the list!"
- else:
- broadcast "&a%arg-1% added to the list."
- set {bestpve::%arg-1%} to "%arg-1%"
- command /bRemove <player>:
- aliases: /bestpveremove
- permission: bestpve.remove
- trigger:
- if {bestpve} is not set:
- send "&cBestPvE Not Enabled!"
- stop
- if {bestpve::%arg-1%} is not set:
- send "&c%arg-1% is not on the list!"
- else:
- broadcast "&c%arg-1% removed from the list."
- delete {bestpve::%arg-1%}
- every minute:
- {bestpve} is true
- remove 1 from {bestpve.time}
- if {bestpve.time} is less than or equal to 0:
- loop {bestpve::*}:
- set {_player} to ("%loop-index%" parsed as offlineplayer)
- add 1 to {_player}'s max health
- add 1 to {_player}'s health
- send "&aYou have been rewarded for your PvE Skills!" to {_player}
- set {bestpve.time} to {@waittime}
- on death of a player:
- {bestpve} is true
- {bestpve::%attacker%} is not set
- set victim's max health to 10
- wait 1 second
- broadcast "&a%attacker% is added back to the list!"
- set {bestpve::%attacker%} to "%attacker%"
- on damage of a player:
- {bestpve} is true
- {bestpve::%victim%} is set
- broadcast "&c%victim% took damage!"
- delete {bestpve::%victim%}
- command /cutclean2 <text>:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- executable by: players and console
- trigger:
- if arg 1 is "enable":
- set {cutclean2} to true
- if arg 1 is "disable":
- set {cutclean2} to false
- #===================#
- #= CutClean Mining =#
- #===================#
- on mine of gravel:
- if {cutclean2} is true:
- set block to air
- chance of 100%
- drop 1 flint
- cancel the event
- on mine of iron ore:
- if {cutclean2} is true:
- set block to air
- drop 3 iron ingot
- drop 3 exp
- cancel the event
- on mine of gold ore:
- if {cutclean2} is true:
- set block to air
- drop 3 gold ingot
- drop 3 exp
- cancel the event
- on mine of diamond ore:
- if {cutclean2} is true:
- set block to air
- drop 3 diamond
- drop 3 exp
- cancel the event
- on mine of coal ore:
- if {cutclean2} is true:
- set block to air
- drop 3 coal
- drop 3 exp
- cancel the event
- on death of a pig:
- if {cutclean2} is true:
- clear drops
- drop 3 cooked porkchop at the pig
- on death of a cow:
- if {cutclean2} is true:
- clear drops
- drop 3 steak at the cow
- drop 1 leather at the cow
- on death of a chicken:
- if {cutclean2} is true:
- clear drops
- drop 3 cooked chicken at the chicken
- drop 2 feather at the chicken
- on death of a villager:
- if {cutclean2} is true:
- clear drops
- drop 1 book at the villager
- on death of a sheep:
- if {cutclean2} is true:
- clear drops
- drop 1 bread at the sheep
- on death of a spider:
- if {cutclean2} is true:
- clear drops
- drop 2 string at the spider
- command /blooddiamonds <text>:
- usage: /blooddiamonds <enable:disable>
- permission: skript.op
- trigger:
- if arg-1 is "enable":
- set {blooddiamonds} to true
- if arg-1 is "disable":
- delete {blooddiamonds}
- on mine of diamond ore:
- if {blooddiamonds} is set:
- damage the player by 0.5 hearts
- command /diamondless <text>:
- usage: /diamondless <enable:disable>
- permission: skript.op
- trigger:
- if arg-1 is "enable":
- set {diamondless} to true
- if arg-1 is "disable":
- delete {diamondless}
- on break of diamond ore:
- if {diamondless} is set:
- cancel the event
- set block to air
- on death of a player:
- if {diamondless} is true:
- drop 1 diamond at the player
- command /erush <text>:
- permission: skript.op
- permission message: No permission!
- trigger:
- if arg-1 is "on" or "enable":
- set {enderdragon} to true
- if arg-1 is "off" or "disable":
- set {enderdragon} to false
- set {epearl} to 0
- on death of ender dragon:
- if {enderdragon} is true
- broadcast "&a&lDynasty&2&lUHC &8&l> &aThe Ender Dragon was killed by &c%attacker%!"
- on rightclick on 120 with eye of ender:
- if {enderdragon} is true
- add 1 to {epearl}
- broadcast "&a&lDynasty&2&lUHC &8&l> &a%{epearl}% out of 3 ender eyes have been placed!"
- wait 1 second
- if {epearl} is 3:
- broadcast "&a&lDynasty&2&lUHC &8&l> &aThe End Portal has been made!"
- set {epearl} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement