Advertisement
Guest User

damage

a guest
Jun 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. on damage:
  2. attacker is a player:
  3. set {_lore} to "%uncoloured lore of attacker's tool%"
  4. replace all "Zadawane Obrazenia: " with "" in {_lore}
  5. set {_lore::*} to {_l} split at "-"
  6. set {_1} to "%{_lore::1}%" parsed as number
  7. set {_2} to "%{_lore::2}%" parsed as number
  8. set {_damage} to a random integer between {_1} and {_2}
  9. set damage to damage*{_damage}
  10. stop
  11. stop
  12. command /setdamage [<number>] [<number>]:
  13. aliases: /ustawdmg, /ustawdamage, /setdmg
  14. permission: setdamage.command
  15. permission message: &cNie wolno Ci uzywac tej komendy.
  16. trigger:
  17. set lore of the player's tool to "&cZadawane obrazenia: &c%argument 1 parsed as number% %argument 2 parsed as number%"
  18. send "&8• &3» &6Nadano nowe obrazenia na miecz &3« &8•" to the player
  19. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement