Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {pvp} = true
- {current} = numeral
- {autofight.%player%} = false
- command /fight:
- trigger:
- set {pvp.%player%} to false
- message "<Green>Entered PvP!"
- set {current} to a random integer between 1 and 16
- execute console command "/ci %player%"
- equip player with all iron armour
- enchant the player's boots with unbreaking 10
- enchant the player's boots with feather falling 10
- enchant the player's boots with protection 1
- enchant the player's leggings with unbreaking 10
- enchant the player's leggings with protection 1
- enchant the player's chestplate with unbreaking 10
- enchant the player's chestplate with protection 1
- enchant the player's helmet with unbreaking 10
- enchant the player's helmet with protection 1
- give player 1 iron sword of sharpness 1
- give player 1 bow of infinity 1
- give player 1 arrow
- execute console command "/warp PVP%{current}% %player%"
- on death of player:
- set {pvp.%player%} to true
- give attacker Splash Potion of Healing
- execute console command "/ci %victim%"
- on command "/fight":
- if {pvp.%player%} is false:
- cancel event
- message "<Green>Already In PvP!"
- on hunger meter changing:
- cancel event
- on death of player:
- chance of 2.5%:
- give attacker 1 bow with name "FlameThrower"
- enchant tool with flame 1
- enchant tool with infinity 1
- stop
- command /autofight:
- trigger:
- if {autofight.%player%} is false:
- message "<Green>Enabled AutoFight!"
- set {autofight.%player%} to true
- if {autofight.%player%} is true:
- message "<Green>Disabled AutoFight!"
- set {autofight.%player%} to false
- on respawn:
- wait 2 seconds
- {autofight.%player%} is true
- make player execute command "/fight"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement