Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- attacker is a player:
- set {_lore} to "%uncoloured lore of attacker's tool%"
- replace all "Zadawane Obrazenia: " with "" in {_lore}
- set {_lore::*} to {_l} split at "-"
- set {_1} to "%{_lore::1}%" parsed as number
- set {_2} to "%{_lore::2}%" parsed as number
- set {_damage} to a random integer between {_1} and {_2}
- set damage to damage*{_damage}
- stop
- stop
- command /setdamage [<number>] [<number>]:
- aliases: /ustawdmg, /ustawdamage, /setdmg
- permission: setdamage.command
- permission message: &cNie wolno Ci uzywac tej komendy.
- trigger:
- set lore of the player's tool to "&cZadawane obrazenia: &c%argument 1 parsed as number% %argument 2 parsed as number%"
- send "&8• &3» &6Nadano nowe obrazenia na miecz &3« &8•" to the player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement