Guest User

Untitled

a guest
Jul 1st, 2021
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. on click:
  2. set {_data} to custom model data of player's tool
  3. if {_data} = 0 or 1:
  4. set {_a} to level of sharpness of player's tool
  5. set {_s} to (attack speed attribute of player + {@swordSpeed})
  6. if {_a} > 0:
  7. set {_b} to (({@NswordAttack} + 1) + (1 + 0.5 * ({_a} - 1)))
  8. else:
  9. if {_a} is not set:
  10. set {_b} to ({@NswordAttack} + 1)
  11. if "%lore of player's tool%" doesn't contain "&6%{_b}% Attack Damage":
  12. set {_loreDamage::*} to lore of player's tool
  13. set {_checkDamage} to false
  14. loop {_loreDamage::*}:
  15. "%loop-value%" contains "Attack Damage"
  16. set {_checkDamage} to loop-index
  17. stop loop
  18. {_checkDamage} is not false:
  19. set line {_checkDamage} of lore of player's tool to "&6%{_b}% Attack Damage" #<--- Doesn't work
  20. send "%{_checkDamage}%" #<--- To check if it says the correct line number, which is the case
Advertisement
Add Comment
Please, Sign In to add comment