Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. variables:
  2. {pvp} = true
  3. {current} = numeral
  4. {autofight.%player%} = false
  5.  
  6. command /fight:
  7. trigger:
  8. set {pvp.%player%} to false
  9. message "<Green>Entered PvP!"
  10.  
  11. set {current} to a random integer between 1 and 16
  12.  
  13. execute console command "/ci %player%"
  14. equip player with all iron armour
  15. enchant the player's boots with unbreaking 10
  16. enchant the player's boots with feather falling 10
  17. enchant the player's boots with protection 1
  18. enchant the player's leggings with unbreaking 10
  19. enchant the player's leggings with protection 1
  20. enchant the player's chestplate with unbreaking 10
  21. enchant the player's chestplate with protection 1
  22. enchant the player's helmet with unbreaking 10
  23. enchant the player's helmet with protection 1
  24. give player 1 iron sword of sharpness 1
  25. give player 1 bow of infinity 1
  26. give player 1 arrow
  27.  
  28. execute console command "/warp PVP%{current}% %player%"
  29. on death of player:
  30. set {pvp.%player%} to true
  31. give attacker Splash Potion of Healing
  32. execute console command "/ci %victim%"
  33.  
  34. on command "/fight":
  35. if {pvp.%player%} is false:
  36. cancel event
  37. message "<Green>Already In PvP!"
  38.  
  39. on hunger meter changing:
  40. cancel event
  41.  
  42. on death of player:
  43. chance of 2.5%:
  44. give attacker 1 bow with name "FlameThrower"
  45. enchant tool with flame 1
  46. enchant tool with infinity 1
  47. stop
  48.  
  49. command /autofight:
  50. trigger:
  51. if {autofight.%player%} is false:
  52. message "<Green>Enabled AutoFight!"
  53. set {autofight.%player%} to true
  54. if {autofight.%player%} is true:
  55. message "<Green>Disabled AutoFight!"
  56. set {autofight.%player%} to false
  57.  
  58. on respawn:
  59. wait 2 seconds
  60. {autofight.%player%} is true
  61. make player execute command "/fight"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement