Guest User

BladeSMP

a guest
Sep 9th, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.42 KB | Gaming | 0 0
  1. command /bladesmp [<text>] [<player>]:
  2. permission: op
  3. permission message: &r&fUnkown command. Type "/help" for help.
  4. trigger:
  5. if arg-1 is not set:
  6. send "BladeSMP Commands" to player
  7. send " • /bladesmp help - Shows this text" to player
  8. send " • /bladesmp reload – Be carful with this! This reloads all the blades, and anyone that joins without a blade could get a copy!" to player
  9. send " • /bladesmp give – Gives their blade to a player" to player
  10. if arg-1 = "help":
  11. send "BladeSMP Commands" to player
  12. send " • /bladesmp help - Shows this text" to player
  13. send " • /bladesmp give – Gives their blade to a player" to player
  14. send " • /bladesmp reload – Be carful with this! This reloads all the blades, and anyone that joins without a blade could get a copy!"
  15. if arg-1 = "reload":
  16. send "Type /blade confirm to confirm this reload. If you do this, all blades will be reloaded and anyone who joins without a blade could get a copy! This will expire in 10 seconds."
  17. set {confirm.%player%} to true
  18. wait 10 seconds
  19. set {confirm.%player%} to false
  20. if arg-1 = "confirm":
  21. send "All blades have been reset!" to player
  22. set {confirm.%player%} to false
  23. if arg-1 = "give":
  24. give arg-2 1 of {blade.%arg-2%}
  25.  
  26. # Strength Blade
  27. set {blades::strengthblade} to unbreakable netherite sword named "&4ꜱᴛʀᴇɴɢᴛʜ &7ʙʟᴀᴅᴇ"
  28. enchant {blades::strengthblade} with curse of vanishing
  29. enchant {blades::strengthblade} with sharpness 5
  30. enchant {blades::strengthblade} with fire aspect 1
  31.  
  32. # Life Blade
  33. set {blades::lifeblade} to unbreakable netherite sword named "&dʟɪꜰᴇ &7ʙʟᴀᴅᴇ"
  34. enchant {blades::lifeblade} with curse of vanishing
  35. enchant {blades::lifeblade} with sharpness 4
  36.  
  37. # Speed Blade
  38. set {blades::speedblade} to unbreakable netherite sword named "&eꜱᴘᴇᴇᴅ &7ʙʟᴀᴅᴇ"
  39. enchant {blades::speedblade} with curse of vanishing
  40. enchant {blades::speedblade} with sharpness 4
  41. enchant {blades::speedblade} with fire aspect 1
  42. enchant {blades::speedblade} with efficiency 5
  43.  
  44. # Air Blade
  45. set {blades::airblade} to unbreakable netherite sword named "&7ᴀɪʀ ʙʟᴀᴅᴇ"
  46. enchant {blades::airblade} with curse of vanishing
  47. enchant {blades::airblade} with sharpness 4
  48. enchant {blades::airblade} with feather falling 1
  49.  
  50. # Wealth Blade
  51. set {blades::wealthblade} to unbreakable netherite sword named "&aᴡᴇᴀʟᴛʜ &7ʙʟᴀᴅᴇ"
  52. enchant {blades::wealthblade} with curse of vanishing
  53. enchant {blades::wealthblade} with looting 3
  54. enchant {blades::wealthblade} with sharpness 5
  55. enchant {blades::wealthblade} with fire aspect 1
  56.  
  57. # Explosive Blade
  58. set {blades::explosiveblade} to unbreakable netherite sword named "&cᴇxᴘʟᴏꜱɪᴠᴇ &7ʙʟᴀᴅᴇ"
  59. enchant {blades::explosiveblade} with curse of vanishing
  60. enchant {blades::explosiveblade} with sharpness 4
  61. enchant {blades::explosiveblade} with fire aspect 2
  62.  
  63. # Fire Blade
  64. set {blades::fireblade} to unbreakable netherite sword named "&6ꜰɪʀᴇ &7ʙʟᴀᴅᴇ"
  65. enchant {blades::fireblade} with curse of vanishing
  66. enchant {blades::fireblade} with sharpness 4
  67. enchant {blades::fireblade} with fire aspect 5
  68.  
  69. # Ice Blade
  70. set {blades::iceblade} to unbreakable netherite sword named "&bɪᴄᴇ &7ʙʟᴀᴅᴇ"
  71. enchant {blades::iceblade} with curse of vanishing
  72. enchant {blades::iceblade} with sharpness 4
  73. enchant {blades::iceblade} with respiration 3
  74.  
  75. # Ender Blade
  76. set {blades::enderblade} to unbreakable netherite sword named "&5ᴇɴᴅᴇʀ &7ʙʟᴀᴅᴇ"
  77. enchant {blades::enderblade} with curse of vanishing
  78. enchant {blades::enderblade} with sharpness 4
  79.  
  80. # Dragon Blade
  81. set {blades::dragonblade} to unbreakable netherite sword named "&8ᴅʀᴀɢᴏɴ &7ʙʟᴀᴅᴇ"
  82. enchant {blades::dragonblade} with curse of vanishing
  83. enchant {blades::dragonblade} with sharpness 6
  84. enchant {blades::dragonblade} with fire aspect 3
  85. enchant {blades::dragonblade} with looting 3
  86.  
  87. # Combat Tag System
  88. on damage:
  89. if attacker is a player:
  90. if victim is a player:
  91. set {enemy.%attacker's uuid%} to victim's uuid
  92. set {enemy.%victim's uuid%} to attacker's uuid
  93. wait 2 minutes
  94. set {enemy.%attacker's uuid%} to "~"
  95. set {enemy.%victim's uuid%} to "~"
  96.  
  97. # Give new players blades
  98. on join:
  99. loop all players:
  100. if {blade.%player%} is not set:
  101. set {blade.%player%} to a random element out of {blades::*}
  102. remove {blade.%player%} from {blades::*}
  103. make console execute command "/bladesmp give %player%"
  104.  
  105. # Give player their Blade when they respawn
  106. on respawn:
  107. make console execute command "/bladesmp give %victim%"
  108.  
Advertisement
Add Comment
Please, Sign In to add comment