Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on click:
- set {_data} to custom model data of player's tool
- if {_data} = 0 or 1:
- set {_a} to level of sharpness of player's tool
- set {_s} to (attack speed attribute of player + {@swordSpeed})
- if {_a} > 0:
- set {_b} to (({@NswordAttack} + 1) + (1 + 0.5 * ({_a} - 1)))
- else:
- if {_a} is not set:
- set {_b} to ({@NswordAttack} + 1)
- if "%lore of player's tool%" doesn't contain "&6%{_b}% Attack Damage":
- set {_loreDamage::*} to lore of player's tool
- set {_checkDamage} to false
- loop {_loreDamage::*}:
- "%loop-value%" contains "Attack Damage"
- set {_checkDamage} to loop-index
- stop loop
- {_checkDamage} is not false:
- set line {_checkDamage} of lore of player's tool to "&6%{_b}% Attack Damage" #<--- Doesn't work
- send "%{_checkDamage}%" #<--- To check if it says the correct line number, which is the case
Advertisement
Add Comment
Please, Sign In to add comment