Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- P: &8[&bArena&8] #<<Your Servers Prefix
- CC: &7 #<<Your Servers Normal Chat Colour
- HC: &a&o #<<Your Servers Highlighted Chat Colour
- Warps: 30 #<<Amount of Warps You Set. Ex. a1,a2,a3...
- World: pvparena #<<World Of Which Your PvP Arena Is Located
- #Toggle The Arena On/Off
- command /pvparena [<text>]:
- usage: /pvparena <enable:disable>
- permission: pvparena.admin
- trigger:
- if arg-1 is "on" or "enable" or "true":
- set {arena} to true
- 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
- broadcast "{@P}{@CC} PvP Arena {@HC}Disabled {@CC}By &8[{@HC}%command sender%&8]{@CC}!"
- #Stops Players Joining The Arena When They Are Already In It
- on command "/a":
- world of player is "{@World}"
- cancel the event
- message "{@P}{@CC} You Are Already In The PvP Arena! Use /aleave To Leave!"
- on command "/arena":
- world of player is "{@World}"
- 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 Which Resets The Arena
- command /arenareset:
- permission: pvparena.admin
- trigger:
- command "/broadcast Resetting arena!"
- command "/wb {@World} clear"
- set {arena} to false
- loop all players:
- world of loop-player is "{@World}"
- command "/spawn %loop-player%"
- heal loop-player
- clear inventory of loop-player
- command "/mv delete {@World}"
- wait 5 ticks
- command "/mvconfirm"
- command "/mvc {@World} normal"
- command "/gamerule doDaylightCycle false {@World}"
- command "/gamerule doMobSpawning false {@World}"
- command "/wb {@World} set 200 200 0 0"
- command "/wb {@World} shape Square"
- command "/wb {@World} fill 100"
- command "/pregen pvparena 200 100"
- wait 30 seconds
- command "/setwalls {@World} 200 0 0 bedrock"
- wait 5 seconds
- set {arena} to true
- loop all players:
- message "{@P}{@CC} The Arena Map Has Reset. The Arena Is Now Open." to loop-player
- stop
- #Command Which Gives The Items In The PvP Arena, Feel Free To Edit This..
- command /stuff <player>:
- executable by: console, player
- permission: pvparena.admin
- trigger:
- equip arg-1 with all iron armor
- give arg-1 a iron sword
- give arg-1 a diamond pickaxe of efficiency 3
- give arg-1 a bow
- give arg-1 a water bucket
- give arg-1 64 cobblestone
- give arg-1 3 golden apples
- give arg-1 1 ender pearl
- give arg-1 64 crafting tables
- give arg-1 1 lava bucket
- give arg-1 128 cobblestone
- give arg-1 64 dirt
- give arg-1 2 anvils
- give arg-1 1 enchantment table
- give arg-1 64 arrow
- give arg-1 64 lapis lazuli
- #Sends The Player You Killed/You Who They Were Killed By, and Who They Killed
- on death:
- if {arena} is true:
- attacker is a player
- victim is a player
- send "{@P}{@CC} You killed {@HC}%victim%{@CC}!" to the attacker
- send "{@P}{@CC} You were killed by: {@HC}%attacker%{@CC}!" to the victim
- execute console command "/clearxp %victim%"
- give attacker 1 golden apple
- #Disables The Death Messages
- on death:
- if {arena} is true:
- set the death message to ""
- #Regen/Speed When You Kill Someone
- on death of player:
- if {arena} is true:
- clear drops
- apply regeneration 4 to the attacker for 2 seconds
- apply speed 2 to the attacker for 2 second
- apply strength 1 to the attacker for 5 seconds
- give attacker 1 player head
- give attacker 8 gold ingots
- on hunger meter change:
- if {arena} is true:
- cancel the event
- on mine of diamond ore:
- if {arena} is true:
- set event-block to air
- cancel the event
- on mine of gold ore:
- if {arena} is true:
- set event-block to air
- cancel the event
- command /progression <text>:
- usage: /progression <enable/disable>
- trigger:
- if arg-1 is "enable" or "on":
- set {progression} to true
- broadcast "&eProgression has been &aenabled!"
- if arg-1 is "disable" or "off":
- set {progression} to false
- broadcast "&eProgression has been &cdisabled"
- on death of player:
- if {progression} is true:
- if {arena} is true:
- clear drops
- apply regeneration 2 to the attacker for 2 seconds
- apply speed 2 to the attacker for 2 second
- give attacker 1 diamond armour
- give attacker 1 ender pearl
- give attacker 16 arrow
- give attacker 50 xp
- #Making a no action zone with world edit's region
- on drop:
- if player is in world "Spawn":
- cancel the event
- on shoot:
- if shooter is in world "Spawn":
- cancel the event
- repair tool of shooter
- on leftclick:
- if player is in world "Spawn":
- cancel the event
- wait 1 tick
- repair tool of player
- on consume:
- if player is in world "Spawn":
- cancel the event
- #Set up
- command /hotbar [<text>]:
- trigger:
- if arg-1 is set:
- wait 1 tick
- #Checking if player is in the No-action area
- if player is in world "Spawn":
- #Reseting The saved variables
- if arg-1 is "arena":
- delete {hotbarsetup::current::%uuid of player%::*}
- delete {hotbarhelmet::%uuid of player%}
- delete {hotbarchestplate::%uuid of player%}
- delete {hotbarleggings::%uuid of player%}
- delete {hotbarboots::%uuid of player%}
- clear the player's inventory
- #Giving Kit
- equip player with diamond helmet of protection 3 and unbreaking 3 named "&9Helmet"
- equip player with all iron armor
- give player a iron sword
- give player a diamond pickaxe of efficiency 3
- give player a bow
- give player a water bucket
- give player 64 cobblestone
- give player 3 golden apples
- give player 1 ender pearl
- give player 64 crafting tables
- give player 1 lava bucket
- give player 128 cobblestone
- give player 64 dirt
- give player 2 anvils
- give player 1 enchantment table
- give player 64 arrow
- give player 64 lapis lazuli
- message "{@P} &7Configure your inventory to your likings and then do &c/hotbar save"
- stop
- #Saving the setup
- if arg-1 is "save":
- delete {hotbarsetup::current::%uuid of player%::*}
- loop integers from 0 to 35:
- add (slot loop-integer of player) to {hotbarsetup::current::%uuid of player%::* }
- if helmet slot of player is not air:
- set {hotbarhelmet::%uuid of player%} to helmet slot of player
- else:
- delete {hotbarhelmet::%uuid of player%}
- if chestplate slot of player is not air:
- set {hotbarchestplate::%uuid of player%} to chestplate slot of player
- else:
- delete {hotbarchestplate::%uuid of player%}
- if legging slot of player is not air:
- set {hotbarleggings::%uuid of player%} to legging slot of player
- else:
- delete {hotbarleggings::%uuid of player%}
- if boots slot of player is not air:
- set {hotbarboots::%uuid of player%} to boots slot of player
- else:
- delete {hotbarboots::%uuid of player%}
- teleport the player to {spawnlocation}
- clear the player's inventory
- message "{@P} &7Arena Setup Saved!"
- stop
- #Arena joining command
- command /arena:
- aliases: /a
- trigger:
- if {arena} is true:
- command "/xp %random integer between 30 and 60% %player%"
- command "/warp a%a random integer between 1 and {@Warps}% %player%"
- clear player's inventory
- heal the player
- command "/stuff %player%"
- message "{@P}{@CC} You have joined the Arena!"
- command "/playsound note.pling %player% ~ ~ ~ 1 0.5 1"
- heal the player
- command "/effect %player% resistance 5 5"
- else:
- message "{@P}{@CC} The PvP Arena Is Currenty {@HC}Disabled{@CC}!"
- stop
- #Checking if player have a custom hotbar, if so use it
- if {hotbarsetup::current::%uuid of player%::*} is set:
- set {_c} to 0
- loop {barenakit::%uuid of player%::*}:
- set slot {_c} of player to loop-value
- add 1 to {_c}
- if {hotbarhelmet::%uuid of player%} is set:
- equip player with {hotbarhelmet::%uuid of player%}
- if {hotbarchestplate::%uuid of player%} is set:
- equip player with {hotbarchestplate::%uuid of player%}
- if {hotbarleggings::%uuid of player%} is set:
- equip player with {hotbarleggings::%uuid of player%}
- if {hotbarboots::%uuid of player%} is set:
- equip player with {hotbarboots::%uuid of player%}
Advertisement
Add Comment
Please, Sign In to add comment