Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #PvP Arena Skript - Edited by Ilom, I don't remember who originally made it.
- Options:
- P: &8[&7Nightmare UHC&8] #<<Your Servers Prefix (Edit this before use!)
- CC: &7 #<<Your Servers Normal Chat Colour
- HC: &a&o #<<Your Servers Highlighted Chat Colour
- World: pvparena #<<World Of Which Your PvP Arena Is Located
- Variables:
- pvparena:fenceposts = false #Is glitchy
- #Toggle The Arena On/Off
- command /pvparena [<text>] [<text>] [<text>]:
- # usage: /pvparena <enable:disable/headposts>
- permission: pvparena.admin
- trigger:
- if arg-1 is "on" or "enable" or "true":
- set {arena} to true
- command "/scoreboard objectives add arenakills stat.playerKills &8[&7Arena Kills&8]"
- command "/scoreboard objectives setdisplay sidebar arenakills"
- command "/mv load pvparena"
- broadcast "{@P}{@CC} PvP Arena {@HC}Enabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
- if arg-1 is "off" or "disable" or "false":
- set {arena} to false
- command "/mv unload pvparena"
- command "/scoreboard objectives remove arenakills"
- broadcast "{@P}{@CC} PvP Arena {@HC}Disabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
- if arg-1 is "headpost" or "headposts":
- if arg-2 is "enable" or "on" or "true":
- set {arena:headposts} to true
- broadcast "{@P}{@CC} Heads will now spawn on fence posts in the PvP Arena!"
- if arg-2 is "disable" or "off" or "false":
- set {arena:headposts} to false
- broadcast "{@P}{@CC} Heads will now drop normally in the PvP Arena!"
- # if arg-1 is "mode" or "kit": #This part was broken, I removed it for sake of conscision
- command /aautoreset [<text>]:
- usage: /aautoreset <enable:disable>
- permission: pvparena.admin
- trigger:
- if arg-1 is "on" or "enable" or "true":
- set {arenaautoreset} to true
- send "{@P}{@CC}Auto Reset enabled!"
- if arg-1 is "off" or "disable" or "false":
- set {arenaautoreset} to false
- send "{@P}{@CC}Auto Reset disabled!"
- #Join The Arena
- command /arena:
- aliases: /a, /p
- trigger:
- if {arena} is true:
- command "/sct -r 199 -silent -c 0:0 -avoidSpawn 30 -w pvparena %player%"
- clear player's inventory
- heal the player
- command "/stuff %player%"
- message "{@P}{@CC} You Have Joined PvP!"
- command "/playsound note.pling %player% ~ ~ ~ 1 0.5 1"
- command "/gamemode 0 %player%"
- heal the player
- apply weakness 200 to the player for 5 seconds
- apply resistance 200 to the player for 5 seconds
- else:
- message "{@P}{@CC} The PvP Arena Is Currently {@HC}Disabled{@CC}!"
- stop
- #Stops Players Joining The Arena When They Are Already In It
- on command "/arena":
- if world of player is "pvparena":
- cancel the event
- message "{@P}{@CC} You Are Already In The PvP Arena! Use /aleave To Leave!"
- #Command For Players To Leave The Arena
- command /arenaleave:
- aliases: /aleave
- trigger:
- if player is in world "pvparena":
- heal the command sender
- clear inventory of command sender
- execute console command "/mv tp %player% spawn"
- execute console command "/effect %player% clear"
- execute console command "/xp -5000l %player%"
- execute console command "/gamemode 0 %player%"
- execute console command "/scoreboard players reset %player% arenakills"
- message "{@P}{@CC} Leaving The Arena..."
- #Command Which Resets The Arena
- command /arenareset [<integer>]:
- permission: pvparena.admin
- trigger:
- if arg-1 is not set:
- command "/bc Resetting arena!"
- command "/wb pvparena clear"
- set {arena} to false
- command "/scoreboard objectives remove arenakills"
- loop all players:
- world of loop-player is "pvparena"
- command "/mv tp %loop-player% spawn"
- heal loop-player
- clear inventory of loop-player
- command "/mv delete pvparena"
- wait 5 ticks
- command "/mvconfirm"
- wait 5 ticks
- command "/mvconfirm"
- command "/mvc pvparena normal"
- command "/wb pvparena set 201 0 0"
- command "/wb pvparena fill 100 40"
- command "/wb fill confirm"
- wait 15 seconds
- command "/setwalls pvparena 200 0 0 7"
- wait 15 seconds
- set {arena} to true
- command "/scoreboard objectives add arenakills stat.playerKills &8[&7Arena Kills&8]"
- command "/scoreboard objectives setdisplay sidebar arenakills"
- loop all players:
- message "{@P}{@CC} The Arena Map Has Reset. The Arena Is Now Open." to loop-player
- stop
- else if arg-1 is an integer:
- command "/bc Resetting arena!"
- command "/wb pvparena clear"
- set {arena} to false
- command "/scoreboard objectives remove arenakills"
- loop all players:
- world of loop-player is "pvparena"
- command "/mv tp %loop-player% spawn"
- heal loop-player
- clear inventory of loop-player
- command "/mv delete pvparena"
- wait 5 ticks
- command "/mvconfirm"
- command "/mvc pvparena normal -s %arg-1%"
- command "/wb pvparena set 201 0 0"
- command "/wb pvparena fill 100 40"
- command "/wb fill confirm"
- wait 15 seconds
- command "/setwalls pvparena 200 0 0 7"
- wait 15 seconds
- set {arena} to true
- command "/scoreboard objectives add arenakills stat.playerKills &8[&7Arena Kills&8]"
- command "/scoreboard objectives setdisplay sidebar arenakills"
- loop all players:
- message "{@P}{@CC} The Arena Map Has Reset. The Arena Is Now Open." to loop-player
- stop
- #Auto Resets The Arena Every 60 Minutes
- every 60 minutes:
- if {arenaautoreset} and {arena} is true:
- command "/arenareset"
- wait 60 seconds
- #Command Which Gives The Items In The PvP Arena, Feel Free To Edit This..
- command /stuff <player> [<text>]:
- executable by: players, console
- trigger:
- if arg-2 is not set:
- command "/xp %random integer between 100 and 120% %arg-1%"
- clear inventory of arg-1
- wait for 1 tick
- equip arg-1 with iron chestplate of protection 1
- equip arg-1 with iron leggings of protection 1
- equip arg-1 with iron boots of projectile protection 2
- equip arg-1 with iron helmet of projectile protection 2
- give arg-1 a iron sword of sharpness 1
- give arg-1 a bow of power 1
- give arg-1 a diamond pickaxe of efficiency 1
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 2 golden apples
- give arg-1 1 ender pearl
- give arg-1 64 cobblestone
- give arg-1 64 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 10 dirt
- give arg-1 64 arrows
- give arg-1 1 flint and steel
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 3 books
- give arg-1 3 enchantment tables
- give arg-1 3 anvils
- give arg-1 1 gold ingot
- give arg-1 1 diamond
- give arg-1 64 dye:4
- chance of 50%:
- give arg-1 1 diamond
- chance of 8%:
- give arg-1 1 iron sword of fire aspect 1
- chance of 5%:
- give arg-1 1 bow of flame 1
- chance of 5%:
- give arg-1 1 bow of infinity 1
- chance of 10%:
- give arg-1 1 music disc
- give arg-1 1 jukebox
- chance of 20%:
- give arg-1 2 diamonds
- chance of 10%:
- give arg-1 5 diamonds
- chance of 5%:
- give arg-1 12 diamonds
- chance of 3%:
- give arg-1 1 bow of power 4
- chance of 5%:
- give arg-1 1 bow of power 3
- chance of 3%:
- give arg-1 1 iron sword of sharpness 4
- chance of 30%:
- give arg-1 1 diamond chestplate of protection 1
- chance of 10%:
- give arg-1 1 bow of power 2
- chance of 15%:
- give arg-1 1 bow of power 1
- chance of 5%:
- give arg-1 1 bow of punch 1
- chance of 2.5%:
- give arg-1 1 bow of punch 2
- chance of 10%:
- give arg-1 1 iron sword of sharpness 2
- chance of 5%:
- give arg-1 1 iron sword of sharpness 3
- chance of 7.5%:
- give arg-1 1 iron sword of knockback 1
- chance of 5%:
- give arg-1 1 iron sword of knockback 2
- chance of 5%:
- give arg-1 3 golden apples
- chance of 2.5%:
- give arg-1 5 golden apples
- chance of 20%:
- give arg-1 1 golden apple
- chance of 30%:
- give arg-1 4 gold ingots
- chance of 10%:
- give arg-1 1 ender pearl
- chance of 35%:
- give arg-1 1 diamond helmet of protection 1
- chance of 35%:
- give arg-1 1 diamond boots of protection 1
- chance of 35%:
- give arg-1 1 diamond leggings of protection 1
- chance of 5%:
- give arg-1 1 saddle
- give arg-1 1 horse spawn egg
- chance of 20%:
- give arg-1 1 diamond horse armor
- else:
- chance of 20%:
- give arg-1 1 gold horse armor
- else:
- chance of 20%:
- give arg-1 1 iron horse armor
- else:
- give arg-1 2 wheat
- chance of 7.5%:
- clear inventory of arg-1
- equip arg-1 with all iron armor
- give arg-1 a iron sword
- give arg-1 a bow
- give arg-1 a iron pickaxe
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 1 golden apple
- give arg-1 32 cobblestone
- give arg-1 30 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 64 arrows
- give arg-1 1 flint and steel
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 64 dye:4
- give arg-1 3 potions of speed 1
- give arg-1 3 potions of strength 1
- give arg-1 1 brewing stand
- give arg-1 20 nether wart
- give arg-1 20 redstone
- give arg-1 20 glowstone dust
- give arg-1 18 glass bottles
- give arg-1 6 melon slices
- give arg-1 2 blaze powder
- give arg-1 2 sugar
- if arg-2 is "iron":
- clear inventory of arg-1
- command "/xp %random integer between 100 and 120% %arg-1%"
- wait for 1 tick
- equip arg-1 with iron chestplate
- equip arg-1 with iron leggings
- equip arg-1 with iron boots
- equip arg-1 with iron helmet
- give arg-1 a iron sword
- give arg-1 a bow
- give arg-1 a iron pickaxe
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 2 golden apples
- give arg-1 1 ender pearl
- give arg-1 64 arrows
- give arg-1 64 cobblestone
- give arg-1 64 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 1 flint and steel
- give arg-1 3 anvils
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 1 gold ingot
- give arg-1 64 dye:4
- chance of 5%:
- give arg-1 1 iron sword of fire aspect 1
- chance of 2.5%:
- give arg-1 1 iron sword of fire aspect 2
- chance of 2.5%:
- give arg-1 1 bow of flame 1
- chance of 5%:
- give arg-1 1 bow of infinity 1
- chance of 2.5%:
- give arg-1 1 bow of power 3
- chance of 5%:
- give arg-1 1 bow of power 2
- chance of 7.5%:
- give arg-1 1 bow of power 1
- chance of 5%:
- give arg-1 1 bow of punch 1
- chance of 2.5%:
- give arg-1 1 bow of punch 2
- chance of 7.5%:
- give arg-1 1 iron sword of sharpness 2
- chance of 5%:
- give arg-1 1 iron sword of sharpness 3
- chance of 5%:
- give arg-1 1 iron sword of knockback 2
- chance of 10%:
- give arg-1 2 golden apples
- chance of 5%:
- give arg-1 3 golden apples
- chance of 2.5%:
- give arg-1 5 golden apples
- chance of 1%:
- give arg-1 7 golden apples
- chance of 15%:
- give arg-1 1 golden apple
- chance of 20%:
- give arg-1 4 gold ingots
- chance of 5%:
- give arg-1 1 ender pearl
- chance of 2.5%:
- give arg-1 1 saddle
- give arg-1 1 horse spawn egg
- chance of 20%:
- give arg-1 1 diamond horse armor
- else:
- chance of 20%:
- give arg-1 1 gold horse armor
- else:
- chance of 20%:
- give arg-1 1 iron horse armor
- else:
- give arg-1 2 wheat
- if arg-2 is "normal":
- command "/xp %random integer between 100 and 120% %arg-1%"
- clear inventory of arg-1
- wait for 1 tick
- equip arg-1 with iron chestplate of protection 1
- equip arg-1 with iron leggings of protection 1
- equip arg-1 with iron boots of projectile protection 2
- equip arg-1 with iron helmet of projectile protection 2
- give arg-1 a iron sword of sharpness 1
- give arg-1 a bow of power 1
- give arg-1 a diamond pickaxe of efficiency 1
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 2 golden apples
- give arg-1 1 ender pearl
- give arg-1 64 cobblestone
- give arg-1 64 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 10 dirt
- give arg-1 64 arrows
- give arg-1 1 flint and steel
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 3 books
- give arg-1 3 enchantment tables
- give arg-1 3 anvils
- give arg-1 1 gold ingot
- give arg-1 1 diamond
- give arg-1 64 dye:4
- chance of 50%:
- give arg-1 1 diamond
- chance of 8%:
- give arg-1 1 iron sword of fire aspect 1
- chance of 5%:
- give arg-1 1 bow of flame 1
- chance of 5%:
- give arg-1 1 bow of infinity 1
- chance of 10%:
- give arg-1 1 music disc
- give arg-1 1 jukebox
- chance of 20%:
- give arg-1 2 diamonds
- chance of 10%:
- give arg-1 5 diamonds
- chance of 5%:
- give arg-1 12 diamonds
- chance of 3%:
- give arg-1 1 bow of power 4
- chance of 5%:
- give arg-1 1 bow of power 3
- chance of 3%:
- give arg-1 1 iron sword of sharpness 4
- chance of 30%:
- give arg-1 1 diamond chestplate of protection 1
- chance of 10%:
- give arg-1 1 bow of power 2
- chance of 15%:
- give arg-1 1 bow of power 1
- chance of 5%:
- give arg-1 1 bow of punch 1
- chance of 2.5%:
- give arg-1 1 bow of punch 2
- chance of 10%:
- give arg-1 1 iron sword of sharpness 2
- chance of 5%:
- give arg-1 1 iron sword of sharpness 3
- chance of 7.5%:
- give arg-1 1 iron sword of knockback 1
- chance of 5%:
- give arg-1 1 iron sword of knockback 2
- chance of 5%:
- give arg-1 3 golden apples
- chance of 2.5%:
- give arg-1 5 golden apples
- chance of 20%:
- give arg-1 1 golden apple
- chance of 30%:
- give arg-1 4 gold ingots
- chance of 10%:
- give arg-1 1 ender pearl
- chance of 35%:
- give arg-1 1 diamond helmet of projectile protection 1
- chance of 35%:
- give arg-1 1 diamond boots of projectile protection 1
- chance of 35%:
- give arg-1 1 diamond leggings of protection 1
- chance of 5%:
- give arg-1 1 saddle
- give arg-1 1 horse spawn egg
- chance of 20%:
- give arg-1 1 diamond horse armor
- else:
- chance of 20%:
- give arg-1 1 gold horse armor
- else:
- chance of 20%:
- give arg-1 1 iron horse armor
- else:
- give arg-1 2 wheat
- chance of 7.5%:
- clear inventory of arg-1
- equip arg-1 with all iron armor
- give arg-1 a iron sword
- give arg-1 a bow
- give arg-1 a iron pickaxe
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 1 golden apple
- give arg-1 32 cobblestone
- give arg-1 30 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 64 arrows
- give arg-1 1 flint and steel
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 64 dye:4
- give arg-1 3 potions of speed 1
- give arg-1 3 potions of strength 1
- give arg-1 1 brewing stand
- give arg-1 20 nether wart
- give arg-1 20 redstone
- give arg-1 20 glowstone dust
- give arg-1 18 glass bottles
- give arg-1 6 melon slices
- give arg-1 2 blaze powder
- give arg-1 2 sugar
- if arg-2 is "uhc":
- command "/xp %random integer between 100 and 120% %arg-1%"
- clear inventory of arg-1
- wait for 1 tick
- equip arg-1 with iron chestplate of protection 2
- equip arg-1 with iron leggings of protection 1
- equip arg-1 with iron boots of projectile protection 2
- equip arg-1 with iron helmet of projectile protection 2
- give arg-1 a iron sword of sharpness 2
- give arg-1 a bow of power 1
- give arg-1 a diamond pickaxe of efficiency 1
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 3 golden apples
- give arg-1 1 ender pearl
- give arg-1 64 cobblestone
- give arg-1 64 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 96 arrows
- give arg-1 1 flint and steel
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 3 books
- give arg-1 3 enchantment tables
- give arg-1 3 anvils
- give arg-1 1 gold ingot
- give arg-1 1 diamond
- give arg-1 64 dye:4
- if arg-2 is "ironuhc":
- clear inventory of arg-1
- command "/xp %random integer between 100 and 120% %arg-1%"
- wait for 1 tick
- equip arg-1 with iron chestplate
- equip arg-1 with iron leggings
- equip arg-1 with iron boots
- equip arg-1 with iron helmet
- give arg-1 a iron sword
- give arg-1 a bow
- give arg-1 a iron pickaxe
- give arg-1 a iron shovel
- give arg-1 64 cobblestone
- give arg-1 a water bucket
- give arg-1 a lava bucket
- give arg-1 3 golden apples
- give arg-1 1 ender pearl
- give arg-1 96 arrows
- give arg-1 64 cobblestone
- give arg-1 64 crafting table
- give arg-1 64 17
- give arg-1 4 apples
- give arg-1 1 flint and steel
- give arg-1 3 anvils
- give arg-1 1 iron axe
- give arg-1 32 iron ingots
- give arg-1 1 gold ingot
- give arg-1 64 dye:4
- #Sends The Player You Killed/You Who They Were Killed By, and Who They Killed
- on death:
- if {arena} is true:
- victim is a player
- world of the victim is "pvparena"
- if damage was caused by a projectile:
- clear drops
- set {_loc%victim%} to victim's location
- send "{@P}{@CC} You killed {@HC}%victim%{@CC}!" to the attacker
- send "{@P}{@CC} You were killed by: {@HC}%attacker% at %health of attacker*10%%% health!{@CC}" to the victim
- drop 8 gold ingots at {_loc%victim%}
- drop 1 golden apple at {_loc%victim%}
- chance of 50%:
- drop 2 diamonds at {_loc%victim%}
- chance of 40%:
- drop 3 diamonds at {_loc%victim%}
- else:
- drop 1 diamond at {_loc%victim%}
- drop 3 books at {_loc%victim%}
- drop 2 apples at {_loc%victim%}
- drop 32 arrows at {_loc%victim%}
- chance of 20%:
- drop 2 obsidian at {_loc%victim%}
- chance of 30%:
- drop 1 ender pearl at {_loc%victim%}
- chance of 25%:
- drop 16 dye:4 at {_loc%victim%}
- else:
- drop 4 gold ingots at {_loc%victim%}
- command "/xp %random integer between 20 and 80% %attacker%"
- command "/gamemode 0 %victim%"
- command "/scoreboard players reset %victim% arenakills"
- wait 1 second
- delete {_loc%victim%}
- command "/clearxp %victim%"
- else:
- clear drops
- send "{@P}{@CC} You killed {@HC}%victim%{@CC}!" to the attacker
- send "{@P}{@CC} You were killed by: {@HC}%attacker% at %health of attacker*10%%% health!{@CC}" to the victim
- drop 8 gold ingots at the player
- drop 1 golden apple at the player
- chance of 50%:
- drop 2 diamonds at the player
- chance of 40%:
- drop 3 diamonds at the player
- else:
- drop 1 diamond at the player
- drop 3 books at the player
- drop 2 apples at the player
- drop 32 arrows at the player
- chance of 20%:
- drop 2 obsidian at the player
- chance of 30%:
- drop 1 ender pearl at the player
- chance of 25%:
- drop 16 dye:4 at the player
- else:
- drop 4 gold ingots at the player
- command "/xp %random integer between 20 and 80% %attacker%"
- command "/gamemode 0 %victim%"
- command "/scoreboard players reset %victim% arenakills"
- wait 1 second
- command "/clearxp %victim%"
- on death:
- if {arena} is true:
- victim is a player
- world of the victim is "pvparena"
- if {arena:headposts} is true:
- set {__loc} to victim's location
- set block at {__loc} to nether brick fence
- set {_x} to victim's x-coordinate
- set {_y} to (victim's y-coordinate+1)
- set {_z} to victim's z-coordinate
- execute player command "/setblock %{_x}% %{_y}% %{_z}% minecraft:skull 1 keep {SkullType:3,ExtraType:""%victim%""}"
- wait 1 second
- delete {__loc}
- else if {arena:headposts} is false:
- drop the victim's skull at the player
- #Speed When You Kill Someone
- on death of player:
- {arena} is true:
- world is "pvparena"
- clear drops
- apply speed 2 to the attacker for 8 seconds
- #Disables Hunger Loss
- on hunger meter change:
- if {arena} is true:
- set player's hunger meter to 10
Advertisement
Add Comment
Please, Sign In to add comment