Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- set {_lore::*} to lore of attacker's tool split at "||"
- if {_lore::1} contains "Damage":
- set {_lastcharacter} to the last character of {_lore::1}
- set {_min} to subtext of {_lore::1} from (first index of "Damage: " in {_lore::1}) to (first index of " - " in {_lore::1} - 1)
- set {_max} to subtext of {_lore::1} from (first index of " - " in {_lore::1} +2 ) to (last index of {_lastcharacter} in {_lore::1})
- set damage to random integer from {_min} to {_max}
Advertisement
Add Comment
Please, Sign In to add comment